/* Moment Makers — Category / Shop archive redesign (live).
 * Ideas borrowed from Winni & OyeGifts category pages: clean product cards with ratings/discount
 * visible, a light trust strip, and a tidy sort/filter row. Existing "Filter by Price" chips and
 * WooCommerce sorting/pagination logic are untouched — only restyled. */
:root{--mx-red:#880000;--mx-ink:#1c1b1f;--mx-mute:#6d6a70;--mx-line:#eee7e1;--mx-cream:#fbf7f3;--mx-green:#17864a}

body.archive .page-title,
body.tax-product_cat .page-title,
body.post-type-archive-product .page-title,
.woocommerce-products-header__title{
  font-family:Fraunces,serif!important;font-weight:700!important;color:var(--mx-ink)!important;
  text-align:left!important;max-width:1240px;margin:26px auto 4px!important;padding:0 20px;box-sizing:border-box
}
.mmx-catwrap{max-width:1240px;margin:0 auto 18px;padding:0 20px;box-sizing:border-box}
.mmx-cattrust{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 18px}
.mmx-cattrust span{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:var(--mx-cream);border:1px solid var(--mx-line);font:600 12.5px Inter,sans-serif;color:var(--mx-ink)}

.woocommerce-result-count{font:400 13.5px Inter,sans-serif!important;color:var(--mx-mute)!important;margin:0!important}
.woocommerce-ordering select{border-radius:12px!important;border:1.5px solid #e2d9d2!important;height:42px;padding:0 14px!important;font:500 13.5px Inter,sans-serif!important;color:var(--mx-ink)!important;background:#fff!important}
.woocommerce-ordering,.woocommerce-result-count{align-self:center}

/* clean product cards, matching home/product styling */
body.archive ul.products li.product,body.tax-product_cat ul.products li.product,body.post-type-archive-product ul.products li.product{
  border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;text-align:left!important;border-radius:0!important
}
body.archive ul.products li.product img,body.tax-product_cat ul.products li.product img,body.post-type-archive-product ul.products li.product img{
  border-radius:18px!important;aspect-ratio:1/1;object-fit:cover;transition:transform .4s
}
body.archive ul.products li.product:hover img,body.tax-product_cat ul.products li.product:hover img,body.post-type-archive-product ul.products li.product:hover img{transform:scale(1.04)}
body.archive .astra-shop-thumbnail-wrap,body.tax-product_cat .astra-shop-thumbnail-wrap,body.post-type-archive-product .astra-shop-thumbnail-wrap{border-radius:18px;overflow:hidden;background:var(--mx-cream);position:relative}
body.archive .astra-shop-summary-wrap,body.tax-product_cat .astra-shop-summary-wrap,body.post-type-archive-product .astra-shop-summary-wrap{padding:12px 56px 4px 4px!important;text-align:left!important;position:relative}
.ast-woo-product-category{font:600 11px Inter,sans-serif!important;letter-spacing:.09em;text-transform:uppercase;color:var(--mx-mute)!important;opacity:1!important}
.woocommerce-loop-product__title{font:500 15px/1.35 Inter,sans-serif!important;color:var(--mx-ink)!important;text-align:left!important}
body.archive ul.products li.product .price,body.tax-product_cat ul.products li.product .price,body.post-type-archive-product ul.products li.product .price{
  display:flex!important;align-items:baseline;gap:6px;flex-wrap:wrap;justify-content:flex-start!important;font:700 16px Inter,sans-serif!important;color:var(--mx-ink)!important;margin:0!important
}
ul.products li.product .price del{order:2;font-weight:400!important;font-size:12.5px!important;color:#6f6b72!important;opacity:1!important}
ul.products li.product .price ins{order:1;text-decoration:none!important;color:var(--mx-ink)!important}
.onsale{background:var(--mx-red)!important;border-radius:999px!important;font:600 11px Inter,sans-serif!important;padding:5px 10px!important;min-height:0!important;line-height:1!important;left:10px!important;top:10px!important}
.ast-on-card-button{display:none!important}
body ul.products li.product .cgt-cart-icon-btn{position:absolute!important;right:4px!important;top:14px!important;bottom:auto!important;left:auto!important;width:42px!important;height:42px!important;margin:0!important;border-radius:50%!important;background:#fff!important;color:var(--mx-red)!important;border:1.5px solid #ecdcd6!important;box-shadow:0 6px 14px -8px rgba(0,0,0,.35)!important}
body ul.products li.product .cgt-cart-icon-btn svg{stroke:var(--mx-red)!important;color:var(--mx-red)!important}
body ul.products li.product .cgt-cart-icon-btn:hover{background:var(--mx-red)!important;color:#fff!important}
body ul.products li.product .cgt-cart-icon-btn:hover svg{stroke:#fff!important;color:#fff!important}

/* star rating, shown only when a product actually has reviews (native WooCommerce markup) */
.star-rating{font-size:13px!important;margin:2px 0 4px!important;color:#f5a623!important}

/* quick sub-type filter chips */
.mmx-chipfilter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.mmx-chipfilter button{padding:8px 15px;border-radius:999px;border:1.5px solid var(--mx-line);background:#fff!important;color:var(--mx-ink)!important;font:500 13px Inter,sans-serif!important;cursor:pointer;box-shadow:none!important}
.mmx-chipfilter button.on{border-color:var(--mx-red)!important;background:#fff3f1!important;color:var(--mx-red)!important}
ul.products li.product.mmx-filtered-out,.woocommerce ul.products li.product.mmx-filtered-out,.woocommerce-page ul.products li.product.mmx-filtered-out{display:none!important}

@media (max-width:600px){
  body.archive ul.products li.product .astra-shop-summary-wrap,body.tax-product_cat ul.products li.product .astra-shop-summary-wrap,body.post-type-archive-product ul.products li.product .astra-shop-summary-wrap{padding:10px 2px 4px 2px!important}
  .mmx-cattrust span{font-size:11px;padding:6px 10px}
  .woocommerce-loop-product__title{font-size:13.5px!important}
}

/* ---- Audit fixes (v1.7.0) ---- */
body ul.products li.product .woocommerce-loop-product__title,body ul.products li.product .ast-woo-product-category{text-align:left!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
body ul.products li.product .price del,body ul.products li.product .price del *{color:#6f6b72!important}
@media (max-width:600px){
  .mmx-cattrust{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:4px 0 12px;padding-bottom:2px}
  .mmx-cattrust::-webkit-scrollbar{display:none}
  .mmx-cattrust span{flex:0 0 auto;white-space:nowrap}
  .mmx-chipfilter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}
  .mmx-chipfilter::-webkit-scrollbar{display:none}
  .mmx-chipfilter button{flex:0 0 auto}
  body ul.products li.product .astra-shop-summary-wrap{padding:10px 2px 4px!important}
  body ul.products li.product .cgt-cart-icon-btn{top:auto!important;bottom:calc(100% + 10px)!important;right:10px!important;width:38px!important;height:38px!important}
  body ul.products li.product .woocommerce-loop-product__title{font-size:13.5px!important}
  /* 4- and 5-column grid options don't fit on a phone */
  .cgt-col-btn[data-cols="4"],.cgt-col-btn[data-cols="5"]{display:none!important}
}
.mmx-catwrap{max-width:none!important;padding:0!important;margin:0 0 14px!important}
/* search results: CGT already prints its own "Search results" title — hide Astra's duplicate heading block */
body:has(.cgt-cat-title) .ast-archive-description{display:none!important}
/* CGT's product-card.css centres card titles with a stronger selector; keep title, label and price on one left edge */
html body ul.products li.product.product .woocommerce-loop-product__title,
html body ul.products li.product.product .ast-woo-product-category{text-align:left!important}


/* ==== Category page redesign (CGT 4.9.51) — hero, circles, sticky bar, help banner, FAQ ==== */
:root{--cx-red:#880000;--cx-ink:#1c1b1f;--cx-mute:#6d6a70;--cx-line:#eee7e1;--cx-cream:#fbf7f3}
  .mmx-catwrap,.woocommerce-result-count,.ast-archive-description,.woocommerce-products-header .cgt-cat-title,.woocommerce-products-header .page-title,.woocommerce-products-header .term-description{display:none!important}
  .woocommerce-products-header:not(:has(.cgt-cat-slider)){display:none!important}
  /* CGT's category-page.js hides any heading whose text equals its own title (inline display:none) — keep ours */
  .cx-hero h1{display:block!important}
  .cx-hero{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:center;margin:18px 0 22px;padding:34px 38px;border-radius:28px;background:var(--cx-bg);overflow:hidden}
  .cx-hero:before{content:"";position:absolute;right:-80px;top:-80px;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.35);z-index:0}
  .cx-hero > *{position:relative;z-index:1}
  .cx-bc{font:500 12.5px Inter,sans-serif;color:var(--cx-mute);margin-bottom:10px}.cx-bc a{color:var(--cx-mute)!important;text-decoration:none!important}.cx-bc a:hover{color:var(--cx-red)!important}.cx-bc span{margin:0 6px;opacity:.6}
  .cx-hero h1{margin:0!important;font:700 44px/1.08 Fraunces,serif!important;color:var(--cx-ink)!important;letter-spacing:-.01em}
  .cx-hero p.cx-sub{margin:12px 0 0;max-width:470px;font:400 15.5px/1.55 Inter,sans-serif;color:#4c4750}
  .cx-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:18px}
  .cx-meta span{display:inline-flex;align-items:center;gap:6px;font:600 12.5px Inter,sans-serif;color:var(--cx-ink)}
  .cx-meta i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:var(--cx-red);font-style:normal;font-size:11px;box-shadow:0 2px 6px -2px rgba(0,0,0,.2)}
  .cx-count{display:inline-block;margin-top:18px;padding:7px 14px;border-radius:999px;background:#fff;font:600 12.5px Inter,sans-serif;color:var(--cx-red)}
  .cx-collage{position:relative;height:230px}
  .cx-collage img{position:absolute;width:150px;height:150px;object-fit:cover;border-radius:22px;border:5px solid #fff;box-shadow:0 18px 34px -16px rgba(0,0,0,.45);transition:transform .4s}
  .cx-collage img:nth-child(1){left:6%;top:36px;transform:rotate(-8deg);z-index:1}
  .cx-collage img:nth-child(2){left:34%;top:0;width:170px;height:170px;transform:rotate(3deg);z-index:3}
  .cx-collage img:nth-child(3){right:4%;top:58px;transform:rotate(9deg);z-index:2}
  .cx-hero:hover .cx-collage img:nth-child(2){transform:rotate(0) scale(1.03)}
  .cx-sec-h{display:flex;align-items:baseline;justify-content:space-between;margin:4px 0 12px}
  .cx-sec-h b{font:700 20px Fraunces,serif;color:var(--cx-ink)}
  .cx-sec-h small{font:500 12.5px Inter,sans-serif;color:var(--cx-mute)}
  .cx-circles{display:flex;gap:18px;overflow-x:auto;padding:4px 2px 12px;margin-bottom:10px;scrollbar-width:none}
  .cx-circles::-webkit-scrollbar{display:none}
  .cx-circles a{flex:0 0 96px;text-align:center;text-decoration:none!important;color:var(--cx-ink)!important;font:600 12.5px/1.3 Inter,sans-serif}
  .cx-circles em{display:block;width:88px;height:88px;margin:0 auto 8px;border-radius:50%;background:center/cover no-repeat var(--cx-cream);border:3px solid #fff;box-shadow:0 0 0 1.5px var(--cx-line);transition:box-shadow .2s,transform .2s}
  .cx-circles a:hover em{transform:translateY(-3px);box-shadow:0 0 0 2px var(--cx-red)}
  .cx-circles a.on em{box-shadow:0 0 0 2.5px var(--cx-red)}.cx-circles a.on{color:var(--cx-red)!important}
  .cx-bar{position:sticky;top:var(--cx-top,0px);z-index:50;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 22px;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border:1px solid var(--cx-line);box-shadow:0 10px 24px -20px rgba(0,0,0,.4)}
  .cx-bar .cx-n{font:700 14px Inter,sans-serif;color:var(--cx-ink);padding:0 6px;white-space:nowrap}
  .cx-bar .cx-pills{display:flex;gap:8px;flex:1;overflow-x:auto;scrollbar-width:none}.cx-bar .cx-pills::-webkit-scrollbar{display:none}
  .cx-bar .cx-pills a{flex:0 0 auto;padding:8px 14px;border-radius:999px;border:1.5px solid var(--cx-line);background:#fff;font:600 12.5px Inter,sans-serif;color:var(--cx-ink)!important;text-decoration:none!important;white-space:nowrap}
  .cx-bar .cx-pills a:hover{border-color:var(--cx-red);color:var(--cx-red)!important}
  .cx-bar .cx-pills a.active{background:var(--cx-red);border-color:var(--cx-red);color:#fff!important}
  .cx-bar .woocommerce-ordering{margin:0!important;float:none!important}
  .cx-bar .woocommerce-ordering select{height:38px!important;border-radius:999px!important;padding:0 34px 0 14px!important;font:600 12.5px Inter,sans-serif!important;border:1.5px solid var(--cx-line)!important}
  .cx-bar .cgt-col-selector{display:flex;gap:4px}
  .cx-bar .cgt-col-btn{background:#fff!important;border:1.5px solid var(--cx-line)!important;width:38px!important;height:38px!important;border-radius:10px!important}
  .cx-bar .cgt-col-btn .cgt-col-icon-bar{background:#8a8590!important}
  .cx-bar .cgt-col-btn.active{border-color:var(--cx-red)!important}.cx-bar .cgt-col-btn.active .cgt-col-icon-bar{background:var(--cx-red)!important}
  .cgt-shop-toolbar{display:none!important}
  .cx-promo{grid-column:1/-1!important;width:100%!important;flex:0 0 100%!important;max-width:100%!important;list-style:none!important;margin:6px 0 14px!important}
  .cx-promo > div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 30px;border-radius:24px;background:linear-gradient(120deg,#880000,#b0243a);color:#fff}
  .cx-promo b{display:block;font:700 24px/1.2 Fraunces,serif;color:#fff}
  .cx-promo span{display:block;margin-top:6px;font:400 14px Inter,sans-serif;opacity:.9}
  .cx-promo .cx-btns{display:flex;gap:10px;flex-wrap:wrap}
  .cx-promo a{padding:12px 20px;border-radius:14px;background:#fff;color:#880000!important;font:700 14px Inter,sans-serif;text-decoration:none!important;white-space:nowrap}
  .cx-promo a.o{background:transparent;color:#fff!important;border:1.5px solid rgba(255,255,255,.7)}
  .woocommerce-pagination ul{border:0!important;display:flex!important;gap:8px;justify-content:center}
  .woocommerce-pagination ul li{border:0!important}
  .woocommerce-pagination ul li a,.woocommerce-pagination ul li span{min-width:42px;height:42px;display:grid!important;place-items:center;border-radius:12px!important;border:1.5px solid var(--cx-line)!important;font:600 14px Inter,sans-serif!important;color:var(--cx-ink)!important;background:#fff!important}
  .woocommerce-pagination ul li span.current{background:var(--cx-red)!important;border-color:var(--cx-red)!important;color:#fff!important}
  .cx-foot{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:40px 0 10px}
  .cx-card{padding:24px 26px;border-radius:22px;background:var(--cx-cream);border:1px solid var(--cx-line)}
  .cx-card h3{margin:0 0 14px!important;font:700 21px Fraunces,serif!important;color:var(--cx-ink)!important}
  .cx-steps{display:grid;gap:12px}
  .cx-steps div{display:flex;gap:12px;align-items:flex-start;font:400 13.5px/1.5 Inter,sans-serif;color:var(--cx-mute)}
  .cx-steps em{flex:0 0 30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--cx-red);color:#fff;font:700 13px Inter,sans-serif;font-style:normal}
  .cx-steps b{display:block;color:var(--cx-ink);font-weight:700}
  .cx-faq details{border-top:1px solid var(--cx-line);padding:12px 0}
  .cx-faq details:first-of-type{border-top:0;padding-top:0}
  .cx-faq summary{cursor:pointer;list-style:none;font:600 14px Inter,sans-serif;color:var(--cx-ink);display:flex;justify-content:space-between;gap:10px}
  .cx-faq summary:after{content:"+";color:var(--cx-red);font-size:18px;line-height:1}.cx-faq details[open] summary:after{content:"–"}
  .cx-faq p{margin:8px 0 0;font:400 13.5px/1.6 Inter,sans-serif;color:var(--cx-mute)}
  .cx-more{margin:18px 0 10px}.cx-more b{display:block;margin-bottom:10px;font:700 18px Fraunces,serif;color:var(--cx-ink)}
  .cx-more a{display:inline-block;margin:0 8px 8px 0;padding:8px 14px;border-radius:999px;border:1.5px solid var(--cx-line);font:600 12.5px Inter,sans-serif;color:var(--cx-ink)!important;text-decoration:none!important;background:#fff}
  .cx-more a:hover{border-color:var(--cx-red);color:var(--cx-red)!important}
  @media (max-width:800px){
    .cx-hero{grid-template-columns:1fr;padding:24px 20px 0;border-radius:22px;gap:6px}
    .cx-hero h1{font-size:32px!important}.cx-hero p.cx-sub{font-size:14px}
    .cx-collage{height:150px;margin:0 -20px}
    .cx-collage img{width:104px;height:104px;border-width:4px;border-radius:18px}
    .cx-collage img:nth-child(2){width:118px;height:118px;left:36%}
    .cx-circles a{flex-basis:78px;font-size:11.5px}.cx-circles em{width:70px;height:70px}
    .cx-bar{border-radius:14px;padding:8px;gap:8px}.cx-bar .cx-n{display:none}.cx-bar .cgt-col-selector{display:none}
    .cx-bar .woocommerce-ordering{order:3;flex:1 1 100%}.cx-bar .woocommerce-ordering select{width:100%!important}
    .cx-promo > div{flex-direction:column;align-items:flex-start;padding:22px 20px}.cx-promo b{font-size:20px}
    .cx-foot{grid-template-columns:1fr}
  }

/* ===== 8 Oct (4): shop / category on phones — compact hero + one-row filter bar ===== */
@media (max-width:800px){
  body .cx-hero{padding:16px 16px 14px!important;margin:10px 0 14px!important;border-radius:18px!important}
  body .cx-hero .cx-collage,body .cx-hero .cx-meta{display:none!important}
  body .cx-hero h1{font-size:26px!important}
  body .cx-hero p.cx-sub{margin-top:6px!important;font-size:13px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body .cx-hero .cx-count{margin-top:10px!important;padding:5px 11px!important;font-size:11.5px!important}
  body .cx-hero:before{display:none}
  body .cx-bar{flex-wrap:nowrap!important;margin:4px 0 14px!important;padding:6px!important;gap:6px!important}
  body .cx-bar .cx-pills{min-width:0}
  body .cx-bar .cx-pills a{padding:7px 12px!important;font-size:12px!important}
  body .cx-bar .woocommerce-ordering{order:0!important;flex:0 0 auto!important}
  body .cx-bar .woocommerce-ordering select{width:104px!important;height:34px!important;padding:0 24px 0 10px!important;font-size:11.5px!important}
  body .cx-circles{margin-bottom:6px}
}
@media (max-width:800px){body .cx-bar .woocommerce-ordering{position:relative;z-index:2;background:#fff;padding-left:4px}body .cx-bar .cx-pills{overflow-x:auto;flex:1 1 0}}
