/* =============================================================
   WOOCOMMERCE  — css/woocommerce.css
   Scope: shop hero, archive nav pills, single product summary
   styles, form inputs, tables, notices, wishlist, newsletter.
   Product loop CARDS and gallery are owned by fixes-and-upgrades.css.
   ============================================================= */

/* ── Global button / price resets ──────────────────────────── */
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background:    var(--pq-green)  !important;
  color:         #fff             !important;
  border-radius: 999px            !important;
  font-weight:   700              !important;
  font-family:   var(--pq-font)   !important;
  border:        none             !important;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--pq-green-mid) !important; }

.price .amount,
.woocommerce .price { color: var(--pq-ink) !important; font-weight: 800 !important; }

/* ── Shop / category hero banner ───────────────────────────── */
.pq-shop-hero {
  margin-bottom:  24px;
  padding:        clamp(26px,4vw,42px);
  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%);
  border:         1px solid rgba(16,37,41,.10);
  box-shadow:     0 18px 48px rgba(16,37,41,.07);
  display:        flex;
  align-items:    flex-end;
  justify-content: space-between;
  gap:            24px;
  min-height:     180px;
}
.pq-shop-hero h1 {
  font-size: clamp(2.25rem,4vw,4rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 850;
  margin: 0 0 10px;
  color: var(--pq-ink);
}
.pq-shop-hero p  { max-width: 540px; color: rgba(16,37,41,.68); font-size: 1rem; line-height: 1.6; }
.pq-shop-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.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;
  font-weight:   800;
  font-size:     .78rem;
  color:         var(--pq-ink);
}

@media (max-width: 900px) {
  .pq-shop-hero { display: block; min-height: 0; padding: 26px; }
  .pq-shop-hero__badges { justify-content: flex-start; margin-top: 18px; }
}

/* ── Archive category nav ───────────────────────────────────── */
.pq-archive-cats {
  background:    transparent;
  border-bottom: 0;
  margin-bottom: 20px;
}
.pq-archive-cats__inner {
  display:          flex;
  gap:              8px;
  overflow-x:       auto;
  overflow-y:       visible;
  scrollbar-width:  none;
  -ms-overflow-style: none;
  padding:          4px 0 12px;
  width:            100%;
}
.pq-archive-cats__inner::-webkit-scrollbar { display: none; }

.pq-arc-cat {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  padding:        0 10px 14px;
  flex-shrink:    0;
  text-decoration: none;
  color:          rgba(16,37,41,.62);
  font-size:      .75rem;
  font-weight:    750;
  position:       relative;
  transition:     color var(--pq-ease);
  min-width:      88px;
}
.pq-arc-cat__photo {
  width:         66px; height: 66px;
  border-radius: 50%;
  overflow:      hidden;
  border:        2px solid rgba(16,37,41,.12);
  background:    linear-gradient(135deg, #e8f3ef, #dff2f5);
  box-shadow:    0 8px 18px rgba(16,37,41,.08);
  transition:    border-color var(--pq-ease), box-shadow var(--pq-ease);
  display:       grid;
  place-items:   center;
  flex-shrink:   0;
}
.pq-arc-cat__photo img { width: 100%; height: 100%; object-fit: cover; }
.pq-arc-cat__photo--empty,
.pq-arc-cat--all .pq-arc-cat__photo span { font-size: 1.3rem; }

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

.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 4px rgba(33,80,52,.10), 0 12px 24px rgba(16,37,41,.12);
}
.pq-arc-cat:hover,
.pq-arc-cat.is-active { color: var(--pq-green); }

.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;
}

/* ── Woo wrapper ────────────────────────────────────────────── */
.pq-woo { border-radius: var(--pq-radius-lg); background: var(--pq-white); }
.pq-woo--with-sidebar { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.pq-shop-sidebar { position: sticky; top: 110px; border: 1px solid var(--pq-border); border-radius: var(--pq-radius-lg); padding: 18px; background: var(--pq-cream); box-shadow: var(--pq-shadow); }
.pq-shop-main { min-width: 0; }
@media (max-width: 900px) {
  .pq-woo--with-sidebar { display: block; }
  .pq-shop-sidebar { position: static; margin-bottom: 18px; }
}

/* ── Result count / ordering ────────────────────────────────── */
.woocommerce-products-header { display: none; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 14px !important; color: var(--pq-muted); font-size: .86rem; }
.woocommerce .woocommerce-result-count { font-weight: 600; color: var(--pq-ink); margin: 0 0 22px !important; }
.woocommerce-ordering { margin: 0 0 22px !important; }
.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;
}
@media (max-width: 900px) {
  .woocommerce .woocommerce-result-count,
  .woocommerce-ordering { float: none; width: 100%; line-height: 1.4; }
  .woocommerce-ordering select { width: 100%; }
}

