/* ============================================================
   Verified Peptides — premium product card (.vp-pcard) + shop grid
   Namespaced so WooCommerce / base styles can't override it.
   ============================================================ */

:root {
  --vp-ink: #0f172a;
  --vp-teal: #0c8b82;
  --vp-blue: #1a8cba;
  --vp-line: #e8edf3;
}

/* ---------- Grids ---------- */
.vp-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.products-grid.vp-cards { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vp-related-grid.vp-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .products-grid.vp-cards, .vp-related-grid.vp-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .vp-shop-grid, .products-grid.vp-cards, .vp-related-grid.vp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .vp-shop-grid, .products-grid.vp-cards, .vp-related-grid.vp-cards { grid-template-columns: 1fr; } }

/* ---------- Card ---------- */
.vp-pcard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--vp-line); border-radius: 20px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vp-pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(15,23,42,.12); border-color: #cfe6f0; }

/* Media */
.vp-pcard__media {
  position: relative; aspect-ratio: 1 / 1; background:
    radial-gradient(120% 120% at 50% 0%, #f4fafd 0%, #eef4f8 55%, #e9f1f6 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.vp-pcard__imglink { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.vp-pcard__img {
  max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important;
  object-fit: contain; display: block; transition: transform .4s ease; filter: drop-shadow(0 14px 20px rgba(15,23,42,.14));
}
.vp-pcard:hover .vp-pcard__img { transform: scale(1.06) rotate(-1.5deg); }

/* Badges */
.vp-pcard__badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: #fff;
}
.vp-pcard__badge.is-best { background: linear-gradient(135deg,#f59e0b,#f97316); }
.vp-pcard__badge.is-new  { background: linear-gradient(135deg,#0c8b82,#1a8cba); }
.vp-pcard__stock {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #15803d; background: rgba(240,253,244,.92); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 999px; border: 1px solid #bbf7d0;
}
.vp-pcard__stock .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.vp-pcard__stock.is-out { color: #b91c1c; background: rgba(254,242,242,.92); border-color: #fecaca; }
.vp-pcard__stock.is-out .dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.vp-pcard__coa {
  position: absolute; bottom: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; color: var(--vp-blue); background: rgba(255,255,255,.94); backdrop-filter: blur(4px);
  padding: 6px 11px; border-radius: 999px; border: 1px solid #d7e9f2; text-decoration: none; transition: all .18s;
}
.vp-pcard__coa:hover { background: var(--vp-blue); color: #fff; border-color: var(--vp-blue); }
.vp-pcard__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(15,23,42,.9); color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px; border-radius: 12px;
  text-decoration: none; opacity: 0; transform: translateY(8px); transition: all .22s ease;
}
/* When a COA chip sits bottom-left, shrink Quick view to a compact bottom-right pill so they don't overlap */
.vp-pcard__coa ~ .vp-pcard__quick { left: auto; right: 12px; bottom: 12px; width: auto; padding: 8px 15px; border-radius: 999px; font-size: 12px; }
.vp-pcard:hover .vp-pcard__quick { opacity: 1; transform: translateY(0); }

/* Body */
.vp-pcard__body { display: flex; flex-direction: column; padding: 15px 18px 17px; flex: 1; }
.vp-pcard__cat {
  align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--vp-teal); background: #e6f4f1; padding: 4px 10px; border-radius: 999px; margin-bottom: 9px;
}
.vp-pcard__name { font-size: 17px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.vp-pcard__name a { color: var(--vp-ink); text-decoration: none; }
.vp-pcard__name a:hover { color: var(--vp-blue); }
.vp-pcard__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vp-pcard__purity { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #0f766e; background: #f0fdfa; border: 1px solid #ccfbf1; padding: 4px 9px; border-radius: 8px; }
.vp-pcard__cas { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: #64748b; background: #f8fafc; border: 1px solid #eef2f7; padding: 4px 9px; border-radius: 8px; }

/* Variant pills */
.vp-pcard__vars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.vp-vpill input { position: absolute; opacity: 0; pointer-events: none; }
.vp-vpill span {
  display: inline-block; padding: 5px 12px; font-size: 12px; font-weight: 700; border: 1.5px solid #e2e8f0;
  border-radius: 9px; color: #475569; cursor: pointer; transition: all .16s ease; background: #fff; line-height: 1.1;
}
.vp-vpill input:checked + span { border-color: var(--vp-blue); background: #eef7fb; color: var(--vp-blue); }
.vp-vpill:hover span { border-color: var(--vp-blue); }
.vp-pcard__single { font-size: 12.5px; font-weight: 700; color: #64748b; margin-bottom: 14px; }

/* Footer */
.vp-pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.vp-pcard__foot .vp-pcard__add { white-space: nowrap; padding: 10px 16px; font-size: 13px; }
.vp-pcard__price { font-size: 21px; font-weight: 900; color: var(--vp-ink); letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.vp-pcard__price .cur { font-size: 15px; font-weight: 800; vertical-align: 2px; margin-right: 1px; }
.vp-pcard__price small { font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: .04em; }
.vp-pcard__add {
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg,#0f3b34,#1a8cba); color: #fff; font-size: 13.5px; font-weight: 800;
  padding: 11px 18px; border-radius: 12px; transition: filter .2s, transform .15s, box-shadow .2s; text-decoration: none;
  box-shadow: 0 6px 16px rgba(26,140,186,.28);
}
.vp-pcard__add:hover { filter: brightness(1.08); transform: translateY(-2px); color: #fff; box-shadow: 0 10px 22px rgba(26,140,186,.36); }
.vp-pcard__add.loading { opacity: .75; pointer-events: none; }
.vp-pcard__add.is-out { background: #f1f5f9; color: #475569; box-shadow: none; }

/* ---- Data-panel card (Option C): spec rows + full-width CTA ---- */
.vp-pcard__specs2 { margin: 2px 0 14px; }
.vp-specrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef2f7; font-size: 12.5px; }
.vp-specrow:first-child { border-top: 1px solid #eef2f7; }
.vp-specrow dt { color: #7c8aa0; font-weight: 600; margin: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vp-specrow dt i { color: var(--vp-teal); font-size: 12px; }
.vp-specrow dd { color: #0f172a; font-weight: 700; margin: 0; text-align: right; max-width: 62%; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.vp-pcard__foot2 { margin-top: auto; display: flex; flex-direction: column; gap: 11px; }
.vp-pcard__foot2 .vp-pcard__add { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }

/* ---------- Shop toolbar + sidebar polish ---------- */
.shop-toolbar {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--vp-line);
  border-radius: 16px; padding: 12px 16px; margin-bottom: 22px; box-shadow: 0 4px 18px rgba(15,23,42,.04);
}
.shop-search { position: relative; flex: 1; display: flex; align-items: center; }
.shop-search > i { position: absolute; left: 15px; color: #94a3b8; font-size: 13px; }
.shop-search .cu-input { width: 100%; border: 1.5px solid #eef2f7; border-radius: 999px; padding: 11px 16px 11px 38px; font-size: 14px; outline: none; transition: border-color .2s; }
.shop-search .cu-input:focus { border-color: var(--vp-blue); }
.shop-sort .cu-input { border: 1.5px solid #eef2f7; border-radius: 999px; padding: 11px 34px 11px 16px; font-size: 13.5px; font-weight: 600; color: #334155; cursor: pointer; background: #fff; outline: none; }
.filters-mobile-toggle { display: none; }

.filters-card { background: #fff; border: 1px solid var(--vp-line); border-radius: 18px; padding: 22px 20px; box-shadow: 0 4px 18px rgba(15,23,42,.04); align-self: start; position: sticky; top: 100px; }
.filters-head h3 { font-size: 16px; font-weight: 800; color: var(--vp-ink); margin: 0 0 16px; }
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; margin-bottom: 10px; }
.vp-cat-list { list-style: none; margin: 0 0 4px; padding: 0; }
.vp-cat-list li { margin: 2px 0; }
.vp-cat-list a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: #475569; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .16s; }
.vp-cat-list a span { color: #94a3b8; font-weight: 600; }
.vp-cat-list li.active a, .vp-cat-list a:hover { background: #eef7fb; color: var(--vp-blue); }
.vp-cat-list li.active a span { color: var(--vp-blue); }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 262px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters-card { position: static; }
  .filters-mobile-toggle { display: inline-flex; align-items: center; gap: 8px; background: #0f172a; color: #fff; border: none; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 13px; cursor: pointer; }
}

/* Category stats strip */
.cat-stats { background: #fff; border-bottom: 1px solid var(--vp-line); padding: 20px 0; }
.cat-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.cat-stat { display: flex; align-items: center; gap: 13px; }
.cat-stat > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #eef7fb; color: var(--vp-blue); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cat-stat strong { display: block; font-size: 14px; color: var(--vp-ink); }
.cat-stat span { font-size: 12.5px; color: #64748b; }
@media (max-width: 820px) { .cat-stats-grid { grid-template-columns: 1fr 1fr; } }

/* Why-choose — premium card grid (template uses .why-grid/.why-card) */
.why-choose { background: var(--light-bg, #f7fafc); }
.why-choose .why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  max-width: 1180px; margin: 0 auto;
}
.why-choose .why-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 18px;
  padding: 30px 24px; text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-choose .why-card:hover {
  transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .09); border-color: #d7ebf3;
}
.why-choose .why-card i {
  width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--vp-blue, #1a8cba);
  background: linear-gradient(135deg, #eef7fb, #e6f4f1);
}
.why-choose .why-card h3 { font-size: 16.5px; font-weight: 700; color: var(--vp-ink, #0f172a); margin: 0 0 8px; }
.why-choose .why-card p { font-size: 13.5px; line-height: 1.6; color: #64748b; margin: 0; }

/* Bottom CTA banner (template uses .custom-cta > .cta-inner > .cta-btns) */
.custom-cta { background: linear-gradient(100deg, #0f3b34, #1a8cba 60%, #3aa8d4); padding: 48px 0; }
.custom-cta .cta-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.custom-cta .cta-inner h2 {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: #fff; margin: 0 0 10px;
}
.custom-cta .cta-inner p { font-size: 15px; color: rgba(255, 255, 255, .85); margin: 0 0 22px; }
.custom-cta .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) { .why-choose .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-choose .why-grid { grid-template-columns: 1fr; } }

/* Result count */
.vp-shop-count { font-size: 13.5px; color: #64748b; margin: 0 0 16px; }
.vp-shop-count strong { color: #0f172a; }
