/* ═══════════════════════════════════════════════════════════
   JURÔ — shop.css  |  Archive & Shop — UX de Alta Conversão
   Efeitos de imagem portados do home.css
   ═══════════════════════════════════════════════════════════ */

/* ─── Custom Fonts ─────────────────────────────────────────── */
@font-face {
  font-family: 'BritannicBQ';
  src: url('/wp-content/fonts/BritannicBQ-Regular.otf') format('opentype'),
       url('/wp-content/fonts/BritannicBQ-Regular.woff2') format('woff2'),
       url('/wp-content/fonts/BritannicBQ-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --burg:          #5c1a2e;
  --burg-dark:     #3e0f1e;
  --burg-soft:     rgba(92,26,46,.12);
  --cream:         #f5ede4;
  --rose:          #c4968a;
  --white:         #ffffff;
  --black:         #1a1a1a;
  --ink:           #1a0e09;
  --grey-light:    #f4f4f4;
  --grey-mid:      #e8e2dc;
  --grey-text:     #9e8f87;

  --transition:    all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast:    all 0.28s ease;
  --trans-spring:  all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --fn-d:          'BritannicBQ', 'Playfair Display', serif;
  --fn-b:          'BritannicBQ', serif;
  --fn-head:       'Jost', sans-serif;
}

/* ─────────────────────────────────────
   TICKER — Faixa Editorial Superior
───────────────────────────────────── */
.juro-ticker {
  background: var(--burg);
  color: var(--white);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: tickerMove 28s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-family: var(--fn-head);
  font-weight: 500;
  flex-shrink: 0;
}
.ticker-item::after {
  content: '✦';
  font-size: 7px;
  opacity: .5;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ─────────────────────────────────────
   WRAPPER PRINCIPAL
───────────────────────────────────── */
.juro-archive-wrapper {
  padding-top: 0;
  background: var(--white);
}


/* ─────────────────────────────────────
   ARCHIVE HEADER
───────────────────────────────────── */
.archive-header {
  position: relative;
  text-align: center;
  padding: clamp(50px, 8vh, 100px) 20px clamp(40px, 6vh, 70px);
  overflow: hidden;
  background: var(--white);
}

.archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(196,150,138,.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Marca d'água tipográfica de fundo */
.archive-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--fn-d);
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 900;
  color: rgba(92, 26, 46, .042);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.02em;
  line-height: 1;
  z-index: 0;
}

.archive-header .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.archive-subtitle {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .45em;
  color: var(--rose);
  display: block;
  margin-bottom: 18px;
  font-family: var(--fn-head);
  font-weight: 500;
  opacity: 0;
  animation: fadeUp .7s .1s ease forwards;
}

.archive-main-title {
  font-family: var(--fn-d);
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 400;
  font-style: italic;
  color: var(--burg);
  margin: 0 0 12px;
  line-height: .98;
  letter-spacing: -.02em;
  opacity: 0;
  animation: fadeUp .85s .25s ease forwards;
}
.archive-main-title strong {
  font-style: normal;
  font-weight: 900;
  display: block;
  font-size: .72em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.archive-tagline {
  font-family: var(--fn-b);
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--grey-text);
  letter-spacing: .08em;
  margin-bottom: clamp(28px, 4vh, 50px);
  opacity: 0;
  animation: fadeUp .8s .4s ease forwards;
}

/* Barra de Controles */
.archive-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--grey-mid);
  border-bottom: 1px solid var(--grey-mid);
  padding: 0;
  opacity: 0;
  animation: fadeUp .7s .55s ease forwards;
}

.archive-controls {
  position: sticky;
  top: 88px;
  z-index: 999;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}

.archive-controls > * {
  padding: 18px 28px;
  border-right: 1px solid var(--grey-mid);
}
.archive-controls > *:last-child { border-right: none; }

.btn-filter-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-family: var(--fn-head);
  font-weight: 600;
  color: var(--black);
  transition: var(--trans-fast);
}
.btn-filter-trigger svg { transition: transform .4s ease; }
.btn-filter-trigger:hover { color: var(--burg); }
.btn-filter-trigger:hover svg { transform: rotate(90deg); }

