/* =============================================================
   SHOP  — css/shop.css
   Homepage sections: categories, bestsellers, community,
   bundles, reviews. Also the product-archive category nav bar.
   ============================================================= */

/* ══════════════════════════════════════════════════════════════
   SHOP BY CATEGORY  (homepage grid)
   ════════════════════════════════════════════════════════════ */
.pq-categories { background: var(--pq-white); }

.pq-category-grid {
  display:               grid;
  grid-template-columns: repeat(6, 1fr);
  gap:                   12px;
}

.pq-cat-card {
  display:        flex;
  flex-direction: column;
  border-radius:  var(--pq-radius-lg);
  border:         1px solid var(--pq-border);
  overflow:       hidden;
  background:     var(--pq-white);
  color:          var(--pq-ink);
  transition:     box-shadow var(--pq-ease), transform var(--pq-ease);
}
.pq-cat-card:hover {
  box-shadow: var(--pq-shadow-md);
  transform:  translateY(-3px);
}

.pq-cat-card__img {
  position:      relative;
  aspect-ratio:  3 / 3.4;
  overflow:      hidden;
  background:    var(--pq-sand);
  flex-shrink:   0;
}
.pq-cat-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.pq-cat-card:hover .pq-cat-card__img img { transform: scale(1.05); }
.pq-cat-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--pq-sage), var(--pq-blue));
}

.pq-cat-card__body {
  padding:        12px 14px 14px;
  display:        flex;
  flex-direction: column;
  gap:            3px;
  flex:           1;
}
.pq-cat-card__body strong {
  font-size:   .875rem;
  font-weight: 800;
  line-height: 1.25;
}
.pq-cat-card__body p {
  font-size:   .75rem;
  color:       var(--pq-muted);
  line-height: 1.4;
  margin:      0;
}
.pq-cat-card__cta {
  font-size:   .78rem;
  font-weight: 700;
  color:       var(--pq-green-light);
  margin-top:  5px;
}

/* ══════════════════════════════════════════════════════════════
   BESTSELLERS  (horizontal scroll strip)
   ════════════════════════════════════════════════════════════ */
.pq-bestsellers { background: var(--pq-white); }

.pq-bestseller-wrap {
  overflow-x:    auto;
  overflow-y:    visible;
  border:        1px solid var(--pq-border);
  border-radius: var(--pq-radius-lg);
  background:    var(--pq-white);
  scrollbar-width: thin;
  scrollbar-color: var(--pq-border) transparent;
}
.pq-bestseller-wrap::-webkit-scrollbar { height: 4px; }
.pq-bestseller-wrap::-webkit-scrollbar-thumb { background: var(--pq-border); border-radius: 4px; }

.pq-bestseller-strip {
  display:    flex;
  flex-direction: row;
  min-width:  min-content;
}

.pq-bs-card {
  position:       relative;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  padding:        18px 14px 16px;
  gap:            10px;
  min-width:      186px;
  flex:           1;
  border-right:   1px solid var(--pq-border);
  background:     var(--pq-white);
  color:          var(--pq-ink);
  transition:     background var(--pq-ease);
  text-decoration: none;
}
.pq-bs-card:last-child { border-right: none; }
.pq-bs-card:hover      { background: var(--pq-sand); }

.pq-bs-card__img {
  width:         80px;
  height:        80px;
  border-radius: var(--pq-radius);
  overflow:      hidden;
  background:    var(--pq-sand);
  flex-shrink:   0;
}
.pq-bs-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pq-bs-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--pq-sage), var(--pq-blue));
}

.pq-bs-card__info {
  display:        flex;
  flex-direction: column;
  gap:            3px;
  text-align:     center;
  width:          100%;
}
.pq-bs-card__name  { font-size: .82rem; font-weight: 700; line-height: 1.3; }
.pq-bs-card__stars { font-size: .78rem; color: #f59e0b; }
.pq-bs-half        { opacity: .5; }
.pq-bs-card__stars em { font-style: normal; color: var(--pq-muted); font-size: .72rem; margin-left: 2px; }
.pq-bs-card__price { font-size: .9rem; font-weight: 800; margin-top: 2px; }
.pq-bs-card__price .amount { color: var(--pq-ink); }

.pq-bs-card__wish {
  position:      absolute;
  top: 10px; right: 10px;
  width:         26px;
  height:        26px;
  border-radius: 50%;
  background:    transparent;
  border:        1.5px solid var(--pq-border);
  font-size:     .8rem;
  color:         var(--pq-muted);
  cursor:        pointer;
  display:       grid;
  place-items:   center;
  transition:    border-color var(--pq-ease), color var(--pq-ease);
  z-index:       2;
}
.pq-bs-card:hover .pq-bs-card__wish { border-color: var(--pq-green); color: var(--pq-green); }

/* ══════════════════════════════════════════════════════════════
   COMMUNITY / STORY  (two-column split)
   ════════════════════════════════════════════════════════════ */
.pq-community {
  padding:    clamp(40px, 5vw, 72px) 0;
  background: var(--pq-white);
}
.pq-community__grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   clamp(18px, 2.5vw, 36px);
  align-items:           stretch;
}

