/* Paypros Shop: shop and category pages (templates/archive-product.php). Uses the colours from shop.css. */
.pps-shop {
  --pps-ink: #1e293b; --pps-text: #475569; --pps-muted: #94a3b8; --pps-line: #e2e8f0; --pps-soft: #f8fafc;
  --pps-blue: #2563eb; --pps-blue2: #2563eb; --pps-chip: #eff6ff; --pps-red: #e11d48; --pps-star: #fbbf24;
  color: var(--pps-text); font-size: 14px; line-height: 1.45; background: #f4f6fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* full screen width, even inside the theme's content column */
  width: 100vw; position: relative; left: 50%; margin-left: -50vw; margin-top: 0;
}
.pps-page:has(.pps-shop) { overflow-x: hidden; }
.pps-page .site-content:has(.pps-shop), .pps-page #content:has(.pps-shop) { padding-top: 0 !important; margin-top: 0 !important; }
.pps-page .site-main:has(.pps-shop), .pps-page main:has(> .pps-shop) { margin: 0 !important; padding: 0 !important; }
.pps-shop *, .pps-shop *::before, .pps-shop *::after { box-sizing: border-box; }
.pps-shop a { text-decoration: none; color: inherit; }
.pps-wrap { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.pps-ticon { width: 20px; height: 20px; flex: none; object-fit: contain; color: var(--pps-blue2); }

/* layout: filters on the left, everything else on the right */
.pps-shop-grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 24px; }
.pps-shop-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pps-shop-main > * { margin: 0 !important; }
.pps-shop-main > .woocommerce-notices-wrapper:empty { display: none; }