.product-count-badge {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--fn-head);
  color: var(--grey-text);
}
.product-count-badge p { margin: 0; }

/* Sort Select */
.archive-sort-wrap {
  display: flex;
  align-items: center;
}
.archive-sort-wrap select,
.woocommerce-ordering select {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: var(--fn-head);
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231a1a1a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering form { margin: 0; }


/* ─────────────────────────────────────
   GRADE DE PRODUTOS — ESTILO EDITORIAL
───────────────────────────────────── */
.archive-main-grid {
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 60px) clamp(16px, 3vw, 40px) 80px;
}

.juro-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  background: transparent;
  border: none;
  align-items: start;
  grid-auto-rows: minmax(320px, auto);
}

/* Ignorar layouts editorial quebrados para manter consistência vertical */
.juro-products-grid .juro-item-card,
.juro-products-grid .juro-item-card:nth-child(1),
.juro-products-grid .juro-item-card:first-child:last-child,
.juro-products-grid .juro-item-card:nth-child(2):last-child,
.juro-products-grid .juro-item-card:nth-child(3):last-child {
  grid-column: auto !important;
}

/* ─────────────────────────────────────
   CARD DE PRODUTO
───────────────────────────────────── */
.juro-item-card {
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border-radius: 0px;
  box-shadow: 0 10px 24px rgba(60,20,32,.08);
  transition: transform .3s ease, box-shadow .3s ease;

  /* Conteúdo precisa permanecer visível mesmo se o JS falhar */
  opacity: 1;
  transform: none;
}
.juro-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(60,20,32,.14);
}

/* ── VISUAL / IMAGEM ── */
.item-visual {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  line-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 0px;
  min-height: 420px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.item-visual .main-img,
.item-visual .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── EFEITOS DE IMAGEM IDÊNTICOS AO home.css ── */

/* Imagem principal — preenche o card inteiro */
.item-visual .main-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition:
    transform  .85s cubic-bezier(0.4, 0, 0.2, 1),
    filter     .55s ease,
    opacity    .55s ease;
  will-change: transform;
}

/* Imagem hover (gallery[0]) — também preenche o card */
.item-visual .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition:
    transform  .85s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    .55s ease;
  will-change: transform;
  z-index: 2;
}

/* Quando detectado landscape via JS, preenche todo o card */
.juro-item-card.orient-landscape .item-visual .main-img,
.juro-item-card.orient-landscape .item-visual .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.juro-item-card.orient-landscape.img-single:hover .main-img {
  transform: scale(1.1);
  opacity: 1;
}

.juro-item-card.orient-landscape.img-gallery:hover .main-img {
  transform: scale(1.12);
  opacity: 0;
}

.juro-item-card.orient-landscape.img-gallery:hover .hover-img {
  opacity: 1;
  transform: scale(1.08);
}

/* Bonés horizontais: preenchimento mais agressivo */
.juro-item-card.orient-landscape[data-cats*="bones"] .item-visual .main-img,
.juro-item-card.orient-landscape[data-cats*="bones"] .item-visual .hover-img,
.juro-item-card.orient-landscape[data-cats*="bone"] .item-visual .main-img,
.juro-item-card.orient-landscape[data-cats*="bone"] .item-visual .hover-img {
  transform: scale(1.14);
}

.juro-item-card.orient-landscape[data-cats*="bones"].img-single:hover .main-img,
.juro-item-card.orient-landscape[data-cats*="bone"].img-single:hover .main-img {
  transform: scale(1.2);
}

.juro-item-card.orient-landscape[data-cats*="bones"].img-gallery:hover .main-img,
.juro-item-card.orient-landscape[data-cats*="bone"].img-gallery:hover .main-img {
  transform: scale(1.22);
}

.juro-item-card.orient-landscape[data-cats*="bones"].img-gallery:hover .hover-img,
.juro-item-card.orient-landscape[data-cats*="bone"].img-gallery:hover .hover-img {
  transform: scale(1.16);
}