/* Left card */
.pq-community__copy {
  background:     var(--pq-sand);
  border-radius:  var(--pq-radius-lg);
  padding:        clamp(28px, 4vw, 52px);
  display:        flex;
  flex-direction: column;
  justify-content: center;
}
.pq-community__copy h2 {
  font-size:      clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight:    900;
  letter-spacing: -.04em;
  line-height:    1.1;
  margin-bottom:  28px;
}
.pq-community__perks        { display: flex; flex-direction: column; gap: 20px; }
.pq-community__perks li     { display: flex; align-items: flex-start; gap: 14px; }
.pq-community__perk-icon {
  width:         34px; height: 34px;
  border-radius: 50%;
  background:    var(--pq-white);
  border:        1px solid var(--pq-border);
  display:       grid; place-items: center;
  flex-shrink:   0;
  color:         var(--pq-green);
  margin-top:    2px;
}
.pq-community__perks strong { display: block; font-size: .9rem; font-weight: 800; line-height: 1.3; }
.pq-community__perks p      { font-size: .82rem; color: var(--pq-muted); margin-top: 2px; line-height: 1.5; }

/* Right photo + signup card */
.pq-community__visual {
  position:      relative;
  border-radius: var(--pq-radius-lg);
  overflow:      hidden;
  min-height:    340px;
}
.pq-community__photo {
  width:   100%; height: 100%;
  object-fit: cover;
  display: block;
  min-height: 340px;
}
.pq-community__photo--placeholder {
  background: linear-gradient(135deg, var(--pq-sage), var(--pq-blue));
  min-height: 340px;
}
.pq-community__signup {
  position:      absolute;
  bottom: 18px; right: 18px;
  width:         210px;
  background:    rgba(255,255,255,.97);
  border:        1px solid var(--pq-border);
  border-radius: var(--pq-radius-lg);
  padding:       18px 16px;
  box-shadow:    var(--pq-shadow-lg);
}
.pq-community__signup strong { display: block; font-size: .9rem; font-weight: 800; margin-bottom: 5px; }
.pq-community__signup p      { font-size: .76rem; color: var(--pq-muted); line-height: 1.5; margin-bottom: 12px; }
.pq-signup-form {
  display:       flex;
  border:        1.5px solid var(--pq-border);
  border-radius: 999px;
  overflow:      hidden;
  background:    #fff;
}
.pq-signup-form input {
  flex: 1; border: 0;
  padding: 8px 10px;
  font: inherit; font-size: .78rem;
  background: transparent; outline: none; min-width: 0;
}
.pq-signup-form button {
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: var(--pq-green); color: #fff;
  cursor: pointer; font-size: .9rem;
  flex-shrink: 0; margin: 2px;
  display: grid; place-items: center;
}

/* ══════════════════════════════════════════════════════════════
   BUNDLES  (dark section)
   ════════════════════════════════════════════════════════════ */
