/* ══════════════════════════════════════
   SHOP HERO
══════════════════════════════════════ */
.ac-shop-hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at top center, rgba(var(--brand-rgb),0.18), transparent 30%),
    linear-gradient(145deg, var(--brand-blue-dark), var(--brand-blue));
  border-bottom: 1px solid var(--border);
}
.ac-shop-hero__eyebrow {
  display: inline-block; margin-bottom: 0.65rem;
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.ac-shop-hero h1,
.ac-shop-hero__description,
.ac-shop-hero__description p {
  color: #ffffff;
}

/* ══════════════════════════════════════
   LAYOUT LOJA
══════════════════════════════════════ */
.ac-shop-layout { padding: 2rem 0 4rem; }
.ac-shop-content {
  display: block; /* Elementor controla o layout de colunas */
}

/* TOOLBAR */
.ac-shop-toolbar, .ac-shop-toolbar__actions {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.ac-shop-toolbar {
  margin-bottom: 1.5rem; padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.ac-shop-toolbar .woocommerce-ordering { margin: 0; }
.ac-shop-toolbar__view { display: inline-flex; gap: 0.35rem; }
.ac-shop-toolbar__view button {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border); border-radius: 99px;
  background: transparent; color: var(--text-3);
  transition: all var(--fast);
}
.ac-shop-toolbar__view .is-active { border-color: var(--gold); color: var(--gold); }

/* SIDEBAR */
.ac-shop-sidebar {
  position: sticky; top: 90px; height: fit-content;
  padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-xs);
}
.ac-shop-sidebar .widget + .widget { margin-top: 1.5rem; }
.ac-shop-sidebar__header {
  display: none; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}

/* GRID */
.ac-shop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; width: 100%; }
.ac-shop-grid[data-grid-columns="4"] { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ac-shop-grid.is-list { grid-template-columns: 1fr; }

/* PAGINAÇÃO */
.ac-shop-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.ac-shop-pagination .page-numbers {
  display: inline-flex; align-items: center; gap: 0.35rem;
  list-style: none; margin: 0; padding: 0;
}
.ac-shop-pagination .page-numbers li a,
.ac-shop-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-3);
  font-family: var(--font-accent); font-size: 0.8rem; font-weight: 600;
  transition: all var(--fast);
}
.ac-shop-pagination .page-numbers li a:hover,
.ac-shop-pagination .page-numbers li span.current {
  border-color: var(--gold); color: var(--gold-light); background: rgba(var(--brand-rgb),0.12);
}

/* ══════════════════════════════════════
   CARD DE PRODUTO
══════════════════════════════════════ */
.ac-product-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--base), border-color var(--base), transform var(--base);
  will-change: transform;
}
.ac-product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-pale);
  transform: translateY(-3px);
}

/* Imagem */
.ac-product-card__media {
  position: relative; overflow: hidden;
  background: var(--bg-alt);
}
.ac-product-card__image-link { display: block; aspect-ratio: 1/1; }
.ac-product-card__image {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--slow);
}
.ac-product-card:hover .ac-product-card__image--primary { transform: scale(1.04); }
.ac-product-card__image--secondary {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity var(--base), transform var(--slow);
}
.ac-product-card:hover .ac-product-card__image--secondary { opacity: 1; transform: scale(1.04); }

/* Badges */
.ac-product-card__badges {
  position: absolute; top: 0.65rem; left: 0.65rem; z-index: 2;
  display: flex; flex-direction: column; gap: 0.3rem;
}
/* Wishlist */
.ac-product-card__wishlist {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  color: var(--text-3);
  transition: all var(--fast);
}
.ac-product-card__wishlist:hover,
.ac-product-card__wishlist.is-active {
  border-color: rgba(184,50,50,0.3); color: var(--red);
  background: var(--surface);
}

/* Conteúdo */
.ac-product-card__content {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.9rem 1rem 1rem; flex: 1;
}
.ac-product-card__title {
  margin: 0; color: var(--text);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  line-height: 1.35; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-product-card__title a { color: inherit; }
.ac-product-card__title a:hover { color: var(--gold); }
.ac-product-card__rating { font-size: 0.78rem; }

/* Preço — discreto e premium */
.ac-product-card__price {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.35rem; margin-top: auto;
}
.ac-product-card__price .woocommerce-Price-amount {
  color: var(--gold-dark); font-size: 1rem; font-weight: 600;
}
.ac-product-card__price del {
  color: var(--text-4); font-size: 0.8rem; font-weight: 400;
}
.ac-product-card__price del .woocommerce-Price-amount {
  color: var(--text-4); font-size: 0.8rem; font-weight: 400;
}
.ac-product-card__price ins { text-decoration: none; }

/* Botão */
.ac-product-card__actions { margin-top: 0.6rem; }
.ac-product-card__actions .button {
  width: 100%; min-height: 40px;
  padding: 0.6rem 1rem;
  font-size: 0.72rem; letter-spacing: 0.1em;
}


/* ── Sidebar nativa oculta quando Elementor controla o layout ── */
.elementor-page .ac-shop-sidebar,
.elementor-template-full-width .ac-shop-sidebar {
  display: none !important;
}

/* ── Grid de produtos: sempre ocupa 100% do container ── */
.ac-shop-grid-wrap,
.ac-shop-grid {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* ── Cards: não ultrapassar o container ── */
.ac-product-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}
.ac-product-card__title {
  word-break: break-word;
  overflow-wrap: break-word;
}
