/**
 * Ouro Gourmet – Loja (WooCommerce)
 * Scope: .og-loja
 */

/* =========================================================
   BASE / WRAPPER
   ========================================================= */
.og-loja{
  --og-bg:#ffffff;
  --og-ink:#111111;
  --og-muted:#6b6b6b;
  --og-gold:#c9a23a;

  /* Forçar tokens do Blocksy dentro da Loja (evita herdar preto do tema) */
  --theme-button-background-initial-color: var(--og-gold);
  --theme-button-text-initial-color: #000000;
  --theme-button-background-hover-color: #000000;
  --theme-button-text-hover-color: var(--og-gold);
  --og-border:rgba(0,0,0,.08);
  --og-radius:18px;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--og-ink);
}

.og-loja a{
  text-decoration:none;
  color:inherit;
}

/* Remove lixo visual do Woo */
.og-loja .woocommerce-breadcrumb,
.og-loja .storefront-sorting,
.og-loja .woocommerce-result-count{
  display:none;
}

/* =========================================================
   GRID DE PRODUTOS
   ========================================================= */
.og-loja ul.products{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:34px;
  margin:0;
  padding:0;
}

.og-loja ul.products li.product{
  list-style:none;
  background:#fff;
  border:1px solid var(--og-border);
  border-radius:var(--og-radius);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}

.og-loja ul.products li.product:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(0,0,0,.08);
}

/* =========================================================
   IMAGEM
   ========================================================= */
.og-loja ul.products li.product img{
  width:100%;
  height:320px;
  object-fit:cover;
  margin:0;
  transition:transform .4s ease;
}

.og-loja ul.products li.product:hover img{
  transform:scale(1.04);
}

/* =========================================================
   CONTEÚDO DO CARD
   ========================================================= */
.og-loja ul.products li.product .woocommerce-loop-product__title{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size:18px;
  line-height:1.35;
  padding:18px 18px 6px;
  color:#111;
}

.og-loja ul.products li.product .price{
  padding:0 18px 12px;
  font-weight:700;
  color:#111;
}

.og-loja ul.products li.product .price del{
  opacity:.4;
  margin-right:6px;
}

/* =========================================================
   BOTÃO – OURO SÓLIDO / INVERSÃO NO HOVER (forçar sobre o tema)
   ========================================================= */
.og-loja ul.products li.product a.button,
.og-loja ul.products li.product .button{
  margin:0 18px 18px;
  padding:12px 20px;
  border-radius:999px;
  background:var(--og-gold) !important;
  color:#000000 !important;
  font-weight:600;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-align:center;
  border:1px solid var(--og-gold) !important;
  box-shadow:none !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transition:background .2s ease, color .2s ease, transform .15s ease;
}

.og-loja ul.products li.product a.button:hover,
.og-loja ul.products li.product .button:hover{
  background:#000000 !important;
  color:var(--og-gold) !important;
  border-color:#000000 !important;
  transform:translateY(-1px);
}

/* Estado "adicionado" no Woo (manter coerência) */
.og-loja ul.products li.product a.added_to_cart{
  margin:0 18px 18px;
  padding:12px 20px;
  border-radius:999px;
  background:#000000 !important;
  color:var(--og-gold) !important;
  border:1px solid #000000 !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* =========================================================
   MICRO COPY / HEADER
   ========================================================= */
.og-loja .og-shop-intro{
  max-width:720px;
  margin:0 auto 2.5rem;
  text-align:center;
  font-size:1rem;
  color:#4a4a4a;
  letter-spacing:.02em;
}

/* Melhorar contraste do título da loja */
.og-loja .woocommerce-products-header__title{
  color:#1f1f1f;
  font-weight:600;
}

/* Ocultar badge SALE */
.woocommerce span.onsale,
.woocommerce-page span.onsale{
  display:none;
}

/* Ordenação mais discreta */
.og-loja .woocommerce-ordering select{
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  padding:10px 14px;
  background:#fff;
  color:#111;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width:980px){
  .og-loja ul.products{ grid-template-columns:1fr; gap:26px; }
  .og-loja ul.products li.product img{ height:260px; }
}
