/* ================================
   CATÁLOGO / LISTAGEM (WooCommerce)
   Estilo igual aos Destaques da Home
   ================================ */

/* ---------- Breadcrumb ---------- */
body.woocommerce.archive .woocommerce-breadcrumb{
  max-width:1200px;
  margin:16px auto 8px;
  padding:0 16px;
  color:#6b6b6b;
  font-size:14px;
}
body.woocommerce.archive .woocommerce-breadcrumb a{ text-decoration:none; }


/* =================================
   TOOLBAR (Mostrando… | Ordenação)
   — alinhada com a largura do grid
   (depende do wrapper .lz-shop-toolbar
   inserido no functions.php)
   ================================= */
body.woocommerce.archive .lz-shop-toolbar{
  max-width:1200px;
  margin:16px auto;
  padding:0 16px;
  display:flex;                 /* uma linha só */
  align-items:center;
  gap:16px;
}

/* “Mostrando…” colado à esquerda */
body.woocommerce.archive .lz-shop-toolbar .woocommerce-result-count{
  margin:0 !important;
  text-align:left !important;
  float:none !important;
  display:block !important;
  flex:1 1 auto;                /* empurra o select p/ direita */
}

/* bloco do filtro fica à direita */
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering{
  margin:0 !important;
  float:none !important;
  position:relative;            /* âncora da setinha custom */
  flex:0 0 auto;
}

/* SELECT — visual “bonito” (pill + sombra + foco acessível) */
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering select{
  -webkit-appearance:none;
     -moz-appearance:none;
          appearance:none;
  display:block;
  min-width:260px;
  padding:10px 44px 10px 14px;  /* espaço p/ a seta */
  font:500 15px/1.2 inherit;
  color:#111;
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:border-color .2s ease, box-shadow .2s ease, transform .02s ease;
}
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering select:hover{
  border-color:#cfcfcf;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering select:focus{
  outline:none;
  border-color:#111;
  box-shadow:0 0 0 4px rgba(17,17,17,.08);
}
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering select:active{
  transform:translateY(1px);
}

/* seta customizada (SVG) */
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:12px; height:12px; margin-top:-6px;
  pointer-events:none;
  opacity:.75;
  transition:transform .18s ease, opacity .18s ease;
  background:no-repeat center/12px 12px
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4.5l3 3 3-3'/></svg>");
}
body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering:focus-within::after{
  opacity:1;
  transform:rotate(180deg);
}

/* Mobile: quebra em duas linhas e o select vira 100% */
@media (max-width:700px){
  body.woocommerce.archive .lz-shop-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  body.woocommerce.archive .lz-shop-toolbar .woocommerce-ordering select{
    width:100%;
  }
}


/* ================================
   GRID DE PRODUTOS (CSS Grid)
   ================================ */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:28px;
  max-width:1200px;
  margin:22px auto 40px;
  padding:0 16px;
  list-style:none;
}

/* Breakpoints */
@media (max-width:1100px){
  :is(body.woocommerce.archive,
      body.tax-product_cat,
      body.post-type-archive-product) ul.products{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}
@media (max-width:820px){
  :is(body.woocommerce.archive,
      body.tax-product_cat,
      body.post-type-archive-product) ul.products{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:520px){
  :is(body.woocommerce.archive,
      body.tax-product_cat,
      body.post-type-archive-product) ul.products{
    grid-template-columns:1fr;
  }
}

/* Mata heranças/flutuadores do tema */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products::before,
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products::after{
  content:none !important;
  display:none !important;
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
}


/* ================================
   CARD (visual dos Destaques)
   ================================ */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product{
  background:#f6f9f7;
  border-radius:16px;
  overflow:hidden;
  display:flex !important;
  flex-direction:column;
  position:relative;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  transition:transform .18s ease, box-shadow .18s ease;
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

/* Thumb clicável 4:3 com cover (igual home) */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product a.woocommerce-LoopProduct-link{
  display:block;
  position:relative;
  background:#fff;
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product a.woocommerce-LoopProduct-link img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:4 / 3;
  object-fit:cover;
  display:block;
}

/* Selo de promoção como pílula
   (vale tanto para .badge-sale vindo do functions
    quanto para .onsale padrão do Woo) */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .badge-sale,
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .onsale{
  position:absolute;
  top:12px;
  left:12px;
  background:#111;
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  font:700 12px/1 "Times New Roman", serif;
  letter-spacing:.02em;
  z-index:3;
  pointer-events:none;
}

/* Título */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .woocommerce-loop-product__title{
  margin:14px 16px 8px;
  font:700 20px/1.25 "Times New Roman", serif;
  color:#111;
}

/* Preço (normal preto; promo verde) */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .price{
  margin:0 16px 12px;
  font-size:16px;
  color:#111;                 /* preço normal */
  font-weight:700;
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .price del{
  color:#777;
  opacity:.85;
  margin-right:8px;
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .price ins{
  color:#146b5a;             /* preço em promoção */
  text-decoration:none;
  font-weight:800;
}

/* Botão grandão arredondado (full width) */
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .button,
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .add_to_cart_button,
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .ajax_add_to_cart{
  display:block !important;
  width:calc(100% - 32px);
  margin:0 16px 16px;
  padding:14px 18px;
  text-align:center;
  background:#111;
  color:#fff !important;
  border:0;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  transition:filter .2s ease, transform .02s;
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .button:hover{
  filter:brightness(1.08);
}
:is(body.woocommerce.archive,
    body.tax-product_cat,
    body.post-type-archive-product) ul.products li.product .button:active{
  transform:translateY(1px);
}


/* ================================
   Paginação
   ================================ */
body.woocommerce.archive .woocommerce-pagination{
  max-width:1200px;
  margin:24px auto 40px;
  padding:0 16px;
}
body.woocommerce.archive .woocommerce-pagination ul{
  display:flex;
  justify-content:center;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}
body.woocommerce.archive .woocommerce-pagination .page-numbers{
  display:inline-block;
  min-width:36px;
  height:36px;
  line-height:36px;
  text-align:center;
  border:1px solid #ddd;
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  color:#111;
  text-decoration:none;
}
body.woocommerce.archive .woocommerce-pagination .page-numbers.current{
  background:#111;
  color:#fff;
  border-color:#111;
}
