/* ============================================================
   SHOP — "quick-add" layout (theme v1.3.0, Sep 2026)
   Proof band + toolbar + 5-across cards with an inline size picker.
   Header, nav, ticker and footer are untouched. No category UI (compliance).
   Loaded after site-futuristic.css on shop / category / search / home.
   ============================================================ */
:root { --pa-blue: #1E5EFF; --pa-blue2: #3FA9FF; --pa-pale: #EEF2F9; --pa-g50: #F8FAFC; --pa-g200: #E2E8F0; --pa-g600: #475569; --pa-cyan: #00A3C4; }

/* ── Proof band ─────────────────────────────────────────── */
.pa-proof-band { background: #0C1F3F; color: #fff; }
.pa-proof-inner { max-width: 1240px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pa-proof-title .pa-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #8FB3FF; }
.pa-proof-band h1.pa-shop-h1 { margin: 4px 0 0 !important; font-size: 28px !important; font-weight: 800; letter-spacing: -.8px; color: #fff !important; line-height: 1.15; }
.pa-proof-stats { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 32px; flex-wrap: wrap; }
.pa-proof-stats li { font-size: 12px; color: #B7C3D9; white-space: nowrap; line-height: 1.4; }
.pa-proof-stats b { display: block; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.4px; }

/* ── Page frame + toolbar ───────────────────────────────── */
.pa-shop-c { max-width: 1240px; margin: 0 auto; padding: 26px 24px 64px; }
.pa-shop-c .pa-shop-main { min-width: 0; }
.pa-shop-c .pa-cat-intro { color: var(--pa-g600); margin: 0 0 18px; }
.pa-shop-c .pa-shop-topbar { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; flex-wrap: wrap; }
.pa-shop-c .pa-shop-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--pa-g200); border-radius: 12px; padding: 11px 14px; }
.pa-shop-c .pa-shop-search input { flex: 1; border: 0; outline: 0; font-size: 14px; color: #0C1F3F; background: transparent; min-width: 0; }
.pa-shop-c .pa-search-icon { color: #8A96A8; font-size: 15px; }
.pa-shop-c .pa-shop-sort-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pa-shop-c .pa-sort-select { border: 1px solid var(--pa-g200); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: #0C1F3F; background: #fff; }
.pa-shop-c .pa-price-mini { display: flex; align-items: center; gap: 10px; border: 1px solid var(--pa-g200); border-radius: 12px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--pa-g600); white-space: nowrap; background: #fff; }
.pa-shop-c .pa-price-mini input[type=range] { width: 110px; margin: 0; accent-color: var(--pa-blue); }
.pa-shop-c .pa-price-mini #pa-max-label { color: #0C1F3F; font-variant-numeric: tabular-nums; min-width: 42px; }
.pa-shop-c .pa-result-count { font-size: 13px; color: var(--pa-g600); white-space: nowrap; }

/* ── Grid: 5 across ─────────────────────────────────────── */
.pa-shop-c .pa-products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 16px !important; list-style: none; margin: 0; padding: 0; }

/* ── Card ───────────────────────────────────────────────── */
li.pa-product-card {
  background: #fff !important; border: 0 !important; border-radius: 20px !important; overflow: hidden;
  padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; text-align: center;
  box-shadow: 0 1px 2px rgba(12,31,63,.06), 0 8px 24px rgba(12,31,63,.06) !important; transition: transform .2s, box-shadow .2s;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
li.pa-product-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12,31,63,.06), 0 18px 40px rgba(12,31,63,.12) !important; }
li.pa-product-card .pa-card-img-wrap { width: 100%; aspect-ratio: 1 / 0.86; background: var(--pa-pale) !important; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
li.pa-product-card .pa-card-img-wrap img { width: auto; height: auto; max-width: 66%; max-height: 86%; padding: 0; object-fit: contain; transition: transform .25s, opacity .18s; }
li.pa-product-card:hover .pa-card-img-wrap img { transform: translateY(-4px) scale(1.03); }
li.pa-product-card .pa-card-body { padding: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
li.pa-product-card .pa-card-title { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; color: #0C1F3F; text-align: center; text-wrap: balance; }
li.pa-product-card .pa-card-title a { color: inherit; text-decoration: none; }
li.pa-product-card .pa-card-proof { font-size: 11.5px; color: var(--pa-g600); line-height: 1.3; }
li.pa-product-card .pa-card-proof i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pa-cyan); margin-right: 5px; vertical-align: 1px; }

/* Size picker: one segmented control */
li.pa-product-card .pa-card-variations.pa-seg { display: flex; flex-wrap: nowrap; width: 100%; margin: 2px 0 0; padding: 3px; gap: 2px; border: 1px solid var(--pa-g200); border-radius: 12px; background: var(--pa-g50); align-items: stretch; justify-content: stretch; flex: 0 0 auto; }
li.pa-product-card .pa-seg .pa-size-chip {
  flex: 1 1 0; min-width: 0; border: 0; border-radius: 9px; padding: 8px 4px; font-size: 11.5px; font-weight: 700; color: var(--pa-g600);
  background: transparent; letter-spacing: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; cursor: pointer; text-decoration: none;
}
li.pa-product-card .pa-seg .pa-size-chip:hover { background: rgba(12,31,63,.05); color: #0C1F3F; }
li.pa-product-card .pa-seg .pa-size-chip.active { background: #fff; color: #0C1F3F; box-shadow: 0 1px 3px rgba(12,31,63,.15); }
li.pa-product-card .pa-seg.pa-seg-one .pa-size-chip { cursor: default; }
li.pa-product-card .pa-seg .pa-chip-oos { opacity: .45; text-decoration: line-through; }
li.pa-product-card .pa-seg .pa-chip-oos.active { background: var(--pa-g200); color: #8A96A8; }

/* Price + button */
li.pa-product-card .pa-card-footer { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; }
li.pa-product-card .pa-card-price { display: inline-flex; flex-direction: row; align-items: baseline; gap: 7px; font-size: 18px; font-weight: 800; letter-spacing: -.4px; color: #0C1F3F; font-variant-numeric: tabular-nums; }
li.pa-product-card .pa-card-price .pa-now, li.pa-product-card .pa-card-price .woocommerce-Price-amount { color: #0C1F3F; }
li.pa-product-card .pa-card-price .pa-was { font-size: 12.5px; font-weight: 500; color: #8A96A8; text-decoration: line-through; }
li.pa-product-card .pa-card-price .pa-was .woocommerce-Price-amount { color: #8A96A8; }
li.pa-product-card .pa-card-price .pa-price-from { font-size: 11px; font-weight: 600; color: var(--pa-g600); }
li.pa-product-card .pa-card-btn {
  width: 100%; border: 0; border-radius: 999px; padding: 11px 12px; font-size: 13px; font-weight: 700; color: #fff; font-family: inherit;
  background: linear-gradient(90deg, var(--pa-blue), var(--pa-blue2)); box-shadow: 0 6px 16px rgba(30,94,255,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
li.pa-product-card .pa-card-btn:hover { background: linear-gradient(90deg, #1750E0, #2F97F0); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,94,255,.32); }
li.pa-product-card .pa-card-btn.added { background: #0C1F3F; box-shadow: none; }
li.pa-product-card .pa-card-hint { font-size: 11px; color: #8A96A8; margin-top: -2px; }
li.pa-product-card .pa-oos-badge { top: 10px; left: 10px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) { .pa-shop-c .pa-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 900px)  { .pa-shop-c .pa-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .pa-proof-stats { margin-left: 0; gap: 20px; } }
@media (max-width: 768px)  { .pa-shop-c .pa-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; } }
@media (max-width: 640px) {
  .pa-shop-c { padding: 18px 16px 56px; }
  .pa-proof-inner { padding: 20px 16px; gap: 16px; }
  .pa-proof-band h1.pa-shop-h1 { font-size: 22px !important; }
  .pa-proof-stats { gap: 14px 22px; }
  .pa-shop-c .pa-shop-topbar { gap: 8px; }
  .pa-shop-c .pa-shop-search { flex-basis: 100%; min-width: 0; }
  .pa-shop-c .pa-sort-select { flex: 1; min-width: 0; }
  li.pa-product-card { padding: 9px 9px 11px; border-radius: 14px !important; gap: 7px; }
  li.pa-product-card .pa-card-title { font-size: 13.5px; }
  li.pa-product-card .pa-card-img-wrap img { max-width: 74%; }
  /* 3+ sizes don't fit one row on a half-width card: let the segments wrap 2×2 */
  li.pa-product-card .pa-card-variations.pa-seg { flex-wrap: wrap; }
  li.pa-product-card .pa-seg .pa-size-chip { flex: 1 1 calc(50% - 2px); padding: 7px 2px; font-size: 11px; }
  li.pa-product-card .pa-seg.pa-seg-one .pa-size-chip { flex-basis: 100%; }
  /* toolbar: sort + max price on their own rows */
  .pa-shop-c .pa-shop-sort-wrap { width: 100%; }
  .pa-shop-c .pa-shop-sort-wrap form { flex: 1 1 100%; }
  .pa-shop-c .pa-sort-select { width: 100%; }
  .pa-shop-c .pa-price-mini { flex: 1 1 auto; justify-content: space-between; }
  .pa-shop-c .pa-price-mini input[type=range] { flex: 1; width: auto; min-width: 60px; }
  li.pa-product-card .pa-card-price { font-size: 16px; }
  li.pa-product-card .pa-card-btn { font-size: 12px; padding: 10px 8px; }
  li.pa-product-card .pa-card-hint { display: none; }
}