/* Bonés: preencher o card mesmo sem classe de orientação */
.juro-item-card[data-cats*="bones"] .item-visual .main-img,
.juro-item-card[data-cats*="bones"] .item-visual .hover-img,
.juro-item-card[data-cats*="bone"] .item-visual .main-img,
.juro-item-card[data-cats*="bone"] .item-visual .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.16);
}

.juro-item-card[data-cats*="bones"].img-single:hover .main-img,
.juro-item-card[data-cats*="bone"].img-single:hover .main-img {
  transform: scale(1.22);
  opacity: 1;
}

.juro-item-card[data-cats*="bones"].img-gallery:hover .main-img,
.juro-item-card[data-cats*="bone"].img-gallery:hover .main-img {
  transform: scale(1.24);
  opacity: 0;
}

.juro-item-card[data-cats*="bones"].img-gallery:hover .hover-img,
.juro-item-card[data-cats*="bone"].img-gallery:hover .hover-img {
  transform: scale(1.18);
  opacity: 1;
}

/* Camisetas: sobe um pouco o enquadramento para valorizar rosto/estampa */
.juro-item-card[data-cats*="camisetas"] .item-visual .main-img,
.juro-item-card[data-cats*="camisetas"] .item-visual .hover-img,
.juro-item-card[data-cats*="camiseta"] .item-visual .main-img,
.juro-item-card[data-cats*="camiseta"] .item-visual .hover-img {
  object-position: center 32%;
}

/* Conjuntos: enquadramento um pouco mais baixo para preservar o look completo */
.juro-item-card[data-cats*="conjuntos"] .item-visual .main-img,
.juro-item-card[data-cats*="conjuntos"] .item-visual .hover-img,
.juro-item-card[data-cats*="conjunto"] .item-visual .main-img,
.juro-item-card[data-cats*="conjunto"] .item-visual .hover-img {
  object-position: center 38%;
}

/* Overlay degradê — mais suave pois a peça aparece inteira */
.item-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to bottom,
      transparent                    0%,
      transparent                   55%,
      rgba(20, 5, 10, .18)          78%,
      rgba(20, 5, 10, .48)         100%);
  transition: background .55s ease, opacity .55s ease;
  pointer-events: none;
}

/* ── HOVER: 1 imagem — zoom elegante sem swap ── */
.juro-item-card.img-single:hover .main-img {
  transform: scale(1.05);
  /* NÃO some: opacity fica em 1, só zoom */
  opacity: 1;
}

/* ── HOVER: 2+ imagens — zoom + troca com fade ── */
.juro-item-card.img-gallery:hover .main-img {
  transform: scale(1.07);
  opacity: 0;
}
.juro-item-card.img-gallery:hover .hover-img {
  opacity: 1;
  transform: scale(1.04);
}
.juro-item-card.img-single:hover .item-overlay,
.juro-item-card.img-gallery:hover .item-overlay {
  background:
    linear-gradient(to bottom,
      transparent                    0%,
      transparent                   60%,
      rgba(20, 5, 10, .10)          80%,
      rgba(20, 5, 10, .38)         100%);
}

/* Shimmer — idêntico ao .hg-panel::before do home.css */
.item-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-15deg);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  transition: opacity .2s ease;
}
.juro-item-card.img-single:hover .item-visual::before,
.juro-item-card.img-gallery:hover .item-visual::before {
  opacity: 1;
  animation: cardShimmer 1.2s ease forwards;
}
@keyframes cardShimmer {
  from { left: -60%; opacity: 1; }
  to   { left: 140%; opacity: 0; }
}

@media (max-width: 1200px) {
  .juro-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    grid-auto-rows: minmax(360px, auto);
  }
}

@media (max-width: 768px) {
  .archive-main-grid {
    padding: clamp(16px, 5vw, 36px) clamp(12px, 4vw, 20px) 60px;
  }
  .juro-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    grid-auto-rows: minmax(320px, auto);
  }
  .item-visual {
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .juro-products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .item-visual {
    aspect-ratio: 2 / 3;
    min-height: 280px;
  }
}

/* Escurecimento dos cards não-hover */
.juro-products-grid:hover .juro-item-card.img-single:not(:hover) .main-img,
.juro-products-grid:hover .juro-item-card.img-gallery:not(:hover) .main-img,
.juro-products-grid:hover .juro-item-card.img-gallery:not(:hover) .hover-img {
  filter: brightness(.75) saturate(.8);
}