/* ── Form inputs ─────────────────────────────────────────────── */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border:        1px solid var(--pq-border);
  border-radius: 9px;
  padding:       10px 12px;
  background:    var(--pq-white);
  font-family:   var(--pq-font);
}

/* ── Tables ──────────────────────────────────────────────────── */
.woocommerce table.shop_table {
  border:        1px solid var(--pq-border) !important;
  border-radius: 14px !important;
  overflow:      hidden;
  background:    var(--pq-white);
}

/* ── Notices ─────────────────────────────────────────────────── */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--pq-green) !important;
  background:       var(--pq-white) !important;
  border-radius:    10px;
}

/* ══════════════════════════════════════════════════════════════
   SINGLE PRODUCT SUMMARY — layout, typography, form, tabs
   (Gallery CSS lives in fixes-and-upgrades.css)
   ══════════════════════════════════════════════════════════════ */
.single-product div.product { display: block; }

.single-product div.product .pq-single-shell .woocommerce-product-gallery,
.single-product div.product .pq-single-shell .summary {
  float: none !important;
  width: auto !important;
  clear: none !important;
}

.single-product .summary {
  background:    #fff;
  border:        1px solid var(--pq-border);
  border-radius: 20px;
  padding:       clamp(18px,2.4vw,28px);
  box-shadow:    0 18px 45px rgba(25,48,37,.08);
}

.single-product .product_title {
  font-size:      clamp(2rem,4.2vw,3.8rem);
  line-height:    .92;
  letter-spacing: -.07em;
  margin-bottom:  12px;
}
.single-product .summary .price {
  font-size: clamp(1.35rem,2.2vw,1.75rem);
  margin: 12px 0 18px !important;
}
.single-product .summary .price del { color: var(--pq-muted); font-weight: 700; opacity: .7; margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; }

.pq-single-benefits {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
  margin:    0 0 16px;
}
.pq-single-benefits span {
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  background:    var(--pq-cream);
  border:        1px solid var(--pq-border);
  border-radius: 999px;
  padding:       7px 11px;
  color:         var(--pq-ink);
  font-weight:   800;
  font-size:     .78rem;
}
.pq-single-benefits strong { color: var(--pq-green); font-weight: 900; }

.single-product form.cart,
.single-product form.variations_form.cart {
  background:    #fbfaf6;
  border:        1px solid var(--pq-border);
  border-radius: 18px;
  padding:       16px;
  margin:        18px 0 !important;
  display:       grid;
  gap:           12px;
}

/* Variations as grid */
.single-product table.variations {
  display: grid !important;
  gap: 14px;
  margin-bottom: 14px !important;
  width: 100%;
}
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td { display: block; width: 100%; }
.single-product table.variations th.label { padding: 0 !important; }
.single-product table.variations td.value { padding: 0 !important; }
.single-product table.variations label {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin:          0 0 9px;
  font-size:       .92rem;
  font-weight:     900;
  color:           var(--pq-ink);
}
.single-product table.variations select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--pq-border);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  font-family: var(--pq-font);
}
/* Hidden select when swatches active */
.single-product table.variations select.pq-variation-select-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.single-product .quantity .qty {
  width: 78px; min-height: 48px;
  border: 1px solid var(--pq-border);
  border-radius: 999px;
  text-align: center;
  background: #fff;
  font-family: var(--pq-font);
}
.single-product div.product form.cart div.quantity { margin: 0 8px 0 0 !important; }
.single-product button.single_add_to_cart_button {
  min-height: 50px;
  padding-inline: 32px !important;
  box-shadow: 0 12px 24px rgba(20,71,45,.16);
}
.single-product .reset_variations { display: none !important; }

