/* Aubree catalogue refinement. Scoped to product surfaces; no theme/core edits. */
.aubree-shop-design {
  --aubree-ink: #263c38;
  --aubree-muted: #596660;
  --aubree-teal: #216d65;
  --aubree-teal-dark: #18564f;
  --aubree-gold: #c2884f;
  --aubree-cream: #fcf6ef;
  --aubree-price-bg: #edf5f1;
  --aubree-line: #dce4df;
  --aubree-radius: 14px;
}
.aubree-shop-design.post-type-archive-product #content,
.aubree-shop-design.tax-product_cat #content,
.aubree-shop-design.single-product #content { background: var(--aubree-cream); }
.aubree-shop-design .woocommerce-products-header {
  padding-block: clamp(20px, 4vw, 48px) 24px;
  margin-block-end: 24px;
  border-bottom: 2px solid var(--aubree-gold);
}
.aubree-shop-design .woocommerce-products-header .woocommerce-products-header__title {
  color: var(--aubree-ink);
  font-size: clamp(30px, 4vw, 48px) !important; /* Overrides the backup's 56px !important rule. */
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.aubree-shop-design .woocommerce-products-header .term-description { max-width: 68ch; color: var(--aubree-muted); line-height: 1.7; }
.aubree-shop-design .aubree-breed-nav { clear: both; margin-block: 0 28px; }
.aubree-shop-design .aubree-breed-nav__label { display: block; margin-block-end: 10px; color: var(--aubree-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aubree-shop-design .aubree-breed-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aubree-shop-design .aubree-breed-nav a { display: flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid #b8c9c0; border-radius: 6px; background: #fff; color: var(--aubree-ink); font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.aubree-shop-design .aubree-breed-nav a[aria-current="page"] { background: var(--aubree-teal); border-color: var(--aubree-teal); color: #fff; box-shadow: inset 0 -3px 0 var(--aubree-gold); }
.aubree-shop-design .aubree-breed-nav a:hover { border-color: var(--aubree-teal); }
.aubree-shop-design.woocommerce .woocommerce-result-count { color: var(--aubree-muted); font-size: 14px; padding-block: 10px; }
.aubree-shop-design .woocommerce-ordering select { min-height: 44px; max-width: 100%; border: 1px solid #b8c9c0; border-radius: 6px; background-color: #fff; color: var(--aubree-ink); font-size: 16px; }

/* Explicit tracks remove Astra float widths and first/last-item offsets. */
.aubree-shop-design.woocommerce ul.products,
.aubree-shop-design .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
  margin: 0 0 36px;
  padding: 0;
  clear: both;
}
.aubree-shop-design.woocommerce ul.products::before,
.aubree-shop-design.woocommerce ul.products::after,
.aubree-shop-design .woocommerce ul.products::before,
.aubree-shop-design .woocommerce ul.products::after { content: none; }
.aubree-shop-design.woocommerce ul.products li.product,
.aubree-shop-design .woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--aubree-line);
  border-radius: var(--aubree-radius);
  box-shadow: 0 4px 16px rgb(38 60 56 / 4%);
  text-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.aubree-shop-design.woocommerce ul.products li.product:hover,
.aubree-shop-design .woocommerce ul.products li.product:hover { border-color: #99b6aa; box-shadow: 0 8px 24px rgb(38 60 56 / 9%); }
.aubree-shop-design ul.products li.product .astra-shop-thumbnail-wrap { position: relative; flex: 0 0 auto; margin: 0; padding: 12px 12px 0; }
.aubree-shop-design ul.products li.product .astra-shop-thumbnail-wrap > a { display: block; border-radius: 8px; }
.aubree-shop-design.woocommerce ul.products li.product a img,
.aubree-shop-design .woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f4f3ee;
  margin: 0;
  border-radius: 8px;
}
.aubree-shop-design ul.products li.product .astra-shop-summary-wrap { display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; padding: 20px; min-width: 0; }
.aubree-shop-design ul.products li.product .ast-woo-product-category { color: var(--aubree-muted); opacity: 1; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; margin: 0; }
.aubree-shop-design ul.products li.product .ast-loop-product__link { display: block; color: var(--aubree-ink); text-decoration: none; margin-block-end: 6px; }
.aubree-shop-design.woocommerce ul.products li.product .woocommerce-loop-product__title,
.aubree-shop-design .woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--aubree-ink); font-size: 18px; font-weight: 650; line-height: 1.45; letter-spacing: -.015em; margin: 0; padding: 0; overflow-wrap: anywhere; }
.aubree-shop-design ul.products li.product .ast-woo-shop-product-description { color: var(--aubree-muted); font-size: 14px; line-height: 1.65; }
.aubree-shop-design.woocommerce ul.products li.product .price,
.aubree-shop-design .woocommerce ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-height: 64px;
  margin: auto 0 0;
  padding: 15px 14px;
  border: 1px solid #d0e2d8;
  border-inline-start: 3px solid var(--aubree-teal);
  border-radius: 8px;
  background: var(--aubree-price-bg);
  color: var(--aubree-teal-dark);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.aubree-shop-design ul.products li.product .price del,
.aubree-shop-design.single-product div.product .summary .price del { opacity: 1; color: var(--aubree-muted); font-size: 14px; font-weight: 400; }
.aubree-shop-design ul.products li.product .price ins,
.aubree-shop-design.single-product div.product .summary .price ins { background: transparent; color: var(--aubree-teal-dark); font-weight: 750; text-decoration: none; }
.aubree-shop-design .aubree-price-enquiry { font-size: 17px; font-weight: 650; line-height: 1.6; }
.aubree-shop-design ul.products li.product .aubree-product-details { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid var(--aubree-teal); border-radius: 6px; background: var(--aubree-teal); color: #fff; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.aubree-shop-design ul.products li.product .aubree-product-details:hover { background: var(--aubree-teal-dark); border-color: var(--aubree-teal-dark); }
.aubree-shop-design.woocommerce ul.products li.product .onsale,
.aubree-shop-design .woocommerce ul.products li.product .onsale { position: absolute; z-index: 2; top: 24px; inset-inline-start: 24px; inset-inline-end: auto; min-height: 0; min-width: 0; margin: 0; padding: 6px 10px; border-radius: 4px; background: var(--aubree-teal-dark); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; pointer-events: none; }
.aubree-shop-design ul.products li.product .ast-shop-product-out-of-stock { color: var(--aubree-ink); background: #fff; border: 1px solid var(--aubree-line); padding: 8px 12px; font-weight: 600; }

/* Detail pages share the same price hierarchy as the category cards. */
.aubree-shop-design.single-product div.product .summary { padding: clamp(20px, 3vw, 36px); background: #fff; border: 1px solid var(--aubree-line); border-radius: var(--aubree-radius); }
.aubree-shop-design.single-product div.product .summary .product_title { color: var(--aubree-ink); font-size: clamp(26px, 3vw, 38px); line-height: 1.25; overflow-wrap: anywhere; }
.aubree-shop-design.single-product div.product .summary .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-block: 20px; padding: 20px; border-inline-start: 4px solid var(--aubree-teal); border-radius: 8px; background: var(--aubree-price-bg); color: var(--aubree-teal-dark); font-size: clamp(26px, 3vw, 34px); line-height: 1.3; font-weight: 750; font-variant-numeric: tabular-nums; }
.aubree-shop-design.single-product div.product .summary .woocommerce-product-details__short-description { color: var(--aubree-muted); line-height: 1.75; }
.aubree-shop-design.single-product div.product .summary a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 6px; background: var(--aubree-teal); color: #fff; font-weight: 600; text-decoration: none; }
.aubree-shop-design.single-product div.product .woocommerce-product-gallery img { border-radius: 10px; }
.aubree-shop-design .aubree-breed-nav a:focus-visible,
.aubree-shop-design ul.products li.product a:focus-visible,
.aubree-shop-design.single-product .summary a:focus-visible,
.aubree-shop-design .woocommerce-ordering select:focus-visible { outline: 3px solid var(--aubree-teal-dark); outline-offset: 4px; }
@media (max-width: 1024px) {
  .aubree-shop-design.woocommerce ul.products,
  .aubree-shop-design .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 540px) {
  .aubree-shop-design.woocommerce ul.products,
  .aubree-shop-design .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .aubree-shop-design ul.products li.product .astra-shop-summary-wrap { padding: 18px; }
  .aubree-shop-design .aubree-breed-nav a { padding: 9px 12px; }
  .aubree-shop-design.woocommerce .woocommerce-ordering,
  .aubree-shop-design.woocommerce .woocommerce-result-count { float: none; width: 100%; margin: 0 0 12px; }
  .aubree-shop-design .woocommerce-ordering select { width: 100%; }
  .aubree-shop-design.woocommerce #primary { padding-bottom: 80px; } /* Existing fixed contact bar. */
}
@media (prefers-reduced-motion: reduce) {
  .aubree-shop-design.woocommerce ul.products li.product,
  .aubree-shop-design .woocommerce ul.products li.product { transition: none; }
}