/* ── TAG / BADGE ── */
.item-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  font-family: var(--fn-head);
  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--burg);
  padding: 6px 12px;
  font-weight: 600;
}

/* Tag de sale diferenciada */
.item-tag.sale {
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  color: var(--white);
}

/* Favoritos — canto superior direito do visual (fora da barra inferior) */
.item-wish-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 9;
  pointer-events: auto;
}
.item-wish-corner .btn-wish-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-wish-corner .btn-wishlist {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0,0,0,.1);
}
.item-wish-corner .wish-chip {
    top: calc(100% + 10px);
    bottom: auto;
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-4px);
    display: none;
}
.item-wish-corner .wish-chip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--burg);
}
.item-wish-corner .wish-chip.is-visible {
  transform: translateX(0) translateY(0);
}

.item-wish-corner .juro-wish-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  transition: background .25s, color .25s;
}
.item-wish-corner .juro-wish-toggle:hover {
  background: var(--burg);
  color: var(--white);
}
.item-wish-corner .juro-wish-toggle i {
  font-size: 15px;
}
.item-wish-corner .juro-wish-toggle i.fas { color: var(--burg); }
.item-wish-corner .juro-wish-toggle:hover i.fas { color: var(--white); }

/* ── AÇÕES RÁPIDAS — sobe do fundo igual home.css ── */
.item-quick-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 7;
  padding: 0 20px 20px;
  transform: translateY(110%);
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 8px;
}
.juro-item-card.img-single:hover .item-quick-actions,
.juro-item-card.img-gallery:hover .item-quick-actions {
  transform: translateY(0);
}

.btn-quick-add {
  flex: 1;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: none;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--fn-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink);
  transition: background .25s, color .25s;
}
.btn-quick-add:hover {
  background: var(--burg);
  color: var(--white);
}
.btn-quick-add .icon {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

/* ── Botão wishlist — nativo (fallback sem YITH) ── */
.btn-wishlist {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .25s, color .25s;
  flex-shrink: 0;
}
.btn-wishlist:hover { background: var(--burg); color: var(--white); }
.btn-wishlist svg  { width: 16px; height: 16px; }
.btn-wishlist i    { font-size: 15px; }

/* ── .btn-wish-sm — wrapper YITH idêntico ao front-page ── */
.item-quick-actions .btn-wish-sm {
  position: relative;
  flex-shrink: 0;
}

/* Botão gerado pelo shortcode YITH */
.item-quick-actions .btn-wish-sm .add_to_wishlist,
.item-quick-actions .yith-wcwl-add-to-wishlist .add_to_wishlist {
  width: 48px  !important;
  height: 48px !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(12px)       !important;
  border: none                      !important;
  border-radius: 0                  !important;
  display: flex                     !important;
  align-items: center               !important;
  justify-content: center           !important;
  cursor: pointer                   !important;
  color: var(--ink)                 !important;
  font-size: 15px                   !important;
  padding: 0                        !important;
  transition: background .25s, color .25s !important;
  text-decoration: none             !important;
}
.item-quick-actions .btn-wish-sm .add_to_wishlist:hover,
.item-quick-actions .yith-wcwl-add-to-wishlist .add_to_wishlist:hover {
  background: var(--burg) !important;
  color: var(--white)     !important;
}
/* Oculta texto e ícone SVG padrão do YITH */
.item-quick-actions .yith-wcwl-add-to-wishlist-button__label,
.item-quick-actions .yith-wcwl-add-to-wishlist-button-icon { display: none !important; }

/* Ícone do coração via Font Awesome pseudo-element */
.item-quick-actions .yith-wcwl-add-to-wishlist .add_to_wishlist::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
  content: '\f004'; /* far fa-heart */
  font-size: 15px;
}
.item-quick-actions .yith-wcwl-add-to-wishlist .yith-wcwl-add-button--added .add_to_wishlist::before,
.item-quick-actions .yith-wcwl-add-to-wishlist .add_to_wishlist.wished::before {
  font-weight: 900; /* fas fa-heart */
  color: var(--burg);
}