/* Delivery promise */
.pq-single-promise { display: grid; gap: 10px; margin: 18px 0 0; }
.pq-single-promise__item {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--pq-border);
  border-radius: 16px;
  background: #fff;
}
.pq-single-promise strong { display: block; font-size: .95rem; letter-spacing: -.02em; }
.pq-single-promise p { margin: 3px 0 0; color: var(--pq-muted); font-size: .86rem; line-height: 1.45; }

/* After-content trust articles */
.pq-product-after {
  display: grid;
  gap: 16px;
  margin: 0 0 34px;
}
.pq-product-after > article {
  background:    #fff;
  border:        1px solid var(--pq-border);
  border-radius: 18px;
  padding:       20px;
  box-shadow:    var(--pq-shadow);
}
.pq-product-after h2 { font-size: 1.12rem; letter-spacing: -.03em; margin-bottom: 7px; }
.pq-product-after p  { margin: 0; color: var(--pq-muted); line-height: 1.55; }

/* Tabs */
.single-product .woocommerce-tabs { max-width: 820px; clear: both; margin-top: 34px; }
.single-product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 18px !important; border-bottom: 1px solid var(--pq-border); }
.single-product .woocommerce-tabs ul.tabs::before { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li { border: 1px solid var(--pq-border) !important; background: var(--pq-cream) !important; border-radius: 12px 12px 0 0 !important; margin: 0 4px 0 0 !important; padding: 0 !important; }
.single-product .woocommerce-tabs ul.tabs li a { padding: 10px 16px !important; font-weight: 800 !important; }

/* Related / upsell grids */
.single-product .related.products,
.single-product .upsells.products { clear: both; margin-top: 34px; }
.single-product .related.products > h2,
.single-product .upsells.products > h2 { font-size: 1.35rem; letter-spacing: -.035em; margin-bottom: 14px; }
.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 18px !important;
}
@media (max-width: 900px) {
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

/* Product meta */
.single-product .product_meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pq-border); color: var(--pq-muted); font-size: .82rem; line-height: 1.7; }

/* Swatches */
.pq-variation-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.pq-swatch {
  min-height: 42px;
  border: 1px solid var(--pq-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pq-ink);
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: .86rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(25,48,37,.05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.pq-swatch:hover { transform: translateY(-1px); border-color: rgba(22,80,52,.34); }
.pq-swatch.is-selected { border-color: var(--pq-green); background: #eef6ee; box-shadow: inset 0 0 0 1px var(--pq-green); }
.pq-swatch.is-disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; transform: none; }
.pq-swatch--color { padding: 7px 12px 7px 7px; }
.pq-swatch__chip { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid rgba(25,48,37,.14); background: linear-gradient(135deg,#f5f2eb,#d8d0c2); font-size: .72rem; font-weight: 900; }
.pq-swatch.is-selected .pq-swatch__chip { box-shadow: 0 0 0 2px var(--pq-green); }

/* Stock indicator */
.single-product .stock.in-stock { display: inline-flex; align-items: center; gap: 9px; color: #2867d8; }
.single-product .stock.in-stock::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: #2867d8; animation: pq-stock-pulse 1.55s ease-out infinite; flex: 0 0 auto; }
@keyframes pq-stock-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(40,103,216,.42); }
  70%  { box-shadow: 0 0 0 8px rgba(40,103,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,103,216,0); }
}
.single-product .stock.out-of-stock { color: #a33b31; }

@media (max-width: 760px) {
  .single-product .summary { position: static !important; }
  .pq-single-benefits { grid-template-columns: 1fr; }
  .single-product button.single_add_to_cart_button { position: sticky; bottom: 12px; z-index: 30; box-shadow: 0 14px 34px rgba(36,77,53,.28); width: 100%; }
}

/* ── Wishlist ────────────────────────────────────────────────── */
.pq-wishlist-wrap { max-width: 720px; margin: auto; }
.pq-wishlist-form { background: var(--pq-white); border: 1px solid var(--pq-border); border-radius: 18px; padding: 26px; box-shadow: var(--pq-shadow); display: grid; gap: 12px; }
.pq-wishlist-form input,
.pq-wishlist-form textarea { width: 100%; border: 1px solid var(--pq-border); border-radius: 9px; padding: 11px 13px; font: inherit; }
.pq-wishlist-form textarea { min-height: 110px; }
