/* =========================================================
   Vitality Naturals - product grid (#products on Default.aspx)
   Clean cutouts (images/vn-products) float on a tinted stage;
   admin-uploaded photos blend into the same stage.
   ========================================================= */
.vn-products { background: var(--vn-paper); }

/* Category filters (MixItUp: .filter + data-filter) */
.vn-filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.vn-filters .filter {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--vn-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vn-ink);
  font: 600 15px var(--vn-text);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.vn-filters .filter:hover { border-color: var(--vn-green); color: var(--vn-green); }
.vn-filters .filter.active { background: var(--vn-forest); border-color: var(--vn-forest); color: #fff; }
.vn-filters .filter:focus-visible { outline: 3px solid var(--vn-sun); outline-offset: 2px; }

/* Grid */
.vn-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-content: start; height: auto !important; }
.vn-pgrid:before, .vn-pgrid:after { display: none !important; }
/* MixItUp and the header search hide items with an inline "display: none";
   every other item stays a flex column (MixItUp would otherwise make it inline-block) */
.vn-pgrid .vn-pcard:not([style*="display: none"]):not([style*="display:none"]) { display: flex !important; }

/* Card */
.vn-pcard {
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--vn-line);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.vn-pcard:hover { border-color: #cfe0ca; box-shadow: 0 24px 44px -30px rgba(10, 53, 23, .45); }

.vn-pcard-media {
  position: relative;
  display: flex !important;
  align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--vn-stage-1);
  overflow: hidden;
}
.vn-pcard:nth-child(4n+2) .vn-pcard-media { background: var(--vn-stage-2); }
.vn-pcard:nth-child(4n+3) .vn-pcard-media { background: var(--vn-stage-3); }
.vn-pcard:nth-child(4n+4) .vn-pcard-media { background: var(--vn-stage-4); }
.vn-pcard-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.vn-pcard-media.is-cutout img { padding: 12%; filter: drop-shadow(0 18px 18px rgba(10, 53, 23, .22)); }
.vn-pcard-media.is-photo img { padding: 6%; mix-blend-mode: multiply; }
.vn-pcard:hover .vn-pcard-media img { transform: translateY(-6px) scale(1.03); }

.vn-pcard-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.vn-site .vn-pcard-title { margin: 0; font: 700 18px/1.3 var(--vn-display); letter-spacing: -.01em; }
.vn-pcard-title a { color: var(--vn-ink) !important; text-decoration: none; }
.vn-pcard-title a:hover { color: var(--vn-green) !important; }
.vn-site .vn-pcard-size { margin: 0; font-size: 14px; line-height: 1.4; color: var(--vn-muted); }
.vn-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.vn-pcard .vn-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.vn-pcard .vn-price { font: 800 21px var(--vn-display); color: var(--vn-forest); }
.vn-pcard .vn-mrp { font-size: 14px; color: var(--vn-muted); text-decoration: line-through; }
.vn-pcard-go {
  flex: 0 0 auto;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--vn-sun);
  color: var(--vn-forest) !important;
  transition: background .2s ease, transform .2s ease;
}
.vn-pcard-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vn-pcard-go:hover { background: var(--vn-forest); color: #fff !important; transform: translateX(2px); }

.vn-site .vn-noresults { margin: 28px 0 0; padding: 22px; border-radius: 18px; background: #fff; border: 1px dashed var(--vn-line); text-align: center; color: var(--vn-body); }
.vn-noresults[hidden] { display: none; }

@media (max-width: 1199px) { .vn-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .vn-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .vn-pcard { border-radius: 18px; }
  .vn-pcard-body { padding: 14px 14px 16px; }
  .vn-site .vn-pcard-title { font-size: 16px; }
  .vn-pcard .vn-price { font-size: 18px; }
  .vn-pcard-go { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .vn-pgrid { grid-template-columns: 1fr; } }

/* ---------- Premium pass ---------- */
.vn-pcard-tag { align-self: flex-start; margin-bottom: 2px; padding: 3px 10px; border-radius: 999px; background: var(--vn-mint); color: var(--vn-green); font: 700 12px var(--vn-text); letter-spacing: .01em; }
.vn-pcard-media.is-cutout:after { content: ""; position: absolute; left: 26%; right: 26%; bottom: 10%; height: 16px; border-radius: 50%; background: rgba(10, 53, 23, .16); filter: blur(7px); transition: transform .45s ease, opacity .45s ease; }
.vn-pcard-media img { position: relative; z-index: 1; }
.vn-pcard:hover .vn-pcard-media img { transform: translateY(-10px) rotate(-3deg) scale(1.04); }
.vn-pcard:hover .vn-pcard-media.is-cutout:after { transform: scaleX(.85); opacity: .7; }
.vn-pcard { box-shadow: 0 1px 0 rgba(10, 53, 23, .04); }
.vn-pcard:hover { transform: translateY(-4px); }
.vn-pcard { transition: border-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }

/* First 8 products, then "View all" (must come after the display rule above) */
.vn-pgrid.is-collapsed .vn-pcard:nth-child(n+9) { display: none !important; }
.vn-viewall { display: flex; justify-content: center; margin-top: 44px; }

.vn-filter-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -14px 0 24px; padding: 14px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--vn-line); font: 500 15.5px var(--vn-text); color: var(--vn-body); }
.vn-filter-note[hidden] { display: none; }
.vn-filter-note b { color: var(--vn-forest); }
.vn-site button.vn-link { background: none; border: 0; border-bottom: 2px solid rgba(255, 100, 4, .45); border-radius: 0; cursor: pointer; padding: 0 0 2px; }