/* ── Wish-chip (tooltip "Salvo!") ── */
.item-quick-actions .wish-chip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--burg);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--fn-head);
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 0px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  z-index: 20;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.item-quick-actions .wish-chip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--burg);
}
.item-quick-actions .wish-chip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Pulso no coração ao adicionar */
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}
.item-quick-actions .btn-wish-sm.wish-pop .add_to_wishlist::before {
  animation: heartPop .4s ease forwards;
}

/* ── Estado loading do btn-quick-add ── */
.btn-quick-add:disabled,
.btn-quick-add.loading {
  opacity: .6;
  cursor: wait;
  pointer-events: none;
}

/* Seletor de tamanho flutuante — desce no hover para liberar o coração */
.item-sizes {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translate(12px, 56px);
  transition: opacity .4s .1s ease, transform .4s .1s ease;
}
.juro-item-card.img-single:hover .item-sizes,
.juro-item-card.img-gallery:hover .item-sizes {
  opacity: 1;
  transform: translate(0, 56px);
}

.size-dot {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: var(--fn-head);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--trans-fast);
}
.size-dot:hover {
  background: var(--burg);
  color: var(--white);
  border-color: var(--burg);
}

/* ── LINHA SEPARADORA VERTICAL — igual .hg-line ── */
.item-visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,.1);
  z-index: 4;
  pointer-events: none;
}

/* ── DETALHES DO CARD ── */
.item-details {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  transition: background .3s ease;
  margin-top: auto;
}

.item-category {
  font-size: 8px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--rose);
  font-family: var(--fn-head);
  font-weight: 500;
}

.item-name {
  font-family: var(--fn-b);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}
.item-name a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.item-name a:hover { color: var(--burg); }

.item-price {
  font-family: var(--fn-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--burg);
}
.item-price del {
  color: var(--grey-text);
  font-weight: 400;
  font-size: 12px;
  margin-right: 6px;
}

/* ── LINHA DE COR (swatches) ── */
.item-swatches {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity .3s .1s ease, height .3s ease;
}
.juro-item-card.img-single:hover .item-swatches,
.juro-item-card.img-gallery:hover .item-swatches {
  opacity: 1;
  height: 20px;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-mid);
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.swatch:hover {
  transform: scale(1.25);
  border-color: var(--burg);
}


/* ─────────────────────────────────────
   GAVETA DE FILTROS — Atualizada
───────────────────────────────────── */
.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
.filter-drawer.active {
  visibility: visible;
  pointer-events: all;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 14, 9, .55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .5s ease;
}
.filter-drawer.active .drawer-overlay { opacity: 1; }

.drawer-content {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform .55s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.filter-drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--grey-mid);
}
.drawer-header h3 {
  font-family: var(--fn-d);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--burg);
  margin: 0;
}
.close-drawer {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grey-text);
  font-size: 22px;
  transition: var(--trans-fast);
  border-radius: 50%;
}
.close-drawer:hover {
  background: var(--grey-light);
  color: var(--burg);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}
.drawer-body::-webkit-scrollbar { width: 3px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--grey-mid); border-radius: 3px; }

/* Grupos de filtro */
.filter-group {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--grey-mid);
}
.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-family: var(--fn-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--burg);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.filter-title::after {
  content: '+';
  font-size: 16px;
  font-weight: 300;
  color: var(--grey-text);
}
.filter-title.open::after { content: '−'; }

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-list li {
  border-bottom: 1px solid rgba(234,228,222,.6);
}
.filter-list li:last-child { border-bottom: none; }

.filter-list a {
  text-decoration: none;
  color: var(--black);
  font-size: 13px;
  font-family: var(--fn-b);
  padding: 10px 0;
  transition: var(--trans-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-list a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--trans-fast);
  color: var(--burg);
  font-size: 11px;
}
.filter-list a:hover,
.filter-list a.active {
  color: var(--burg);
  padding-left: 6px;
}
.filter-list a:hover::after,
.filter-list a.active::after {
  opacity: 1;
  transform: translateX(0);
}