/* sidebar boxes */
.pps-box { background: #fff; border: 1px solid var(--pps-line); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); margin-bottom: 20px; }
.pps-box h2 { font-size: 14px; color: var(--pps-ink); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; font-weight: 700; }
.pps-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pps-catlist a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--pps-text); }
.pps-catlist a:hover { background: var(--pps-soft); }
.pps-catlist li.on a { background: var(--pps-chip); color: var(--pps-blue); font-weight: 600; }
.pps-catlist .pps-ticon { width: 17px; height: 17px; }
.pps-catlist span { flex: 1; }
.pps-catlist em, .pps-filter em { font-style: normal; color: var(--pps-muted); font-size: 12px; }
.pps-catlist li.on em { color: var(--pps-blue); }
.pps-filter-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
.pps-filter-head h2 { border: 0; padding: 0; margin-bottom: 10px; }
.pps-filter-head a { color: var(--pps-blue2); font-size: 12px; font-weight: 500; }
.pps-filter fieldset { border: 0 !important; border-top: 1px solid #f1f5f9 !important; margin: 0 !important; padding: 14px 0 !important; background: none !important; min-width: 0; }
.pps-filter fieldset:first-of-type { border-top: 0 !important; }
.pps-filter legend { float: left; width: 100%; font-weight: 600; color: #334155; font-size: 12px; padding: 0 !important; margin: 0 0 10px !important; background: none !important; border: 0 !important; }
.pps-filter fieldset > label, .pps-filter .pps-price-in, .pps-filter .pps-range { clear: both; }
.pps-filter label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--pps-text); cursor: pointer; }
.pps-filter label span { flex: 1; }
.pps-filter input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--pps-blue2); margin: 0; }
.pps-range { display: block; width: 100%; margin: 2px 0 10px; accent-color: var(--pps-blue2); cursor: pointer; }
.pps-price-in { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pps-price-in i { font-style: normal; color: var(--pps-muted); }
.pps-price-in label { flex: 1; border: 1px solid var(--pps-line); border-radius: 6px; padding: 0 8px; gap: 4px; background: var(--pps-soft); }
.pps-price-in label span { flex: none; color: var(--pps-muted); }
.pps-price-in input { width: 100%; border: 0 !important; padding: 6px 0 !important; font-size: 12px; background: none !important; box-shadow: none !important; outline: none; color: var(--pps-text); }
.pps-stars span { color: #cbd5e1; font-size: 14px; letter-spacing: 1px; }
.pps-stars span.on { color: var(--pps-star); }
.pps-apply { width: 100%; margin-top: 8px; padding: 10px; border-radius: 8px; border: 0; background: var(--pps-blue2); color: #fff; font-weight: 700; cursor: pointer; }
.js .pps-apply, .pps-js .pps-apply { display: none; }

/* banner */
.pps-hero { border-radius: 12px; background: linear-gradient(90deg, #0e1d3d 0%, #152a56 55%, #1d3973 100%); color: #fff; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 4px 12px rgba(14, 29, 61, .15); }
.pps-hero h1 { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.pps-hero p { margin: 6px 0 0; color: #bfdbfe; font-size: 14px; }
.pps-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.pps-stats li { padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(255, 255, 255, .1); text-align: center; }
.pps-stats b { display: block; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.pps-stats span { font-size: 11px; color: #bfdbfe; }

/* results bar */
.pps-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--pps-line); border-radius: 12px; padding: 12px 16px; font-size: 12px; }
.pps-bar .woocommerce-result-count { margin: 0 !important; color: #64748b; font-weight: 500; float: none; font-size: 12px; }
.pps-bar-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pps-sort { display: flex; align-items: center; gap: 8px; color: #64748b; }
.pps-bar .woocommerce-ordering { margin: 0; float: none; }
.pps-bar .woocommerce-ordering select { border: 1px solid var(--pps-line); border-radius: 6px; padding: 6px 12px; background-color: #fff; font-size: 12px; font-weight: 500; color: #334155; min-width: 160px; height: auto; }
.pps-view { display: flex; border: 1px solid var(--pps-line); border-radius: 6px; overflow: hidden; background: #fff; }
.pps-view button, .pps-filters-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; padding: 6px 12px; font-size: 12px; color: #64748b; cursor: pointer; }
.pps-view button + button { border-left: 1px solid var(--pps-line); }
.pps-view svg { width: 14px; height: 14px; }
.pps-view button[aria-pressed="true"] { background: var(--pps-chip); color: var(--pps-blue); font-weight: 600; }
.pps-filters-btn { display: none; border: 1px solid var(--pps-line); border-radius: 6px; }

/* category cards, each with its own soft colour */
.pps-chips-wrap { position: relative; }
.pps-chips { list-style: none; margin: 0; padding: 0 48px 4px 0; display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.pps-chips::-webkit-scrollbar { display: none; }
.pps-chips a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--pps-line); border-radius: 12px; white-space: nowrap; transition: border-color .15s; }
.pps-chips a:hover { border-color: #60a5fa; }
.pps-chips .pps-ticon { width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: #e0f2fe; color: #0284c7; }
.pps-chips li:nth-child(8n+2) .pps-ticon { background: #e0e7ff; color: #4f46e5; }
.pps-chips li:nth-child(8n+3) .pps-ticon { background: #d1fae5; color: #059669; }
.pps-chips li:nth-child(8n+4) .pps-ticon { background: #fef3c7; color: #d97706; }
.pps-chips li:nth-child(8n+5) .pps-ticon { background: #f3e8ff; color: #9333ea; }
.pps-chips li:nth-child(8n+6) .pps-ticon { background: #ffedd5; color: #ea580c; }
.pps-chips li:nth-child(8n+7) .pps-ticon { background: #fce7f3; color: #db2777; }
.pps-chips li:nth-child(8n+8) .pps-ticon { background: #ccfbf1; color: #0d9488; }
.pps-chips img.pps-ticon { padding: 0; object-fit: cover; }
.pps-chips b { display: block; color: var(--pps-ink); font-size: 12px; }
.pps-chips small { color: var(--pps-muted); font-size: 10px; }
.pps-chips-next { position: absolute; right: 0; top: 50%; transform: translateY(-55%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pps-line); background: #fff; font-size: 20px; line-height: 1; color: var(--pps-ink); cursor: pointer; box-shadow: 0 4px 12px rgba(11, 20, 55, .1); }

/* product cards: six to a row on wide screens */
.pps-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pps-card { background: #fff; border: 1px solid var(--pps-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: box-shadow .15s, transform .15s; margin: 0 !important; width: auto !important; }
.pps-card:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.pps-card-img { position: relative; display: block; aspect-ratio: 16 / 10; height: auto; background: linear-gradient(135deg, #f1f5f9, #dbeafe); overflow: hidden; }
.pps-card-img img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; margin: 0 !important; border-radius: 0 !important; }
.pps-cbadge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 2px 7px; font-size: 9px; font-weight: 700; color: #fff; border-radius: 4px; background: #2563eb; text-transform: uppercase; letter-spacing: .02em; }
.pps-cb-best-seller { background: #2563eb; }
.pps-cb-new, .pps-cb-popular { background: #10b981; } .pps-cb-hot, .pps-cb-sale { background: #f43f5e; }
.pps-cb-trending { background: #0ea5e9; }
.pps-cpct { position: absolute; top: 10px; right: 10px; z-index: 2; background: #f43f5e; color: #fff; font-weight: 700; font-size: 9px; padding: 2px 7px; border-radius: 4px; }
.pps-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.pps-card-name { color: var(--pps-ink) !important; font-weight: 700; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pps-card-name:hover { color: var(--pps-blue2) !important; }
.pps-card-cat { color: var(--pps-muted); font-size: 11px; margin-top: 2px; }
.pps-card-rate { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--pps-muted); margin-top: 6px; }
.pps-card-rate .star-rating { float: none; margin: 0; font-size: 10px; color: var(--pps-star); }
.pps-card-rate .star-rating span::before, .pps-card-rate .star-rating::before { color: var(--pps-star); }
.pps-card-short { display: none; margin: 6px 0 0; font-size: 12px; }
.pps-card-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.pps-card-body > .pps-card-row { margin-top: 12px; }
.pps-card-sales { color: var(--pps-muted); font-size: 10px; white-space: nowrap; }
.pps-card-price { color: var(--pps-ink); font-weight: 800; font-size: 14px; text-align: right; white-space: nowrap; }
.pps-card-price del { color: var(--pps-muted); font-weight: 500; font-size: 10px; margin-right: 4px; }
.pps-card-price ins { text-decoration: none; color: var(--pps-red); }
.pps-card-acts { display: flex; gap: 6px; margin-top: 8px; }
.pps-card-demo { flex: 1; text-align: center; padding: 6px 0; border: 1px solid var(--pps-line); border-radius: 6px; background: #fff; color: var(--pps-blue) !important; font-size: 11px; font-weight: 600; }
.pps-card-demo:hover { background: var(--pps-soft); }
.pps-card-cart { width: 36px; display: grid; place-items: center; border-radius: 6px; background: var(--pps-blue2); color: #fff !important; padding: 0 !important; margin: 0 !important; font-size: 0 !important; line-height: 1; }
.pps-card-cart:hover { background: #1d4ed8; }
.pps-card-cart svg { width: 15px; height: 15px; }
.pps-card-cart.loading { opacity: .6; } .pps-card-cart.added { background: #16a34a; }
.pps-card-cart.added::after { display: none !important; }
.pps-card .added_to_cart { display: none; }

/* list view */
.pps-cards.is-list { grid-template-columns: 1fr; }
.pps-cards.is-list .pps-card { flex-direction: row; }
.pps-cards.is-list .pps-card-img { width: 220px; height: auto; min-height: 140px; flex: none; }
.pps-cards.is-list .pps-card-name { font-size: 15px; white-space: normal; }
.pps-cards.is-list .pps-card-short { display: block; }
.pps-cards.is-list .pps-card-acts { max-width: 320px; }

.pps-shop .woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.pps-shop .woocommerce-pagination li { border: 0 !important; }
.pps-shop .woocommerce-pagination .page-numbers { border-radius: 8px; border: 1px solid var(--pps-line); background: #fff; min-width: 36px; padding: 7px 11px; display: inline-block; text-align: center; font-size: 13px; }
.pps-shop .woocommerce-pagination .current { background: var(--pps-blue2); color: #fff; border-color: var(--pps-blue2); }
.pps-empty { background: #fff; border: 1px solid var(--pps-line); border-radius: 12px; padding: 30px; text-align: center; }
.pps-empty a { color: var(--pps-blue2); }

/* promises along the bottom, full width */
.pps-strip-bar { background: #fff; border-top: 1px solid var(--pps-line); margin-top: 24px; padding: 24px 0; }
.pps-strip { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 20px; }
.pps-strip li { display: flex; gap: 12px; align-items: center; }
.pps-strip svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--pps-chip); color: var(--pps-blue2); flex: none; }
.pps-strip b { display: block; color: var(--pps-ink); font-size: 12px; }
.pps-strip small { color: var(--pps-muted); font-size: 11px; }

@media (max-width: 1280px) {
  .pps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pps-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pps-shop-grid { grid-template-columns: 1fr; }
  .pps-shop-side { display: none; }
  .pps-shop-side.open { display: block; }
  .pps-filters-btn { display: inline-flex; }
  .pps-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 640px) {
  .pps-wrap { padding: 0 16px; }
  .pps-shop-grid { padding-top: 16px; }
  .pps-hero { padding: 22px 18px; }
  .pps-hero h1 { font-size: 23px; }
  .pps-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pps-cards.is-list .pps-card { flex-direction: column; }
  .pps-cards.is-list .pps-card-img { width: auto; min-height: 0; height: 140px; }
  .pps-sort > span { display: none; }
  .pps-bar .woocommerce-ordering select { min-width: 0; }
  .pps-strip { grid-template-columns: 1fr; }
}