.pq-bundles { background: var(--pq-green); color: #fff; }
.pq-bundles .pq-section-row-head h2  { color: #fff; }
.pq-bundles .pq-view-all             { color: rgba(255,255,255,.55); }
.pq-bundles .pq-view-all:hover       { color: #fff; }

.pq-bundle-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   14px;
}
.pq-bundle {
  background:     rgba(255,255,255,.08);
  border:         1px solid rgba(255,255,255,.14);
  border-radius:  var(--pq-radius-lg);
  padding:        22px;
  display:        flex;
  flex-direction: column;
  gap:            8px;
}
.pq-bundle__img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--pq-radius); margin-bottom: 4px; }
.pq-bundle h3              { font-size: .95rem; font-weight: 800; }
.pq-bundle h3 a            { color: #fff; }
.pq-bundle p               { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.5; }
.pq-bundle__price          { font-weight: 800; font-size: .9rem; color: rgba(255,255,255,.9); }
.pq-bundle__price .amount  { color: rgba(255,255,255,.9); }
.pq-bundle .pq-btn--ghost  { border-color: rgba(255,255,255,.3); color: #fff; margin-top: auto; }
.pq-bundle .pq-btn--ghost:hover { border-color: #fff; }

/* ══════════════════════════════════════════════════════════════
   REVIEWS
   ════════════════════════════════════════════════════════════ */
.pq-reviews { background: var(--pq-white); }
.pq-review-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   14px;
}
.pq-review {
  background:    var(--pq-sand);
  border:        1px solid var(--pq-border);
  border-radius: var(--pq-radius-lg);
  padding:       22px;
}
.pq-review__stars { display: block; color: #f59e0b; font-size: .95rem; margin-bottom: 10px; }
.pq-review p      { font-size: .875rem; line-height: 1.6; margin-bottom: 10px; }
.pq-review span   { font-size: .78rem; font-weight: 700; color: var(--pq-muted); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT ARCHIVE  — category photo nav bar
   Shown above the WooCommerce product loop on /shop/ and
   /product-category/* pages.
   ════════════════════════════════════════════════════════════ */
.pq-archive-cats {
  background:     var(--pq-white);
  border-bottom:  1px solid var(--pq-border);
  padding:        0;           /* no vertical padding — scrollable row */
}

.pq-archive-cats__inner {
  display:          flex;
  gap:              0;
  overflow-x:       auto;
  overflow-y:       visible;
  scrollbar-width:  none;
  -ms-overflow-style: none;
  padding:          16px 0 0;  /* small top gap */
  /* Align to container */
  width:            min(calc(100% - 2 * var(--pq-gutter)), var(--pq-max));
  margin-inline:    auto;
}
.pq-archive-cats__inner::-webkit-scrollbar { display: none; }

/* Individual category pill */
.pq-arc-cat {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  padding:        0 14px 14px;
  flex-shrink:    0;
  text-decoration: none;
  color:          var(--pq-muted);
  font-size:      .78rem;
  font-weight:    600;
  position:       relative;
  transition:     color var(--pq-ease);
  min-width:      90px;
}

/* Photo circle */
.pq-arc-cat__photo {
  width:         62px;
  height:        62px;
  border-radius: 50%;
  overflow:      hidden;
  border:        2.5px solid var(--pq-border);
  background:    var(--pq-sand);
  transition:    border-color var(--pq-ease), box-shadow var(--pq-ease);
  flex-shrink:   0;
}
.pq-arc-cat__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pq-arc-cat__photo--empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--pq-sage), var(--pq-blue));
  display: grid; place-items: center;
  font-size: 1.4rem;
}

/* Label */
.pq-arc-cat__name {
  text-align:  center;
  line-height: 1.25;
  max-width:   80px;
}

/* Active / hover state */
.pq-arc-cat:hover .pq-arc-cat__photo,
.pq-arc-cat.is-active .pq-arc-cat__photo {
  border-color: var(--pq-green);
  box-shadow:   0 0 0 3px rgba(36,61,44,.12);
}
.pq-arc-cat:hover,
.pq-arc-cat.is-active {
  color: var(--pq-green);
}

/* Active underline indicator */
.pq-arc-cat.is-active::after {
  content:  '';
  position: absolute;
  bottom:   0; left: 50%;
  transform: translateX(-50%);
  width:    28px; height: 2.5px;
  background:    var(--pq-green);
  border-radius: 2px;
}

/* "All" pill (first item — no photo, just icon) */
.pq-arc-cat--all .pq-arc-cat__photo {
  background: var(--pq-sand);
  font-size:  1.3rem;
  display:    grid;
  place-items: center;
}

/* =============================================================
   ARCHIVE-ONLY PRODUCT GRID UPGRADE
   IMPORTANT: scoped to WooCommerce archive pages only, so homepage
   sections above stay unchanged.
   ============================================================= */

body.post-type-archive-product.woocommerce .pq-woo,
body.tax-product_cat.woocommerce .pq-woo,
body.tax-product_tag.woocommerce .pq-woo {
  background: transparent;
}

body.post-type-archive-product.woocommerce .pq-shop-hero,
body.tax-product_cat.woocommerce .pq-shop-hero,
body.tax-product_tag.woocommerce .pq-shop-hero {
  position: relative;
  min-height: 210px;
  margin: 0 0 26px;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 41, .10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(122,188,214,.25), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f8f3eb 42%, #e8f3ef 100%);
  box-shadow: 0 18px 48px rgba(16,37,41,.07);
}

body.post-type-archive-product.woocommerce .pq-shop-hero h1,
body.tax-product_cat.woocommerce .pq-shop-hero h1,
body.tax-product_tag.woocommerce .pq-shop-hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--pq-ink);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 850;
}

