/* ==========================================================================
   Peptofit v2 — Milestone 1 (homepage redesign)
   Loaded only when peptofit_v2 is active (preview ?pf_v2=1 for admins, or the
   option peptofit_v2_enabled = yes). Everything is scoped to body.pf-v2.
   ========================================================================== */

@keyframes pf-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.pf-v2.home .pf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fdfbf7;
  width: 100%;
}
.pf-v2.home .pf-hero__media { position: relative; width: 100%; }
.pf-v2.home .pf-hero__media picture,
.pf-v2.home .pf-hero__media img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 82% center;
}
.pf-v2.home .pf-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.pf-v2.home .pf-hero__content { max-width: 560px; }
.pf-v2.home .pf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(32, 80, 154, 0.08);
  color: var(--color-blue, #20509A);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pf-v2.home .pf-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold, #E3A345);
}
.pf-v2.home .pf-hero__title {
  margin: 0 0 18px;
  color: var(--pf-title, #20509A);
  font-size: clamp(32px, 6.4vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.pf-v2.home .pf-hero__desc {
  margin: 0 0 30px;
  color: var(--pf-desc, #20509A);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 400px;
}
.pf-v2.home .pf-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-v2.home .pf-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.pf-v2.home .pf-hero__btn--primary {
  background: var(--pf-btn, #0F2A55);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(15, 42, 85, 0.55);
}
.pf-v2.home .pf-hero__btn--primary:hover {
  background: var(--pf-btn-h, #20509A);
  color: #fff;
  transform: translateY(-2px);
}
.pf-v2.home .pf-hero__btn--ghost {
  background: #fff;
  color: var(--color-navy, #0F2A55);
  border: 2px solid var(--color-navy, #0F2A55);
}
.pf-v2.home .pf-hero__btn--ghost:hover {
  background: var(--color-navy, #0F2A55);
  color: #fff;
  transform: translateY(-2px);
}
.pf-v2.home .pf-hero__content > * { animation: pf-rise 0.8s ease backwards; }
.pf-v2.home .pf-hero__content > :nth-child(1) { animation-delay: 0.05s; }
.pf-v2.home .pf-hero__content > :nth-child(2) { animation-delay: 0.15s; }
.pf-v2.home .pf-hero__content > :nth-child(3) { animation-delay: 0.25s; }
.pf-v2.home .pf-hero__content > :nth-child(4) { animation-delay: 0.35s; }

@media (min-width: 768px) {
  .pf-v2.home .pf-hero {
    display: flex;
    align-items: center;
    min-height: clamp(520px, 78vh, 760px);
  }
  .pf-v2.home .pf-hero__media { position: absolute; inset: 0; z-index: -2; }
  .pf-v2.home .pf-hero__media picture,
  .pf-v2.home .pf-hero__media img { height: 100%; object-position: center; }
  .pf-v2.home .pf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(253, 251, 247, 0.96) 0%, rgba(253, 251, 247, 0.86) 28%, rgba(253, 251, 247, 0.35) 46%, rgba(253, 251, 247, 0) 58%);
  }
  .pf-v2.home .pf-hero__inner { width: 100%; padding: 72px 16px; }
  .pf-v2.home .pf-hero__actions { flex-direction: row; gap: 16px; }
  .pf-v2.home .pf-hero__btn { padding: 17px 40px; font-size: 18px; }
}

/* ---------- Section heads (products + blog) ---------- */
.pf-v2.home .peptofit-products-section {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fc 100%);
}
.pf-v2.home .peptofit-blog-section { padding: 88px 0; }
.pf-v2.home .section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.pf-v2.home .section-head h2 {
  margin: 0 0 16px;
  color: var(--color-navy, #0F2A55);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pf-v2.home .section-head .divider {
  width: 72px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-blue, #20509A), var(--color-gold, #E3A345));
}
.pf-v2.home .section-head p { margin: 0 auto; color: var(--color-gray-600, #4b5563); font-size: 17px; line-height: 1.6; }

/* ---------- External review link (redirects to another website) ---------- */
.pf-v2.home .pf-ext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid rgba(15, 42, 85, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 30px -16px rgba(15, 42, 85, 0.35);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pf-v2.home .pf-ext:hover {
  transform: translateY(-3px);
  border-color: var(--color-navy, #0F2A55);
  box-shadow: 0 18px 36px -16px rgba(15, 42, 85, 0.45);
}
.pf-v2.home .pf-ext__badge img { display: block; width: 200px; height: auto; border: 0; border-radius: 10px; }
.pf-v2.home .pf-ext__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; min-width: 0; }
.pf-v2.home .pf-ext__text strong { color: var(--color-navy, #0F2A55); font-size: 18px; line-height: 1.3; }
.pf-v2.home .pf-ext__text small { color: var(--color-gray-500, #6b7280); font-size: 13px; line-height: 1.4; }
.pf-v2.home .pf-ext__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--color-navy, #0F2A55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.pf-v2.home .pf-ext__cta svg { transition: transform 0.2s ease; }
.pf-v2.home .pf-ext:hover .pf-ext__cta svg { transform: translate(2px, -2px); }
@media (max-width: 600px) {
  .pf-v2.home .pf-ext { flex-direction: column; text-align: center; }
  .pf-v2.home .pf-ext__cta { width: 100%; justify-content: center; }
}

/* ---------- Product grid + cards ---------- */
.pf-v2.pf-cards .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 991px) { .pf-v2.pf-cards .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 600px) { .pf-v2.pf-cards .product-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.pf-v2.pf-cards .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 42, 85, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pf-v2.pf-cards .product-card:hover {
  transform: translateY(-5px);
  border-color: #cfd8e8;
  box-shadow: 0 22px 40px -20px rgba(15, 42, 85, 0.35);
}
.pf-v2.pf-cards .product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-v2.pf-cards .product-card-image .product-image-link { display: block; width: 100%; height: 100%; }
.pf-v2.pf-cards .product-card-image img.product-thumb { width: 100%; height: 100%; object-fit: contain; }
.pf-v2.pf-cards .product-card:hover .product-card-image .peptofit-product-hover-image { opacity: 1 !important; }
.pf-v2.pf-cards .product-card-image .peptofit-product-hover-image { padding: 16px !important; background: #fff !important; }
.pf-v2.pf-cards .product-card-image .product-image-link:has(.peptofit-product-hover-image):hover img.product-thumb { opacity: 0; }

/* Sale badge lives on the card, not inside the photo */
.pf-v2.pf-cards .product-card-image .onsale,
.pf-v2.pf-cards .pf-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d6322e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 6px 14px -6px rgba(214, 50, 46, 0.7);
}

.pf-v2.pf-cards .product-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 22px 22px; }
.pf-v2.pf-cards .product-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy, #0F2A55);
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-v2.pf-cards .product-card-body h3 a { color: inherit; text-decoration: none; }
.pf-v2.pf-cards .product-card-body .product-desc {
  margin: 0 0 18px;
  color: var(--color-gray-500, #6b7280);
  font-size: 14px;
  line-height: 1.55;
  min-height: 3.1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-v2.pf-cards .product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef1f6;
}
.pf-v2.pf-cards .product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--color-navy, #0F2A55);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.pf-v2.pf-cards .product-price del { color: var(--color-gray-400, #9ca3af); font-size: 15px; font-weight: 500; }
.pf-v2.pf-cards .product-price ins { text-decoration: none; background: transparent; }
.pf-v2.pf-cards .product-price .screen-reader-text { display: none; }
.pf-v2.pf-cards .product-card .btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--color-navy, #0F2A55);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pf-v2.pf-cards .product-card .btn-add-cart:hover { background: var(--color-blue, #20509A); }
.pf-v2.pf-cards .product-card .btn-add-cart.added { display: none; }
.pf-v2.pf-cards .product-card .added_to_cart {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--color-navy, #0F2A55);
  border-radius: 10px;
  color: var(--color-navy, #0F2A55);
  font-weight: 600;
  text-decoration: none;
}
.pf-v2.home .pf-all-products { text-align: center; margin-top: 44px; }

/* ---------- Payment banner image (global, top of footer) ---------- */
.pf-v2 .pf-paybar { background: var(--color-gray-900, #111827); padding: 40px 0 8px; }
.pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo { display: block; width: auto; max-width: none; border-radius: 0; flex: 0 0 auto; }
.pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--gpay { height: 86px; }
.pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--apple { height: 46px; }
@media (max-width: 767px) {
  .pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--gpay { height: 72px; }
  .pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--apple { height: 39px; }
}
.pf-v2 .site-footer { border-top: 0; }

/* ---------- Layout alignment (homepage): body uses the same width and edges as the header ---------- */
.pf-v2.home .elementor .e-con { --content-width: 100%; --padding-left: 0px; --padding-right: 0px; --padding-top: 0px; --padding-bottom: 0px; }
.pf-v2.home .elementor .e-con > .e-con-inner { max-width: 100% !important; width: 100%; padding-inline: 0; }
.pf-v2.home .elementor .e-con > .elementor-widget, .pf-v2.home .elementor-widget-shortcode { width: 100% !important; max-width: 100% !important; align-self: stretch !important; }
.pf-v2.home .elementor-widget-shortcode > .elementor-widget-container { width: 100%; }
.pf-v2.home .container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* ---------- Blog + shipping polish ---------- */
.pf-v2.home .blog-card { transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 16px; overflow: hidden; }
.pf-v2.home .blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -22px rgba(15, 42, 85, 0.35); }
.pf-v2.home .shipping-section { padding: 80px 0; background: linear-gradient(135deg, #0F2A55 0%, #16397a 100%); }

/* ---------- Scroll reveal ---------- */
.pf-anim .pf-reveal:not(.is-in) { opacity: 0; }
.pf-anim .pf-reveal.is-in { animation: pf-rise 0.7s ease backwards; animation-delay: var(--pf-d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .pf-v2.home *, .pf-v2.home *::before, .pf-v2.home *::after { animation: none !important; transition: none !important; }
  .pf-anim .pf-reveal:not(.is-in) { opacity: 1; }
}

/* ==========================================================================
   v2.1 refinements: global font, tighter product cards, payment bar with official marks
   ========================================================================== */

/* ---------- Global font (Plus Jakarta Sans) ---------- */
body.pf-v2 {
  --pf-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-family: var(--pf-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pf-v2 .elementor-kit-7 {
  --e-global-typography-primary-font-family: 'Plus Jakarta Sans';
  --e-global-typography-secondary-font-family: 'Plus Jakarta Sans';
  --e-global-typography-text-font-family: 'Plus Jakarta Sans';
  --e-global-typography-accent-font-family: 'Plus Jakarta Sans';
}
.pf-v2 h1, .pf-v2 h2, .pf-v2 h3, .pf-v2 h4, .pf-v2 h5, .pf-v2 h6,
.pf-v2 button, .pf-v2 input, .pf-v2 select, .pf-v2 textarea { font-family: var(--pf-font); }

/* ---------- Product cards: tighter price / button spacing ---------- */
.pf-v2.pf-cards .product-card-body { padding: 18px 20px 20px; }
.pf-v2.pf-cards .product-card-body h3 { font-size: 17px; margin: 0 0 6px; min-height: 2.6em; }
.pf-v2.pf-cards .product-card-body .product-desc { margin: 0 0 12px; min-height: 0; }
.pf-v2.pf-cards .product-card-footer { gap: 10px; padding-top: 12px; }
.pf-v2.pf-cards .product-price { font-size: 20px; line-height: 1.15; gap: 2px 8px; }
.pf-v2.pf-cards .product-price del { font-size: 14px; }
.pf-v2.pf-cards .product-card .btn-add-cart { padding: 11px 16px; font-size: 15px; line-height: 1.2; }

@media (max-width: 600px) {
  .pf-v2.pf-cards .product-card-image { aspect-ratio: 4 / 3; padding: 12px; }
  .pf-v2.pf-cards .product-card-body { padding: 16px 16px 18px; }
  .pf-v2.pf-cards .product-card-body h3 { font-size: 16px; min-height: 0; }
  .pf-v2.pf-cards .product-price { font-size: 19px; }
  .pf-v2.home .peptofit-products-section { padding: 56px 0 64px; }
  .pf-v2.home .peptofit-blog-section { padding: 56px 0; }
  .pf-v2.home .section-head { margin-bottom: 32px; }
}

/* ---------- Payment bar (footer top): official Google Pay / Apple Pay marks + Cash on Delivery ---------- */
.pf-v2 .pf-paybar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0F2A55 0%, #20509A 100%);
  color: #ffffff;
}
.pf-v2 .pf-paybar__text h3 { margin: 0 0 6px; color: #ffffff; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.pf-v2 .pf-paybar__text p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 15px; line-height: 1.5; }
.pf-v2 .pf-paybar__methods { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.pf-v2 .pf-paybar__logo { display: block; width: auto; max-width: none; }
.pf-v2 .pf-paybar__logo--gpay { height: 86px; }
.pf-v2 .pf-paybar__logo--apple { height: 46px; }
.pf-v2 .pf-paybar__cod {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--color-gold, #E3A345);
  color: #0F2A55;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .pf-v2 .pf-paybar { padding-top: 28px; }
  .pf-v2 .pf-paybar__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
  .pf-v2 .pf-paybar__methods { justify-content: flex-start; width: 100%; }
  .pf-v2 .pf-paybar__logo--gpay { height: 72px; }
  .pf-v2 .pf-paybar__logo--apple { height: 39px; }
  .pf-v2 .pf-paybar__cod { width: 100%; justify-content: center; }
}
/* ==========================================================================
   v2.2 hero polish: gradient title, glass tag, slow image zoom, stats row, mobile sheet
   ========================================================================== */
@keyframes pf-zoom { from { transform: scale(1.03); } to { transform: scale(1.11); } }

.pf-v2.home .pf-hero__media img { animation: pf-zoom 20s ease-in-out infinite alternate; transform-origin: 70% 50%; will-change: transform; }
.pf-v2.home .pf-hero__eyebrow {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(32, 80, 154, 0.18);
  box-shadow: 0 8px 20px -12px rgba(15, 42, 85, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pf-v2.home .pf-hero__title { text-wrap: balance; }
.pf-v2.home .pf-hero__desc { font-weight: 600; }
.pf-v2.home .pf-hero__btn svg { transition: transform 0.2s ease; }
.pf-v2.home .pf-hero__btn--primary:hover svg { transform: translateX(4px); }
.pf-v2.home .pf-hero__btn--primary { box-shadow: 0 14px 30px -10px rgba(15, 42, 85, 0.65); }
.pf-v2.home .pf-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pf-v2.home .pf-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  list-style: none;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(15, 42, 85, 0.15);
  animation: pf-rise 0.8s ease 0.45s backwards;
}
.pf-v2.home .pf-hero__stats li { display: flex; flex-direction: column; gap: 2px; padding: 0 24px; margin: 0; border-left: 1px solid rgba(15, 42, 85, 0.15); }
.pf-v2.home .pf-hero__stats li:first-child { padding-left: 0; border-left: 0; }
.pf-v2.home .pf-hero__stats strong { color: var(--color-navy, #0F2A55); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.pf-v2.home .pf-hero__stats span { color: var(--color-gray-600, #4b5563); font-size: 13px; font-weight: 600; line-height: 1.3; }



@media (max-width: 767px) {
  .pf-v2.home .pf-hero__inner {
    margin-top: -28px;
    padding: 28px 20px 36px;
    background: #fdfbf7;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 30px -20px rgba(15, 42, 85, 0.35);
  }
  .pf-v2.home .pf-hero__title { font-size: clamp(30px, 9vw, 40px); }
  .pf-v2.home .pf-hero__stats { grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding-top: 16px; }
  .pf-v2.home .pf-hero__stats li { padding: 0 10px; }
  .pf-v2.home .pf-hero__stats strong { font-size: 18px; }
  .pf-v2.home .pf-hero__stats span { font-size: 12px; }
}
@media (max-width: 380px) {
  .pf-v2.home .pf-hero__stats strong { font-size: 16px; }
  .pf-v2.home .pf-hero__stats li { padding: 0 6px; }
}
/* ==========================================================================
   v2.3 trust cards under the hero
   ========================================================================== */
.pf-v2.home .pf-trust {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 0 64px;
  background: var(--pf-t-bg, #f9fafb);
  border-bottom: 1px solid #eef1f6;
}
.pf-v2.home .pf-trust__inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.pf-v2.home .pf-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: -56px;
}
.pf-v2.home .pf-trust__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 28px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e9eef6;
  border-radius: 20px;
  box-shadow: 0 18px 40px -26px rgba(15, 42, 85, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pf-v2.home .pf-trust__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c), #E3A345);
}
.pf-v2.home .pf-trust__card:hover { transform: translateY(-6px); box-shadow: 0 30px 54px -26px rgba(15, 42, 85, 0.55); }
.pf-v2.home .pf-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eef2fa;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  box-shadow: 0 0 0 7px rgba(15, 42, 85, 0.04);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 8%, transparent);
  transition: transform 0.3s ease;
}
.pf-v2.home .pf-trust__card:hover .pf-trust__icon { transform: scale(1.08) rotate(-4deg); }
.pf-v2.home .pf-trust__icon svg { width: 30px; height: 30px; color: var(--c) !important; fill: var(--c) !important; }
.pf-v2.home .pf-trust__icon i { font-size: 30px; color: var(--c) !important; }
.pf-v2.home .pf-trust__body h3 { margin: 0; color: var(--pf-t-title, #0F2A55); font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.pf-v2.home .pf-trust__body p { margin: 8px 0 0; color: var(--pf-t-desc, #4B5563); font-size: 15px; line-height: 1.6; }

@media (max-width: 767px) {
  .pf-v2.home .pf-trust { padding-bottom: 40px; }
  .pf-v2.home .pf-trust__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: -22px; }
  .pf-v2.home .pf-trust__card { flex-direction: row; align-items: center; gap: 16px; padding: 18px 18px 18px 22px; text-align: left; }
  .pf-v2.home .pf-trust__card::before { top: 0; bottom: 0; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--c), #E3A345); }
  .pf-v2.home .pf-trust__icon { width: 54px; height: 54px; box-shadow: 0 0 0 5px rgba(15, 42, 85, 0.04); }
  .pf-v2.home .pf-trust__icon svg { width: 24px; height: 24px; }
  .pf-v2.home .pf-trust__icon i { font-size: 24px; }
  .pf-v2.home .pf-trust__body h3 { font-size: 16px; }
  .pf-v2.home .pf-trust__body p { margin-top: 4px; font-size: 14px; line-height: 1.5; }
}
/* ==========================================================================
   v2.4 trust cards back in their original position + full-bleed product photos
   ========================================================================== */

/* Trust cards: no overlap with the hero; same section padding as before (64px desktop, 32px mobile) */
.pf-v2.home .pf-trust { padding: 64px 0; }
.pf-v2.home .pf-trust__grid { margin-top: 0; }
@media (max-width: 767px) {
  .pf-v2.home .pf-trust { padding: 32px 0; }
  .pf-v2.home .pf-trust__grid { margin-top: 0; }
}

/* Product photo fills the whole image area edge to edge (no inner padding) */
.pf-v2.pf-cards .product-card-image { padding: 0; aspect-ratio: 1 / 1; }
.pf-v2.pf-cards .product-card-image .product-image-link { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.pf-v2.pf-cards .product-card-image img.product-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-v2.pf-cards .product-card-image .peptofit-product-hover-image { padding: 0 !important; object-fit: cover !important; }
@media (max-width: 600px) {
  .pf-v2.pf-cards .product-card-image { padding: 0; aspect-ratio: 1 / 1; }
}
/* ==========================================================================
   v2.5 product photos: show the WHOLE photo (no crop, no upscaling blur), no inner padding
   To go back to edge-to-edge cropped photos, change 'contain' to 'cover' in the 3 lines below.
   ========================================================================== */
.pf-v2.pf-cards .product-card-image { background: #ffffff; }
.pf-v2.pf-cards .product-card-image img.product-thumb { object-fit: contain; object-position: center; }
.pf-v2.pf-cards .product-card-image .peptofit-product-hover-image { object-fit: contain !important; background: #ffffff !important; }
/* ==========================================================================
   v2.6 hero title on two lines + softer image zoom
   ========================================================================== */
@keyframes pf-zoom-soft { from { transform: scale(1); } to { transform: scale(1.05); } }
.pf-v2.home .pf-hero__media img { animation-name: pf-zoom-soft; }

.pf-v2.home .pf-hero__t2 { color: var(--color-gold, #E3A345); }
@media (min-width: 768px) {
  .pf-v2.home .pf-hero__content { max-width: 720px; }
  .pf-v2.home .pf-hero__title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; margin-bottom: 20px; }
  .pf-v2.home .pf-hero__t1 { display: block; }
  .pf-v2.home .pf-hero__desc { max-width: 440px; font-size: clamp(17px, 1.7vw, 22px); }
}
/* v2.7 mobile fix: review link card must not reserve a 220px-tall text box */
@media (max-width: 600px) {
  .pf-v2.home .pf-ext { gap: 14px; padding: 18px 16px; margin-bottom: 40px; }
  .pf-v2.home .pf-ext__text { flex: 0 0 auto; width: 100%; }
  .pf-v2.home .pf-ext__text strong { font-size: 17px; }
  .pf-v2.home .pf-ext__badge img { width: 190px; max-width: 100%; }
}
/* v2.8 mobile payment bar: Google Pay and Apple Pay marks share the row 50 / 50, Cash on Delivery below */
@media (max-width: 767px) {
  .pf-v2 .pf-paybar .pf-paybar__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: center; max-width: 440px; width: 100%; }
  .pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--apple { width: 100%; height: auto; }
  /* the Google SVG has built-in clear space around the mark; widen and pull it back so the mark itself fills its half */
  .pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--gpay { width: 145.3%; max-width: none; height: auto; margin: -22.6% -22.65%; }
  .pf-v2 .pf-paybar .pf-paybar__methods .pf-paybar__cod { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
}
/* v2.9 mobile: Apple Pay mark gets the same visible height as the Google Pay mark (aspect ratio untouched) */
@media (max-width: 767px) {
  .pf-v2 .pf-paybar .pf-paybar__methods img.pf-paybar__logo--apple { width: 83%; height: auto; justify-self: center; }
}
/* ==========================================================================
   v3.0 shop page (/sklep/) and category pages: heading + toolbar in the homepage style
   ========================================================================== */
.pf-v2 .peptofit-shop-wrap { padding: 56px 0 88px; background: linear-gradient(180deg, #ffffff 0%, #f5f7fc 100%); }
.pf-v2 .shop-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.pf-v2 .shop-head h1 { margin: 0 0 16px; color: var(--color-navy, #0F2A55); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.pf-v2 .shop-divider { width: 72px; height: 4px; margin: 0 auto 20px; border-radius: 999px; background: linear-gradient(90deg, var(--color-blue, #20509A), var(--color-gold, #E3A345)); }
.pf-v2 .shop-description { color: var(--color-gray-600, #4b5563); font-size: 17px; line-height: 1.6; }
.pf-v2 .shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.pf-v2 .shop-toolbar .woocommerce-result-count { margin: 0; color: var(--color-gray-500, #6b7280); font-size: 14px; }
.pf-v2 .shop-toolbar .woocommerce-ordering { margin: 0; }
.pf-v2 .shop-toolbar select { padding: 10px 14px; border: 1px solid #dbe2ee; border-radius: 10px; background: #fff; color: var(--color-navy, #0F2A55); font-size: 14px; }
@media (max-width: 600px) {
  .pf-v2 .peptofit-shop-wrap { padding: 36px 0 56px; }
  .pf-v2 .shop-head { margin-bottom: 28px; }
  .pf-v2 .shop-toolbar { flex-direction: column; align-items: stretch; }
  .pf-v2 .shop-toolbar select { width: 100%; }
}
/* ==========================================================================
   v3.1 one content width on every page = header and footer (1280px box, 16px side padding)
   Home is already like this; this brings shop, product, cart, checkout, account and text pages in line.
   ========================================================================== */

/* Shop + category pages */
.pf-v2 .peptofit-shop-wrap .container { max-width: 1280px; padding-left: 16px; padding-right: 16px; }

/* Single product page */
.pf-v2.single-product .woo-container,
.pf-v2.single-product .container.woo-container { max-width: 1280px !important; padding-left: 16px !important; padding-right: 16px !important; }

/* Cart, checkout, account: the .content-wrap box is 1280px / 16px, so the inner wrapper must not add its own width or padding */
.pf-v2.peptofit-woo-shortcode-page .woo-container,
.pf-v2.peptofit-woo-shortcode-page .container.woo-container,
.pf-v2.woocommerce-cart .woo-container,
.pf-v2.woocommerce-cart .container.woo-container,
.pf-v2.woocommerce-checkout .woo-container,
.pf-v2.woocommerce-checkout .container.woo-container { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.pf-v2.woocommerce-cart .woocommerce { max-width: none !important; }
.pf-v2.woocommerce-cart .content-wrap > h1,
.pf-v2.woocommerce-checkout .content-wrap > h1 { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }

/* Text pages (Regulamin, Polityka, Dostawa...): same 1280px box, left aligned with the logo; lines stay readable */
.pf-v2 .content-wrap { max-width: 1280px; padding-left: 16px; padding-right: 16px; }
.pf-v2 .content-wrap .post-content > :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: 900px; }

/* v3.2 Kontakt + page content: same 1280 box as header/footer */
.pf-v2 .peptofit-contact-grid{max-width:none}
.pf-v2 .post-content img,.pf-v2 .post-content figure,.pf-v2 .post-content table{max-width:100%;height:auto}

/* v3.3 global: same 1280 box + 16px sides on every page (header, footer, content), exactly like home */
.pf-v2{--container-max:1280px}
.pf-v2 .container{max-width:1280px;margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px}
.pf-v2 .peptofit-contact-grid{max-width:none}
