/* Product listing pages (category, all products, collections, brand) - 30 Oct 2026
   Everything is scoped under .vpl so the rest of the website theme is untouched. */

.vpl {
  --vpl-brand: #ad0101;
  --vpl-brand-dark: #7d0000;
  --vpl-ink: #0f172a;
  --vpl-text: #334155;
  --vpl-muted: #64748b;
  --vpl-line: #e5e7eb;
  --vpl-soft: #f8fafc;
  --vpl-radius: 14px;
  --vpl-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  padding: 8px 0 64px;
  color: var(--vpl-text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.vpl *, .vpl *::before, .vpl *::after { box-sizing: border-box; }
.vpl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vpl a { text-decoration: none; }
.vpl h1, .vpl h2, .vpl p { margin: 0; }

/* Heading */
.vpl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 0 22px; }
.vpl-head__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vpl-brand); margin-bottom: 4px !important; }
.vpl-head__title { font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--vpl-ink); letter-spacing: -.01em; }
.vpl-head__count { font-size: 14px; color: var(--vpl-muted); margin-top: 6px !important; }

/* Layout */
.vpl-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.vpl-layout--full { grid-template-columns: minmax(0, 1fr); }

/* Sidebar */
.vpl-side { display: grid; gap: 16px; }
.vpl-side__top { display: none; }
.vpl-group { background: #fff; border: 1px solid var(--vpl-line); border-radius: var(--vpl-radius); padding: 16px; }
.vpl-group__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vpl-group__head h2 { font-size: 14px; font-weight: 700; color: var(--vpl-ink); text-transform: uppercase; letter-spacing: .04em; }
.vpl-group__count { font-size: 11px; font-weight: 700; color: var(--vpl-muted); background: #f1f5f9; padding: 2px 8px; border-radius: 999px; }
.vpl-group__clear { display: inline-block; font-size: 12px; font-weight: 700; color: var(--vpl-brand) !important; margin-bottom: 8px; }
.vpl-group__search { width: 100%; height: 34px !important; border: 1px solid var(--vpl-line) !important; border-radius: 8px !important; padding: 0 10px !important; font-size: 13px; margin-bottom: 8px; background: var(--vpl-soft); box-shadow: none !important; }
.vpl-group__search:focus { outline: 0; border-color: #94a3b8 !important; background: #fff; }
.vpl-group__list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.vpl-group__empty { font-size: 13px; color: var(--vpl-muted); padding: 6px 8px; }
.vpl-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--vpl-text) !important; transition: background .15s, color .15s; }
.vpl-link:hover { background: #f1f5f9; color: var(--vpl-ink) !important; }
.vpl-link em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--vpl-muted); background: #f1f5f9; padding: 2px 7px; border-radius: 999px; flex: none; }
.vpl-link.is-active { background: var(--vpl-ink); color: #fff !important; font-weight: 600; }
.vpl-link.is-active em { background: rgba(255, 255, 255, .18); color: #fff; }

.vpl-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vpl-mini li { display: flex; gap: 10px; align-items: center; }
.vpl-mini__img { width: 52px; height: 52px; flex: none; border-radius: 10px; background: var(--vpl-soft); border: 1px solid var(--vpl-line); display: grid; place-items: center; overflow: hidden; }
.vpl-mini__img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.vpl-mini__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--vpl-ink) !important; line-height: 1.35; }
.vpl-mini__name:hover { color: var(--vpl-brand) !important; }
.vpl-mini__price { font-size: 13px; font-weight: 700; color: var(--vpl-brand); }
.vpl-backdrop { display: none; }

/* Banner */
.vpl-banner { display: grid; gap: 12px; margin-bottom: 18px; }
.vpl-banner__item img { width: 100%; border-radius: var(--vpl-radius); display: block; }

/* Toolbar */
.vpl-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px; background: #fff; border: 1px solid var(--vpl-line); border-radius: var(--vpl-radius); }
.vpl-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin: 0; border-radius: 10px; background: var(--vpl-soft); color: var(--vpl-muted); border: 1px solid transparent; }
.vpl-search:focus-within { background: #fff; border-color: #94a3b8; }
.vpl-search input { border: 0 !important; outline: 0; background: transparent; height: 38px !important; padding: 0 !important; font-size: 14px; width: 100%; min-width: 0; color: var(--vpl-ink); box-shadow: none !important; }
.vpl-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--vpl-muted); font-weight: 500; }
.vpl-sort select { height: 40px; border: 1px solid var(--vpl-line); border-radius: 10px; padding: 0 32px 0 12px; font-size: 14px; color: var(--vpl-ink); background: #fff; cursor: pointer; }
.vpl-filter-btn { display: none !important; }

.vpl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vpl-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--vpl-ink); color: #fff !important; font-size: 13px; font-weight: 600; }
.vpl-chip span { font-size: 16px; line-height: 1; opacity: .8; }
.vpl-chip:hover { background: var(--vpl-brand); }