body.post-type-archive-product.woocommerce .pq-shop-hero p,
body.tax-product_cat.woocommerce .pq-shop-hero p,
body.tax-product_tag.woocommerce .pq-shop-hero p {
  max-width: 560px;
  color: rgba(16,37,41,.68);
  font-size: 1rem;
  line-height: 1.6;
}

body.post-type-archive-product.woocommerce .pq-shop-hero__badges,
body.tax-product_cat.woocommerce .pq-shop-hero__badges,
body.tax-product_tag.woocommerce .pq-shop-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.post-type-archive-product.woocommerce .pq-shop-hero__badges span,
body.tax-product_cat.woocommerce .pq-shop-hero__badges span,
body.tax-product_tag.woocommerce .pq-shop-hero__badges span {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,37,41,.10);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--pq-ink);
  font-weight: 800;
  font-size: .78rem;
}

body.post-type-archive-product.woocommerce .woocommerce-result-count,
body.tax-product_cat.woocommerce .woocommerce-result-count,
body.tax-product_tag.woocommerce .woocommerce-result-count {
  margin: 0 0 22px !important;
  color: rgba(16,37,41,.72);
  font-size: .95rem;
  line-height: 44px;
}

body.post-type-archive-product.woocommerce .woocommerce-ordering,
body.tax-product_cat.woocommerce .woocommerce-ordering,
body.tax-product_tag.woocommerce .woocommerce-ordering {
  margin: 0 0 22px !important;
}

body.post-type-archive-product.woocommerce .woocommerce-ordering select,
body.tax-product_cat.woocommerce .woocommerce-ordering select,
body.tax-product_tag.woocommerce .woocommerce-ordering select {
  min-width: 210px;
  height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(16,37,41,.14);
  border-radius: 14px;
  background-color: #fff;
  color: var(--pq-ink);
  font-size: .9rem;
  font-weight: 650;
  outline: none;
}

/* Archive category image circles */
body.post-type-archive-product.woocommerce .pq-archive-cats,
body.tax-product_cat.woocommerce .pq-archive-cats,
body.tax-product_tag.woocommerce .pq-archive-cats {
  margin-bottom: 20px;
  background: transparent;
  border-bottom: 0;
}

body.post-type-archive-product.woocommerce .pq-archive-cats__inner,
body.tax-product_cat.woocommerce .pq-archive-cats__inner,
body.tax-product_tag.woocommerce .pq-archive-cats__inner {
  width: 100%;
  padding: 4px 0 12px;
  gap: 8px;
}

body.post-type-archive-product.woocommerce .pq-arc-cat,
body.tax-product_cat.woocommerce .pq-arc-cat,
body.tax-product_tag.woocommerce .pq-arc-cat {
  min-width: 88px;
  padding: 0 10px 14px;
  color: rgba(16,37,41,.62);
  font-size: .75rem;
  font-weight: 750;
}

