﻿/* VOLTA shop archive */

/* ========== Phase 2 â€” Shop + PDP (Atlas) ========== */
.volta-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-xl); }
.volta-breadcrumb a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.volta-breadcrumb a:hover { color: var(--brand-steel); }
.breadcrumb-sep { opacity: 0.5; margin-inline: 4px; }

.shop-page__header { margin-bottom: var(--space-xl); }
.shop-page__title { font-size: 28px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }

.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-xl); align-items: start; }
.shop-filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 88px; }
.shop-filters__title { font-size: 15px; font-weight: 700; padding: var(--space-lg); border-bottom: 1px solid var(--border); color: var(--text-strong); }
.shop-filters__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-soft); transition: background var(--dur) var(--ease); }
.shop-filters__item:last-child { border-bottom: none; }
.shop-filters__item:hover, .shop-filters__item.is-active { background: var(--accent-gold-soft); }
.shop-filters__item.is-active { font-weight: 700; color: var(--brand-midnight); }
.shop-filters__item span { font-size: 12px; color: var(--text-subtle); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-xl); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border); }
.woocommerce-result-count { font-size: 13px; color: var(--text-muted); margin: 0; }
.shop-orderby { display: flex; align-items: center; gap: var(--space-sm); }
.shop-orderby__label { font-size: 13px; color: var(--text-muted); }
.shop-orderby select,
.volta-select,
.variations select,
.woocommerce .quantity .qty {
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--text);
}

/* Kill WooCommerce float/percentage widths so Atlas CSS grid owns the layout */
.woocommerce ul.products.products--shop,
.products.products--shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.products--shop::before,
.products--shop::after { display: none !important; content: none !important; }

.woocommerce ul.products.products--shop > li.product,
.products--shop > .product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.product--card .product__link { display: flex; flex-direction: column; flex: 1; color: inherit; min-width: 0; }
.product--card .product__media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product--card .product__media img,
.product--card .product__media .wp-post-image,
.product--card .product__media .woocommerce-placeholder {
  width: 82% !important;
  height: 82% !important;
  max-width: 82%;
  object-fit: contain;
  margin: 0 auto;
}
.product--card .product__name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product--card .product__brand {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
}
.product--card .product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-soft);
}
.product__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.product__actions .button,
.product__actions .add_to_cart_button {
  margin: 0 !important;
  float: none !important;
}

@media (min-width: 1200px) {
  .woocommerce ul.products.products--shop,
  .products.products--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .woocommerce ul.products.products--shop,
  .products.products--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .woocommerce ul.products.products--shop,
  .products.products--shop { grid-template-columns: 1fr; }
}
.product--card .star-rating { font-size: 12px; color: var(--rating); margin-bottom: var(--space-sm); }
.product--card .price,
.product__prices .price { display: flex; align-items: baseline; gap: var(--space-sm); margin: 0; font-size: 16px; font-weight: 800; color: var(--price); }
.product--card .price del,
.product__prices .price del { font-size: 12px; font-weight: 500; color: var(--price-sale); opacity: 0.85; order: 2; }
.product--card .price ins,
.product__prices .price ins { text-decoration: none; }
.product__stock.out-of-stock { color: var(--price-sale); }

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #128C7E;
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--whatsapp:hover { background: #0e7368; color: #fff; }
.btn--whatsapp-icon { width: 36px; height: 36px; padding: 0; }
.volta-whatsapp { margin-top: var(--space-md); width: 100%; }

.woocommerce-pagination { margin-top: var(--space-2xl); }
.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.woocommerce-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text);
}
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
  background: var(--brand-midnight); border-color: var(--brand-midnight); color: var(--text-on-dark);
}

.shop-empty {
  text-align: center; padding: var(--space-4xl) var(--space-xl);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.shop-empty h2 { font-size: 22px; font-weight: 800; margin-bottom: var(--space-md); }
.shop-empty p { color: var(--text-muted); margin-bottom: var(--space-xl); }

