/* AUTO-GENERATED from src/components/sites/zooplus/catalog-parity.css — run: node scripts/sync-zooplus-css-to-wp-theme.mjs */
/**
 * Catalog parity — mirrors ProductCard.tsx + ShopCatalogView.tsx (spacing + cards + grid).
 * Synced to WordPress: scripts/sync-zooplus-css-to-wp-theme.mjs
 */

.zooplus-site :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote),
.snout-purr-site :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
  margin: 0;
}

/* Tailwind spacing utilities used in Next shop/home */
.zooplus-site .py-10,
.snout-purr-site .py-10 {
  padding-block: 2.5rem;
}

.zooplus-site .pt-6,
.snout-purr-site .pt-6 {
  padding-top: 1.5rem;
}

.zooplus-site .pb-10,
.snout-purr-site .pb-10 {
  padding-bottom: 2.5rem;
}

.zooplus-site .py-12,
.snout-purr-site .py-12 {
  padding-block: 3rem;
}

.zooplus-site .mb-5,
.snout-purr-site .mb-5 {
  margin-bottom: 1.25rem;
}

.zooplus-site .mt-3,
.snout-purr-site .mt-3 {
  margin-top: 0.75rem;
}

.zooplus-site .mt-4,
.snout-purr-site .mt-4 {
  margin-top: 1rem;
}

.zooplus-site .mt-6,
.snout-purr-site .mt-6 {
  margin-top: 1.5rem;
}

.zooplus-site .mt-8,
.snout-purr-site .mt-8 {
  margin-top: 2rem;
}

.zooplus-site .text-base,
.snout-purr-site .text-base {
  font-size: 1rem;
  line-height: 1.5;
}

.zooplus-site .mt-5,
.snout-purr-site .mt-5 {
  margin-top: 1.25rem;
}

.z-shop-breadcrumb {
  color: var(--z-text-subtle);
}

.z-shop-breadcrumb a {
  color: var(--z-green);
  font-weight: 700;
  text-decoration: none;
}

.z-shop-breadcrumb a:hover {
  text-decoration: underline;
}

.z-shop-intro {
  color: var(--z-text-subtle);
}

body.post-type-archive-product .snout-purr-main,
body.tax-product_cat .snout-purr-main,
body.tax-product_tag .snout-purr-main {
  padding-block: 0;
}

body.home .snout-purr-main {
  padding-block: 0;
}

/* Shop archive wrapper — centered column (see theme.css .z-shop-archive) */
.z-shop-archive .z-product-grid,
.z-shop-archive ul.products {
  width: 100%;
}

/* Product grid — Next: grid-cols-2 gap-5 sm:3 lg:4 */
.z-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

@media (min-width: 640px) {
  .z-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .z-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.z-product-grid__item,
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.z-product-grid__item > .z-product-card,
.woocommerce ul.products li.product > .z-product-card {
  flex: 1;
  width: 100%;
}

/* ProductCard.tsx default variant */
.z-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--z-radius);
  border: 1px solid var(--z-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.z-product-card:hover {
  border-color: var(--z-green);
  box-shadow: 0 4px 12px rgb(45 44 42 / 0.08);
}

.z-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--z-surface-muted);
  overflow: hidden;
}

.z-product-card__media img,
.z-product-card__media .z-product-card__img,
.z-product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  box-sizing: border-box;
  display: block;
  transition: transform 0.15s ease;
}

.z-product-card:hover .z-product-card__media img,
.z-product-card:hover .z-product-card__img {
  transform: scale(1.02);
}

.z-product-card__media .woocommerce-placeholder {
  position: absolute;
  inset: 0;
  border: 0 !important;
  background: transparent !important;
  opacity: 0.35;
  object-fit: contain;
  padding: 0.75rem;
  box-sizing: border-box;
}

.z-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
  min-height: 0;
}

.z-product-card__title {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--z-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .z-product-card__title {
    font-size: 1.125rem;
  }
}

.z-product-card:hover .z-product-card__title {
  color: var(--z-green);
}

.z-product-card__price {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--z-green);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .z-product-card__price,
  .z-product-card__price .z-product-card__amount {
    font-size: 1.5rem;
  }
}

.z-product-card__amount {
  font-weight: 900;
  color: var(--z-green);
}

.z-product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.z-product-rating__score {
  font-size: 0.75rem;
  font-weight: 700;
}

.z-product-rating__count {
  font-size: 0.75rem;
  color: var(--z-text-subtle);
}

.z-stars {
  display: inline-flex;
  line-height: 1;
}

.z-stars--sm {
  font-size: 0.75rem;
}

.z-star--full {
  color: var(--z-star);
}

.z-star--empty {
  color: #d4d4d4;
}

.z-star--partial {
  position: relative;
  color: #d4d4d4;
}

.z-star--partial::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--z-star-fill, 50%);
  overflow: hidden;
  color: var(--z-star);
}

/* Special Offers + Top Brands shop headers (ShopCatalogView) */
.z-shop-brands-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--z-border);
}

.z-shop-brands-intro {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--z-text-subtle);
}

@media (min-width: 768px) {
  .z-shop-brands-intro {
    font-size: 1.125rem;
  }
}

/* Woo loop — no default WooCommerce layout CSS */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  width: 100%;
  clear: none;
  float: none;
}

@media (min-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
  content: none;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.z-product-grid__item {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  clear: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  display: none;
}

.woocommerce .woocommerce-breadcrumb {
  display: none;
}
