/* ==========================================================================
   Vielle Beauty — archive.css
   Shop / product category / product tag archives.

   No archive mockup was provided (only the homepage and single product
   page), so this file invents nothing new: the product grid/cards reuse
   home.css's .product-card__badge / __wish / __rating / __stars / __star
   rules verbatim (loaded alongside this file — see functions.php), the
   same 6-column / 14px-gap grid as the homepage product-grid sections, and
   the same container width (1300px / 28px side padding) used everywhere
   else on the site. Title/price/add-to-cart values below are copied
   1:1 from the equivalent .product-card__name / __price / __add rules in
   home.css, just re-targeted at WooCommerce's own archive-loop markup
   (WooCommerce's default content-product.php is not overridden — see
   functions.php for the hook-based badge/rating/wishlist additions).

   No filter sidebar is built here: none of the uploaded mockups show one,
   so nothing is guessed. WooCommerce's woocommerce_sidebar hook still
   fires for anyone who wires one up later.
   ========================================================================== */

/* Page chrome ---------------------------------------------------------------- */

.woocommerce-products-header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 28px 0;
}

.woocommerce-products-header__title.page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.woocommerce-products-header .term-description {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #6b5057;
  max-width: 640px;
}

.woocommerce-result-count,
.woocommerce-ordering {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 28px 0;
  font-size: 12px;
  color: #8d747c;
}

.woocommerce-result-count {
  float: left;
}

.woocommerce-ordering {
  float: right;
  padding-left: 0;
}

.woocommerce-ordering select.orderby {
  border: 1.5px solid var(--border-soft);
  border-radius: 7px;
  background: #fff;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
}

.woocommerce-ordering select.orderby:focus-visible {
  border-color: var(--brand-accent);
}

/* Grid ------------------------------------------------------------------------- */

ul.products {
  clear: both;
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 28px 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

ul.products::before,
ul.products::after {
  content: none !important;
}

/* Card (mirrors .product-card in home.css, re-targeted at WooCommerce's
   own archive-loop markup: <li class="product"><a class="woocommerce-
   loop-product__link">image + badge + title + rating + price</a>
   <button wishlist><a add_to_cart_button></li>). */

ul.products li.product {
  position: relative;
  border: 1px solid #f7dde5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

ul.products li.product:hover,
ul.products li.product:focus-within {
  box-shadow: 0 12px 26px rgba(199, 110, 136, 0.18);
  border-color: #f2bfd0;
}

ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 10px;
  color: var(--text-main);
}

ul.products li.product a.woocommerce-loop-product__link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 0 4px;
}

ul.products li.product .product-card__wish {
  top: 6px;
  right: 6px;
}

ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 0 11px;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 500;
  min-height: 32px;
  text-wrap: pretty;
  color: var(--text-main);
}

ul.products li.product a.woocommerce-loop-product__link:hover .woocommerce-loop-product__title,
ul.products li.product a.woocommerce-loop-product__link:focus-visible .woocommerce-loop-product__title {
  color: var(--brand-accent);
}

ul.products li.product .product-card__rating {
  padding: 0 11px;
}

ul.products li.product .price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-accent);
}

ul.products li.product .price del {
  order: 2;
  font-size: 10.5px;
  font-weight: 400;
  color: #a89299;
  text-decoration: line-through;
  opacity: 1;
}

ul.products li.product .price ins {
  order: 1;
  text-decoration: none;
}

ul.products li.product a.add_to_cart_button {
  margin: auto 11px 11px;
  padding: 8px;
  border: 1.4px solid #f2a9c0;
  border-radius: 7px;
  background: #fff5f8;
  color: #d94a74;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

ul.products li.product a.add_to_cart_button:hover,
ul.products li.product a.add_to_cart_button:focus-visible {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

ul.products li.product a.add_to_cart_button.loading {
  opacity: 0.6;
}

/* Empty state ------------------------------------------------------------------- */

.woocommerce-info {
  clear: both;
  max-width: 1300px;
  margin: 18px auto 0;
  padding: 16px 28px;
  font-size: 13px;
  color: #6b5057;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-soft);
}

/* Pagination ---------------------------------------------------------------------- */

nav.woocommerce-pagination {
  clear: both;
  max-width: 1300px;
  margin: 26px auto 40px;
  padding: 0 28px;
}

nav.woocommerce-pagination ul.page-numbers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
}

nav.woocommerce-pagination .page-numbers li {
  margin: 0;
}

nav.woocommerce-pagination .page-numbers a,
nav.woocommerce-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

nav.woocommerce-pagination .page-numbers a:hover,
nav.woocommerce-pagination .page-numbers a:focus-visible {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

nav.woocommerce-pagination .page-numbers .current {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}