/* Grid + cards */
.vpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vpl-layout--full .vpl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vpl-card { position: relative; display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--vpl-line); border-radius: var(--vpl-radius); transition: box-shadow .15s, border-color .15s, transform .15s; }
.vpl-card:hover { border-color: #d6dbe3; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.vpl-card__img { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--vpl-soft); overflow: hidden; margin-bottom: 10px; }
.vpl-card__img img { max-width: 86%; max-height: 86%; object-fit: contain; transition: transform .3s ease; }
.vpl-card:hover .vpl-card__img img { transform: scale(1.05); }
.vpl-card__sale { position: absolute; top: 20px; left: 20px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: var(--vpl-brand); color: #fff; font-size: 12px; font-weight: 700; }
.vpl-card__wish { position: absolute; top: 18px; right: 18px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--vpl-line); background: #fff; color: var(--vpl-muted); display: grid; place-items: center; cursor: pointer; padding: 0; transition: color .15s, border-color .15s, background .15s; }
.vpl-card__wish:hover { color: var(--vpl-brand); border-color: #fecaca; background: #fef2f2; }
.vpl-card__wish svg { width: 16px; height: 16px; }
.vpl-card__brand { font-size: 12px; color: var(--vpl-muted) !important; margin-bottom: 2px; font-weight: 500; }
.vpl-card__brand:hover { color: var(--vpl-brand) !important; }
.vpl-card__name { font-size: 14px; font-weight: 600; color: var(--vpl-ink) !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.vpl-card__name:hover { color: var(--vpl-brand) !important; }
.vpl-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding: 10px 0 12px; }
.vpl-card__price strong { font-size: 18px; color: var(--vpl-ink); font-variant-numeric: tabular-nums; }
.vpl-card__price s { font-size: 13px; color: var(--vpl-muted); }

/* Buttons */
.vpl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; width: 100%;
  border: 1px solid var(--vpl-line); background: #fff; color: var(--vpl-ink) !important; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap; user-select: none;
}
.vpl-btn:hover { border-color: var(--vpl-ink); background: var(--vpl-ink); color: #fff !important; }
.vpl-btn--primary { background: var(--vpl-brand); border-color: var(--vpl-brand); color: #fff !important; }
.vpl-btn--primary:hover { background: var(--vpl-brand-dark); border-color: var(--vpl-brand-dark); }
.vpl-btn.is-disabled { background: #f1f5f9; border-color: #f1f5f9; color: var(--vpl-muted) !important; cursor: default; }
.vpl-btn svg { width: 16px; height: 16px; }

/* Empty / more */
.vpl-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 20px; margin-bottom: 20px; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--vpl-radius); font-size: 14px; color: var(--vpl-muted); }
.vpl-empty strong { font-size: 16px; color: var(--vpl-ink); }
.vpl-empty[hidden], .vpl-more[hidden] { display: none; }
.vpl-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.vpl-more p { font-size: 13px; color: var(--vpl-muted); }
.vpl-more .vpl-btn { width: auto; padding: 0 28px; height: 44px; }

/* Responsive */
@media (max-width: 1199px) {
  .vpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vpl-layout--full .vpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .vpl-layout { grid-template-columns: minmax(0, 1fr); }
  .vpl-filter-btn { display: inline-flex !important; width: auto; flex: none; }
  /* Filters become a slide-in drawer */
  .vpl-side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1050; width: min(340px, 88vw); max-height: none;
    background: var(--vpl-soft); padding: 16px; overflow-y: auto; align-content: start; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(15, 23, 42, .2);
  }
  .vpl-side__top { display: flex; align-items: center; justify-content: space-between; font-size: 18px; color: var(--vpl-ink); }
  .vpl-side__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--vpl-line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
  .vpl-filters-open .vpl-side { transform: none; }
  .vpl-filters-open .vpl-backdrop { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(15, 23, 42, .45); }
  .vpl-grid, .vpl-layout--full .vpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .vpl-head { padding: 12px 0 16px; }
  .vpl-head__title { font-size: 24px; }
  .vpl-toolbar { flex-wrap: wrap; padding: 8px; }
  .vpl-search { order: 3; flex: 1 1 100%; }
  .vpl-sort { margin-left: auto; }
  .vpl-sort span { display: none; }
  .vpl-grid, .vpl-layout--full .vpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vpl-card { padding: 8px; }
  .vpl-card__sale { top: 14px; left: 14px; }
  .vpl-card__wish { top: 12px; right: 12px; width: 30px; height: 30px; }
  .vpl-card__name { font-size: 13px; }
  .vpl-card__price strong { font-size: 16px; }
  .vpl-btn { height: 38px; font-size: 13px; padding: 0 8px; }
}


/* 13 Nov 2026: fuller page heading band */
.vpl-hero {
  position: relative; overflow: hidden; align-items: center !important;
  margin: 12px 0 26px; padding: 30px 34px !important; border-radius: 20px;
  background:
    radial-gradient(circle at 92% 20%, rgba(173, 1, 1, .10), transparent 42%),
    radial-gradient(circle at 70% 120%, rgba(208, 28, 28, .08), transparent 45%),
    linear-gradient(120deg, #fff 0%, #fff6f6 55%, #ffecec 100%);
  border: 1px solid #f3dede;
}
.vpl-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(173, 1, 1, .12) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 100%); mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
}
.vpl-hero__body { position: relative; z-index: 1; min-width: 0; max-width: 720px; }
.vpl-hero .vpl-head__title { font-size: 38px; font-weight: 800; }
.vpl-hero__text { margin-top: 10px !important; font-size: 15px; line-height: 1.55; color: var(--vpl-text); max-width: 60ch; }
.vpl-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vpl-hero__fact { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #f0d6d6; font-size: 13px; color: var(--vpl-muted); }
.vpl-hero__fact b { color: var(--vpl-ink); font-weight: 800; }
.vpl-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.vpl-hero__chips-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vpl-muted); margin-right: 2px; }
.vpl-hero__chip {
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--vpl-line);
  font-size: 13px; font-weight: 700; color: var(--vpl-ink) !important; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.vpl-hero__chip:hover { background: var(--vpl-brand); border-color: var(--vpl-brand); color: #fff !important; transform: translateY(-1px); }
.vpl-hero__art { position: relative; z-index: 1; flex: none; width: 170px; height: 170px; display: grid; place-items: center; }
.vpl-hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(173, 1, 1, .25); animation: vplspin 40s linear infinite; }
.vpl-hero__pic {
  position: relative; width: 138px; height: 138px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--vpl-brand), #d01c1c); box-shadow: 0 18px 36px -18px rgba(173, 1, 1, .8);
}
.vpl-hero__pic b { font-size: 56px; font-weight: 800; color: #fff; }
.vpl-hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
@keyframes vplspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vpl-hero__ring { animation: none; } }
@media (max-width: 767px) {
  .vpl-hero { padding: 20px 18px !important; margin: 6px 0 18px; border-radius: 16px; }
  .vpl-hero .vpl-head__title { font-size: 26px; }
  .vpl-hero__text { font-size: 14px; }
  .vpl-hero__art { display: none; }
  .vpl-hero__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .vpl-hero__chip { white-space: nowrap; }
}

/* 13 Nov 2026: brand page shows the logo on white, whole logo visible */
.vpl-hero--logo .vpl-hero__pic { width: 150px; height: 150px; background: #fff; border: 1px solid #f0d6d6; box-shadow: 0 18px 36px -22px rgba(15, 23, 42, .45); }
.vpl-hero--logo .vpl-hero__pic img { object-fit: contain; padding: 18px; }
.vpl-hero--logo .vpl-hero__pic b { color: var(--vpl-brand); }
.vpl-hero__pic img ~ b { display: none; }
@media (max-width: 767px) {
  .vpl-hero--logo { display: flex; flex-direction: column-reverse; align-items: flex-start !important; gap: 12px; }
  .vpl-hero--logo .vpl-hero__art { display: grid; width: 84px; height: 84px; }
  .vpl-hero--logo .vpl-hero__ring { display: none; }
  .vpl-hero--logo .vpl-hero__pic { width: 84px; height: 84px; }
  .vpl-hero--logo .vpl-hero__pic img { padding: 10px; }
}