/* Checkbox estilizado */
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--fn-b);
  color: var(--black);
  cursor: pointer;
  padding: 8px 0;
  transition: color .2s;
}
.checkbox-list label:hover { color: var(--burg); }
.checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--burg);
  cursor: pointer;
  flex-shrink: 0;
}

/* Rodapé do drawer */
.drawer-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--grey-mid);
  display: flex;
  gap: 10px;
}
.drawer-footer .btn-apply {
  flex: 1;
  padding: 14px;
  background: var(--burg);
  color: var(--white);
  border: none;
  font-family: var(--fn-head);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s;
}
.drawer-footer .btn-apply:hover { background: var(--burg-dark); }
.drawer-footer .btn-clear {
  padding: 14px 18px;
  background: none;
  border: 1px solid var(--grey-mid);
  font-family: var(--fn-head);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-text);
  cursor: pointer;
  transition: var(--trans-fast);
}
.drawer-footer .btn-clear:hover {
  border-color: var(--burg);
  color: var(--burg);
}


/* ─────────────────────────────────────
   FILTROS ATIVOS — Pills abaixo da barra
───────────────────────────────────── */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
  animation: fadeUp .4s ease forwards;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--burg-soft);
  color: var(--burg);
  border: 1px solid rgba(92,26,46,.25);
  padding: 6px 14px;
  font-family: var(--fn-head);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--trans-fast);
}
.active-filter-pill:hover {
  background: var(--burg);
  color: var(--white);
  border-color: var(--burg);
}

.active-filter-clear {
  font-family: var(--fn-head);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-text);
  text-decoration: none;
  margin-left: 6px;
  transition: color .2s;
}
.active-filter-clear:hover { color: var(--burg); }

/* Ponto indicador no botão Filtrar */
.filter-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--burg);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: floatBadge 2s ease infinite;
}

/* ─────────────────────────────────────
   FILTROS — Radio Customizado
───────────────────────────────────── */
.filter-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--fn-b);
  color: var(--black);
  cursor: pointer;
  padding: 9px 0;
  border-bottom: 1px solid rgba(234,228,222,.55);
  transition: color .2s, padding-left .2s;
  position: relative;
}
.filter-radio-label:last-child { border-bottom: none; }
.filter-radio-label:hover { color: var(--burg); padding-left: 4px; }

/* Ocultar radio nativo */
.filter-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Radio visual customizado */
.radio-custom {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--grey-mid);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.radio-custom::after {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--burg);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity .2s, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-radio-label input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--burg);
}
.filter-radio-label input[type="radio"]:checked ~ .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}
.filter-radio-label input[type="radio"]:checked ~ .radio-custom + * {
  color: var(--burg);
}

/* Contador de produtos na categoria */
.filter-count {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--fn-head);
  color: var(--grey-text);
  background: var(--grey-light);
  padding: 2px 7px;
  border-radius: 0px;
  flex-shrink: 0;
}

/* Corpo dos grupos (para accordion) */
.filter-body {
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
  max-height: 600px;
  opacity: 1;
}
.filter-body.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ─────────────────────────────────────
   FILTRO DE PREÇO — Dual Range Slider
───────────────────────────────────── */
.price-range-wrap {
  padding: 4px 0 8px;
}

.price-range-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.price-range-label {
  font-family: var(--fn-head);
  font-size: 12px;
  color: var(--grey-text);
}
.price-range-label strong {
  color: var(--burg);
  font-weight: 700;
  font-size: 16px;
}

.price-range-sep {
  color: var(--grey-mid);
  font-size: 18px;
  font-weight: 200;
  flex-grow: 1;
  text-align: center;
}

/* Track container */
.price-slider-track {
  position: relative;
  height: 4px;
  background: var(--grey-mid);
  border-radius: 2px;
  margin: 0 8px 28px;
}

/* Fill colorido entre os dois thumbs */
.price-slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--burg);
  border-radius: 2px;
  pointer-events: none;
}

/* Range inputs sobrepostos */
.price-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  pointer-events: none;
}

/* Thumb */
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 2px solid var(--burg);
  border-radius: 50%;
  cursor: grab;
  pointer-events: all;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(92,26,46,.2);
}
.price-range::-webkit-slider-thumb:hover,
.price-range::-webkit-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 3px 14px rgba(92,26,46,.35);
  cursor: grabbing;
}
.price-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 2px solid var(--burg);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(92,26,46,.2);
}