body.post-type-archive-product.woocommerce .pq-arc-cat__photo,
body.tax-product_cat.woocommerce .pq-arc-cat__photo,
body.tax-product_tag.woocommerce .pq-arc-cat__photo {
  width: 66px;
  height: 66px;
  border: 2px solid rgba(16,37,41,.12);
  background: linear-gradient(135deg, #e8f3ef, #dff2f5);
  box-shadow: 0 8px 18px rgba(16,37,41,.08);
}

body.post-type-archive-product.woocommerce .pq-arc-cat:hover .pq-arc-cat__photo,
body.post-type-archive-product.woocommerce .pq-arc-cat.is-active .pq-arc-cat__photo,
body.tax-product_cat.woocommerce .pq-arc-cat:hover .pq-arc-cat__photo,
body.tax-product_cat.woocommerce .pq-arc-cat.is-active .pq-arc-cat__photo,
body.tax-product_tag.woocommerce .pq-arc-cat:hover .pq-arc-cat__photo,
body.tax-product_tag.woocommerce .pq-arc-cat.is-active .pq-arc-cat__photo {
  border-color: var(--pq-green);
  box-shadow: 0 0 0 4px rgba(33,80,52,.10), 0 12px 24px rgba(16,37,41,.12);
}

/* Archive product grid: 5/4/3/2 cards */
body.post-type-archive-product.woocommerce ul.products,
body.tax-product_cat.woocommerce ul.products,
body.tax-product_tag.woocommerce ul.products,
body.post-type-archive-product.woocommerce-page ul.products,
body.tax-product_cat.woocommerce-page ul.products,
body.tax-product_tag.woocommerce-page ul.products {
  clear: both;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.post-type-archive-product.woocommerce ul.products::before,
body.post-type-archive-product.woocommerce ul.products::after,
body.tax-product_cat.woocommerce ul.products::before,
body.tax-product_cat.woocommerce ul.products::after,
body.tax-product_tag.woocommerce ul.products::before,
body.tax-product_tag.woocommerce ul.products::after {
  display: none !important;
}

body.post-type-archive-product.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce ul.products li.product,
body.tax-product_tag.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16,37,41,.10);
  border-radius: 20px !important;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,37,41,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.post-type-archive-product.woocommerce ul.products li.product:hover,
body.tax-product_cat.woocommerce ul.products li.product:hover,
body.tax-product_tag.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(33,80,52,.22);
  box-shadow: 0 18px 44px rgba(16,37,41,.11);
}

body.post-type-archive-product.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_cat.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.tax-product_tag.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

body.post-type-archive-product.woocommerce ul.products li.product img,
body.tax-product_cat.woocommerce ul.products li.product img,
body.tax-product_tag.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 210px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 14px !important;
  display: block;
  object-fit: contain !important;
  object-position: center;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(180deg, #f7faf8 0%, #eef5f2 100%);
  transition: transform .25s ease;
}

body.post-type-archive-product.woocommerce ul.products li.product:hover img,
body.tax-product_cat.woocommerce ul.products li.product:hover img,
body.tax-product_tag.woocommerce ul.products li.product:hover img {
  transform: scale(1.025);
}

body.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 42px;
  margin: 14px 14px 8px !important;
  padding: 0 !important;
  color: var(--pq-ink);
  font-size: .88rem !important;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.015em;
}

body.post-type-archive-product.woocommerce ul.products li.product .price,
body.tax-product_cat.woocommerce ul.products li.product .price,
body.tax-product_tag.woocommerce ul.products li.product .price {
  display: block;
  margin: 0 14px 14px !important;
  color: var(--pq-ink) !important;
  font-size: .92rem;
  font-weight: 850 !important;
}

body.post-type-archive-product.woocommerce ul.products li.product .button,
body.post-type-archive-product.woocommerce ul.products li.product a.button,
body.post-type-archive-product.woocommerce ul.products li.product .added_to_cart,
body.tax-product_cat.woocommerce ul.products li.product .button,
body.tax-product_cat.woocommerce ul.products li.product a.button,
body.tax-product_cat.woocommerce ul.products li.product .added_to_cart,
body.tax-product_tag.woocommerce ul.products li.product .button,
body.tax-product_tag.woocommerce ul.products li.product a.button,
body.tax-product_tag.woocommerce ul.products li.product .added_to_cart {
  width: calc(100% - 28px) !important;
  min-height: 40px;
  margin: auto 14px 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: var(--pq-green) !important;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 850 !important;
  line-height: 1;
  text-decoration: none;
}

body.post-type-archive-product.woocommerce ul.products li.product .button:hover,
body.post-type-archive-product.woocommerce ul.products li.product a.button:hover,
body.tax-product_cat.woocommerce ul.products li.product .button:hover,
body.tax-product_cat.woocommerce ul.products li.product a.button:hover,
body.tax-product_tag.woocommerce ul.products li.product .button:hover,
body.tax-product_tag.woocommerce ul.products li.product a.button:hover {
  background: var(--pq-ink) !important;
}

/* Product-category cards if WooCommerce outputs categories in the archive grid */
body.post-type-archive-product.woocommerce ul.products li.product-category,
body.tax-product_cat.woocommerce ul.products li.product-category,
body.tax-product_tag.woocommerce ul.products li.product-category {
  min-height: 260px;
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f3ef, #d9eff3);
}

