/* =====================================================================
   Alpeka Hair Shears: shop and category pages in the homepage "Bold & Modern" look (1.4.10, 2026-11-26)
   Loaded only on the Shop page and product category/tag archives (functions.php), after woocommerce.css.
   Scoped to body.post-type-archive-product / body.tax-product_cat and the new .ah-shop-* markup; the header,
   mini-cart drawer, product, cart, checkout and account pages are untouched.
   ===================================================================== */

body.post-type-archive-product, body.tax-product_cat{
  --ah-ink:#141210; --ah-ink-2:#1d1a16; --ah-ink-3:#2a251f;
  --ah-paper:#faf7f1; --ah-paper-2:#f2ece1;
  --ah-gold:#c8a24a; --ah-gold-lt:#e6c877; --ah-gold-deep:#a9862f;
  --ah-cream:#f4efe6; --ah-muted:#b9b1a2; --ah-muted-d:#6f675b;
  --ah-line-d:rgba(20,18,16,.12);
  --ah-serif:"Fraunces",Georgia,"Times New Roman",serif;
  --ah-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
body.post-type-archive-product, body.tax-product_cat,
body.post-type-archive-product #content, body.tax-product_cat #content{background:var(--ah-paper);}

/* ---------- Page heading (homepage section head) ---------- */
.ah-shop-head{text-align:center;max-width:640px;margin:clamp(.5rem,2vw,1.5rem) auto 1.6rem;}
.ah-shop-head .ah-eyebrow,
.ah-shop-group-head .ah-eyebrow{
  display:inline-block;font-family:var(--ah-sans);font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:.72rem;color:var(--ah-gold-deep);
}
.ah-shop-head h1{font-family:var(--ah-serif);font-weight:600;line-height:1.08;letter-spacing:-.01em;color:var(--ah-ink);
  font-size:clamp(2rem,4vw,3rem);margin:.6rem 0 .5rem;}
.ah-shop-head p{color:var(--ah-muted-d);margin:0;}

/* ---------- Collection links (pills) ---------- */
.ah-shop-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin:0 0 1.8rem;}
.ah-shop-links a{
  display:inline-flex;align-items:center;min-height:44px;padding:.55rem 1.3rem;border-radius:999px;
  border:1.5px solid var(--ah-ink);color:var(--ah-ink) !important;background:transparent;
  font-family:var(--ah-sans);font-weight:600;font-size:.92rem;text-decoration:none;transition:.2s;
}
.ah-shop-links a:hover{background:var(--ah-ink);color:#fff !important;}
.ah-shop-links a[aria-current="page"]{background:var(--ah-gold);border-color:var(--ah-gold);color:var(--ah-ink) !important;}

/* ---------- Trust band (homepage strip, as a rounded dark band like the homepage "band") ---------- */
.ah-shop-trust{
  display:grid;grid-template-columns:repeat(var(--ah-n,4),1fr);gap:1rem;text-align:center;
  background:linear-gradient(100deg,var(--ah-ink),var(--ah-ink-3));color:var(--ah-cream);
  border-radius:20px;padding:1.3rem 1.2rem;margin:0 0 clamp(2rem,4vw,3rem);
}
.ah-shop-trust .ah-t b{display:block;color:#fff;font-family:var(--ah-serif);font-size:1.12rem;font-weight:600;line-height:1.3;}
.ah-shop-trust .ah-t span{font-family:var(--ah-sans);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ah-muted);}

/* ---------- Collection groups ---------- */
.ah-shop-group{clear:both;margin:0 0 clamp(2.5rem,5vw,4rem);scroll-margin-top:110px;}
.ah-shop-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;
  border-bottom:1px solid var(--ah-line-d);padding-bottom:1rem;margin-bottom:1.6rem;}
.ah-shop-group-head > div{max-width:620px;}
.ah-shop-group-head h2{font-family:var(--ah-serif);font-weight:600;line-height:1.1;letter-spacing:-.01em;color:var(--ah-ink);
  font-size:clamp(1.6rem,3vw,2.2rem);margin:.4rem 0 .35rem;}