/* Presets rápidos */
.price-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.price-preset {
  background: none;
  border: 1px solid var(--grey-mid);
  padding: 6px 12px;
  font-family: var(--fn-head);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-text);
  cursor: pointer;
  transition: var(--trans-fast);
  border-radius: 2px;
}
.price-preset:hover,
.price-preset.active {
  background: var(--burg-soft);
  border-color: var(--burg);
  color: var(--burg);
}


/* ─────────────────────────────────────
   PAGINAÇÃO
───────────────────────────────────── */
.juro-pagination-wrap {
  padding: 60px 0 20px;
  text-align: center;
}

.juro-pagination-wrap .woocommerce-pagination,
.woocommerce-pagination ul {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-family: var(--fn-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border: 1px solid var(--grey-mid);
  transition: var(--trans-fast);
}

.woocommerce-pagination ul li a:hover {
  background: var(--burg-soft);
  border-color: var(--burg);
  color: var(--burg);
}

.woocommerce-pagination ul li span.current {
  background: var(--burg);
  border-color: var(--burg);
  color: var(--white);
}


/* ─────────────────────────────────────
   SEM RESULTADOS
───────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 120px 20px;
}
.no-results p {
  font-family: var(--fn-b);
  font-size: 20px;
  color: var(--grey-text);
}


/* ─────────────────────────────────────
   ANIMAÇÕES (portadas do home.css)
───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}


/* ─────────────────────────────────────
   RESPONSIVO
───────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .juro-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .juro-products-grid .juro-item-card:nth-child(1) {
    grid-column: span 2;
  }
  /* 1 produto: 3 colunas inteiras */
  .juro-products-grid .juro-item-card:first-child:last-child {
    grid-column: span 3;
  }
  /* 2 produtos: 2º fecha com 1 coluna (3 cols → 2+1) */
  .juro-products-grid .juro-item-card:nth-child(2):last-child {
    grid-column: span 1;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .archive-controls {
    flex-wrap: wrap;
  }
  .archive-controls > * {
    padding: 14px 20px;
  }
  .juro-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .juro-products-grid .juro-item-card:nth-child(1) {
    grid-column: span 2;
  }
  /* 1 produto: 2 colunas */
  .juro-products-grid .juro-item-card:first-child:last-child {
    grid-column: span 2;
  }
  /* 2 produtos: 2º também span 2 → linha cheia */
  .juro-products-grid .juro-item-card:nth-child(2):last-child {
    grid-column: span 2;
  }
  .item-sizes { display: none; }
}

/* Mobile portrait */
@media (max-width: 520px) {
  .juro-products-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .juro-products-grid .juro-item-card:nth-child(1) {
    grid-column: span 1;
  }
  /* Em coluna única todos os overrides colapsam para span 1 */
  .juro-products-grid .juro-item-card:first-child:last-child,
  .juro-products-grid .juro-item-card:nth-child(2):last-child,
  .juro-products-grid .juro-item-card:nth-child(3):last-child {
    grid-column: span 1;
  }
  /* sem aspect-ratio: imagem define a altura em mobile também */
  .archive-main-title { font-size: 42px; }
  .drawer-content { max-width: 100%; }
}

/* ─────────────────────────────────────
   TOUCH — ações sempre visíveis
   Em dispositivos sem hover (mobile/tablet) as ações e os
   tamanhos ficam sempre visíveis para garantir usabilidade.
───────────────────────────────────── */
@media (hover: none) {
  .item-quick-actions {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .item-overlay {
    background:
      linear-gradient(to bottom,
        transparent                  0%,
        transparent                 50%,
        rgba(20, 5, 10, .22)        78%,
        rgba(20, 5, 10, .52)       100%) !important;
  }
  /* No touch não tem efeito de escurecimento dos vizinhos */
  .juro-products-grid:hover .juro-item-card:not(:hover) .main-img,
  .juro-products-grid:hover .juro-item-card:not(:hover) .hover-img {
    filter: none;
  }
}