body.post-type-archive-product.woocommerce ul.products li.product-category a,
body.tax-product_cat.woocommerce ul.products li.product-category a,
body.tax-product_tag.woocommerce ul.products li.product-category a {
  position: relative;
  display: flex;
  min-height: 260px;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
}

body.post-type-archive-product.woocommerce ul.products li.product-category img,
body.tax-product_cat.woocommerce ul.products li.product-category img,
body.tax-product_tag.woocommerce ul.products li.product-category img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform: none !important;
}

body.post-type-archive-product.woocommerce ul.products li.product-category a::after,
body.tax-product_cat.woocommerce ul.products li.product-category a::after,
body.tax-product_tag.woocommerce ul.products li.product-category a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,37,41,.62), rgba(16,37,41,.18), transparent);
  z-index: 1;
}

body.post-type-archive-product.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
body.tax-product_cat.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
body.tax-product_tag.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  padding: 18px !important;
  color: #fff;
  font-size: 1.08rem !important;
  line-height: 1.18;
  font-weight: 900;
}

@media (max-width: 1450px) {
  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 900px) {
  body.post-type-archive-product.woocommerce .pq-shop-hero,
  body.tax-product_cat.woocommerce .pq-shop-hero,
  body.tax-product_tag.woocommerce .pq-shop-hero {
    display: block;
    min-height: 0;
    padding: 26px;
    border-radius: 22px;
  }

  body.post-type-archive-product.woocommerce .pq-shop-hero__badges,
  body.tax-product_cat.woocommerce .pq-shop-hero__badges,
  body.tax-product_tag.woocommerce .pq-shop-hero__badges {
    justify-content: flex-start;
    margin-top: 18px;
  }

  body.post-type-archive-product.woocommerce .woocommerce-result-count,
  body.post-type-archive-product.woocommerce .woocommerce-ordering,
  body.tax-product_cat.woocommerce .woocommerce-result-count,
  body.tax-product_cat.woocommerce .woocommerce-ordering,
  body.tax-product_tag.woocommerce .woocommerce-result-count,
  body.tax-product_tag.woocommerce .woocommerce-ordering {
    float: none;
    width: 100%;
    line-height: 1.4;
  }

  body.post-type-archive-product.woocommerce .woocommerce-ordering select,
  body.tax-product_cat.woocommerce .woocommerce-ordering select,
  body.tax-product_tag.woocommerce .woocommerce-ordering select {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.post-type-archive-product.woocommerce ul.products li.product img,
  body.tax-product_cat.woocommerce ul.products li.product img,
  body.tax-product_tag.woocommerce ul.products li.product img {
    height: 185px !important;
    padding: 12px !important;
  }

  body.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_cat.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_tag.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 12px 12px 7px !important;
    font-size: .84rem !important;
  }

  body.post-type-archive-product.woocommerce ul.products li.product .price,
  body.tax-product_cat.woocommerce ul.products li.product .price,
  body.tax-product_tag.woocommerce ul.products li.product .price {
    margin: 0 12px 12px !important;
    font-size: .88rem;
  }

  body.post-type-archive-product.woocommerce ul.products li.product .button,
  body.post-type-archive-product.woocommerce ul.products li.product a.button,
  body.tax-product_cat.woocommerce ul.products li.product .button,
  body.tax-product_cat.woocommerce ul.products li.product a.button,
  body.tax-product_tag.woocommerce ul.products li.product .button,
  body.tax-product_tag.woocommerce ul.products li.product a.button {
    width: calc(100% - 24px) !important;
    min-height: 39px;
    margin: auto 12px 12px !important;
    font-size: .76rem;
  }
}

@media (max-width: 420px) {
  body.post-type-archive-product.woocommerce ul.products,
  body.tax-product_cat.woocommerce ul.products,
  body.tax-product_tag.woocommerce ul.products,
  body.post-type-archive-product.woocommerce-page ul.products,
  body.tax-product_cat.woocommerce-page ul.products,
  body.tax-product_tag.woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }

  body.post-type-archive-product.woocommerce ul.products li.product img,
  body.tax-product_cat.woocommerce ul.products li.product img,
  body.tax-product_tag.woocommerce ul.products li.product img {
    height: 240px !important;
  }
}