.ah-shop-group-head p{color:var(--ah-muted-d);margin:0;font-size:.98rem;}
.ah-shop-group-head .ah-price{font-family:var(--ah-serif);font-size:1.15rem;font-weight:600;color:var(--ah-ink);white-space:nowrap;}
.ah-shop-group-head .ah-price span{font-family:var(--ah-sans);font-size:.78rem;color:var(--ah-muted-d);font-weight:500;}

/* ---------- Product cards (homepage card look) ---------- */
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product{border-radius:16px;}
body.post-type-archive-product ul.products li.product .ast-woo-product-category,
body.tax-product_cat ul.products li.product .ast-woo-product-category{
  display:block;padding:0 1.1rem;margin:.1rem 0 .15rem;opacity:1;
  font-family:var(--ah-sans);font-size:.7rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ah-gold-deep);
}
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title{padding:0 1.1rem;line-height:1.25;}
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price{padding:0 1.1rem;}

/* Result count off in grouped mode (PHP); sort menu tidied */
body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select{border:1px solid var(--ah-line-d);border-radius:999px;padding:.45rem 2.2rem .45rem 1rem;background-color:#fff;}

/* Pagination as pills (sorted views, other categories) */
body.post-type-archive-product .woocommerce-pagination ul.page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers{border:0;display:flex;gap:.4rem;}
body.post-type-archive-product .woocommerce-pagination ul.page-numbers li,
body.tax-product_cat .woocommerce-pagination ul.page-numbers li{border:0;}
body.post-type-archive-product .woocommerce-pagination .page-numbers a,
body.post-type-archive-product .woocommerce-pagination .page-numbers span,
body.tax-product_cat .woocommerce-pagination .page-numbers a,
body.tax-product_cat .woocommerce-pagination .page-numbers span{
  min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;
  border:1px solid var(--ah-line-d);background:#fff;color:var(--ah-ink);
}
body.post-type-archive-product .woocommerce-pagination .page-numbers span.current,
body.tax-product_cat .woocommerce-pagination .page-numbers span.current{background:var(--ah-ink);border-color:var(--ah-ink);color:#fff;}

/* ---------- Phone: two products per row ---------- */
@media (max-width:767px){
  .ah-shop-trust{grid-template-columns:repeat(2,1fr);row-gap:1rem;}
  .ah-shop-group-head{align-items:flex-start;}
}
@media (max-width:544px){
  body.post-type-archive-product ul.products:not(.elementor-grid),
  body.tax-product_cat ul.products:not(.elementor-grid){grid-template-columns:repeat(2,minmax(0,1fr)) !important;column-gap:12px;row-gap:12px;}
  body.post-type-archive-product ul.products li.product,
  body.tax-product_cat ul.products li.product{margin:0 !important;padding-bottom:.9rem !important;}
  body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_cat ul.products li.product .woocommerce-loop-product__title{font-size:.86rem;padding:0 .7rem;}
  body.post-type-archive-product ul.products li.product .ast-woo-product-category,
  body.tax-product_cat ul.products li.product .ast-woo-product-category{font-size:.62rem;padding:0 .7rem;letter-spacing:.12em;}
  body.post-type-archive-product ul.products li.product .price,
  body.tax-product_cat ul.products li.product .price{font-size:.95rem;padding:0 .7rem;}
  body.post-type-archive-product ul.products li.product a img,
  body.tax-product_cat ul.products li.product a img{margin-bottom:.5rem;}
  .ah-shop-links a{min-height:40px;padding:.45rem 1rem;font-size:.86rem;}
}

/* ---------- Focus ---------- */
.ah-shop-links a:focus-visible,
body.post-type-archive-product ul.products a:focus-visible,
body.tax-product_cat ul.products a:focus-visible{outline:3px solid var(--ah-gold);outline-offset:3px;}
