/* Product page (/product/<slug>) - 30 Oct 2026
   Everything is scoped under .vpp so the rest of the website theme is untouched. */

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

/* Layout */
.vpp-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }

/* Gallery */
.vpp-gallery { position: sticky; top: 110px; }
.vpp-gallery__stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--vpp-radius); background: var(--vpp-soft);
  border: 1px solid var(--vpp-line); overflow: hidden; display: grid; place-items: center;
}
.vpp-gallery__main { display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; }
.vpp-gallery__main img { max-width: 86%; max-height: 86%; object-fit: contain; transition: transform .3s ease; }
.vpp-gallery__stage:hover .vpp-gallery__main img { transform: scale(1.04); }
.vpp-gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--vpp-line); display: grid; place-items: center; color: var(--vpp-muted); pointer-events: none; }
.vpp-gallery__empty { color: var(--vpp-muted); font-size: 14px; }
.vpp-badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.vpp-badge--sale { background: var(--vpp-brand); color: #fff; }
.vpp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.vpp-thumb {
  flex: none; width: 76px; height: 76px; border-radius: 12px; border: 2px solid transparent; background: var(--vpp-soft);
  padding: 6px; cursor: pointer; display: grid; place-items: center; outline-offset: 2px;
  box-shadow: inset 0 0 0 1px var(--vpp-line);
}
.vpp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vpp-thumb:hover { box-shadow: inset 0 0 0 1px #cbd5e1; }
.vpp-thumb.active { border-color: var(--vpp-ink); box-shadow: none; }

/* Info */
.vpp-info__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vpp-brand { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: #fef2f2; color: var(--vpp-brand) !important; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.vpp-brand:hover { background: #fee2e2; }
.vpp-wish {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--vpp-line); background: #fff; color: var(--vpp-muted);
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: color .15s, border-color .15s, background .15s;
}
.vpp-wish:hover { color: var(--vpp-brand); border-color: #fecaca; background: #fef2f2; }
.vpp-title { font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--vpp-ink); letter-spacing: -.01em; }
.vpp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 14px 0 10px; }
.vpp-price__now { font-size: 30px; font-weight: 700; color: var(--vpp-ink); font-variant-numeric: tabular-nums; }
.vpp-price__was { font-size: 18px; color: var(--vpp-muted); text-decoration: line-through; }
.vpp-price__save { font-size: 13px; font-weight: 700; color: var(--vpp-good); background: var(--vpp-good-bg); padding: 3px 9px; border-radius: 999px; }
.vpp-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--vpp-text); font-weight: 500; }
.vpp-sep { color: #cbd5e1; }
.vpp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vpp-dot.is-good { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.vpp-dot.is-bad { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.vpp-short { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--vpp-text); }
.vpp-short p { margin: 0 0 8px; }

/* Buy box */
.vpp-buy { margin-top: 22px; border: 1px solid var(--vpp-line); border-radius: var(--vpp-radius); background: #fff; box-shadow: var(--vpp-shadow); overflow: hidden; }
.vpp-buy__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--vpp-line); }
.vpp-buy__head h2 { font-size: 16px; font-weight: 700; color: var(--vpp-ink); }
.vpp-buy__head p { font-size: 13px; color: var(--vpp-muted); margin-top: 2px; }
.vpp-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin: 0; border: 1px solid var(--vpp-line); border-radius: 10px; color: var(--vpp-muted); min-width: 200px; background: #fff; }
.vpp-search:focus-within { border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .2); }
.vpp-search input { border: 0 !important; outline: 0; background: transparent; height: 34px !important; padding: 0 !important; font-size: 14px; width: 100%; color: var(--vpp-ink); box-shadow: none !important; }

.vpp-options { max-height: 460px; overflow-y: auto; }
.vpp-opt {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid #f1f5f9; transition: background .15s;
}
.vpp-opt:last-of-type { border-bottom: 0; }
.vpp-opt:hover { background: #fcfcfd; }
.vpp-opt.is-picked { background: #fff7f7; box-shadow: inset 3px 0 0 var(--vpp-brand); }
.vpp-opt.is-out { opacity: .6; }
.vpp-opt__img { width: 56px; height: 56px; border-radius: 10px; background: var(--vpp-soft); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--vpp-line); }
.vpp-opt__img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.vpp-opt__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vpp-opt__info strong { font-size: 14px; font-weight: 600; color: var(--vpp-ink); line-height: 1.35; }
.vpp-opt__sku { font-size: 12px; color: var(--vpp-muted); }
.vpp-opt__stock { margin-top: 3px; }
.vpp-tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.vpp-tag.is-good { background: var(--vpp-good-bg); color: var(--vpp-good); }
.vpp-tag.is-bad { background: var(--vpp-bad-bg); color: var(--vpp-bad); }
.vpp-tag.is-blue { background: var(--vpp-blue-bg); color: var(--vpp-blue); }
.vpp-opt__price { font-size: 15px; font-weight: 700; color: var(--vpp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.vpp-step { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--vpp-line); border-radius: 10px; overflow: hidden; background: #fff; }
.vpp-step button { width: 34px; height: 100%; border: 0; background: var(--vpp-soft); font-size: 18px; line-height: 1; color: var(--vpp-ink); cursor: pointer; padding: 0; }
.vpp-step button:hover:not(:disabled) { background: #eef2f6; }
.vpp-step input {
  width: 48px; height: 100% !important; border: 0 !important; text-align: center; font-size: 15px; font-weight: 600; color: var(--vpp-ink);
  padding: 0 !important; background: #fff; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; border-radius: 0 !important;
}
.vpp-step input::-webkit-outer-spin-button, .vpp-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vpp-step input:focus { outline: 2px solid #94a3b8; outline-offset: -2px; }
.vpp-step.is-disabled { opacity: .5; }
.vpp-step.is-disabled button { cursor: not-allowed; }
.vpp-none { padding: 24px; text-align: center; font-size: 14px; color: var(--vpp-muted); }
.vpp-none[hidden] { display: none; }

.vpp-buy__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--vpp-soft); border-top: 1px solid var(--vpp-line); }
.vpp-buy__total { display: flex; flex-direction: column; }
.vpp-buy__total span { font-size: 13px; color: var(--vpp-muted); }
.vpp-buy__total strong { font-size: 22px; color: var(--vpp-ink); font-variant-numeric: tabular-nums; }
.vpp-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 28px; border-radius: 12px;
  border: 0; background: var(--vpp-brand); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s;
}
.vpp-cart:hover { background: var(--vpp-brand-dark); }
.vpp-cart:active { transform: translateY(1px); }
.vpp-cart:disabled { background: #cbd5e1; cursor: not-allowed; }
.vpp-cart svg { width: 20px; height: 20px; }
.vpp-buy__foot.is-shake { animation: vpp-shake .4s; }
@keyframes vpp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.vpp-oos { margin-top: 22px; padding: 20px; border-radius: var(--vpp-radius); background: #fef2f2; border: 1px solid #fecaca; }
.vpp-oos strong { display: block; font-size: 16px; color: var(--vpp-bad); }
.vpp-oos p { font-size: 14px; margin: 4px 0 12px; }

.vpp-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--vpp-line); background: #fff; color: var(--vpp-ink) !important; font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s, color .15s;
}
.vpp-btn:hover { border-color: var(--vpp-ink); background: var(--vpp-ink); color: #fff !important; }
.vpp-btn--block { width: 100%; }

/* Perks + meta */
.vpp-perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vpp-perks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--vpp-soft); border: 1px solid #eef2f6; }
.vpp-perks svg { color: var(--vpp-brand); margin-top: 2px; }
.vpp-perks strong { display: block; font-size: 13px; color: var(--vpp-ink); }
.vpp-perks span { font-size: 12px; color: var(--vpp-muted); }
.vpp-perks a { color: var(--vpp-ink); font-weight: 600; }
.vpp-meta { margin-top: 18px; border-top: 1px solid var(--vpp-line); }
.vpp-meta > div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.vpp-meta dt { width: 90px; flex: none; color: var(--vpp-muted); font-weight: 500; }
.vpp-meta dd a { color: var(--vpp-ink); font-weight: 600; }
.vpp-meta dd a:hover { color: var(--vpp-brand); }
.vpp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vpp-tags span { padding: 3px 10px; border-radius: 999px; background: #f1f5f9; font-size: 12px; color: var(--vpp-text); }

/* Description */
.vpp-card { margin-top: 40px; padding: 28px; border-radius: var(--vpp-radius); border: 1px solid var(--vpp-line); background: #fff; box-shadow: var(--vpp-shadow); }
.vpp-card h2 { font-size: 20px; font-weight: 700; color: var(--vpp-ink); margin-bottom: 14px; }
.vpp-desc__body { font-size: 15px; line-height: 1.7; color: var(--vpp-text); overflow-wrap: anywhere; }
.vpp-desc__body img, .vpp-desc__body iframe, .vpp-desc__body video { max-width: 100%; height: auto; border-radius: 10px; }
.vpp-desc__body table { width: 100%; border-collapse: collapse; margin: 12px 0; display: block; overflow-x: auto; }
.vpp-desc__body td, .vpp-desc__body th { border: 1px solid var(--vpp-line); padding: 8px 12px; }

/* Related */
.vpp-related { margin-top: 40px; }
.vpp-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vpp-related__head h2 { font-size: 20px; font-weight: 700; color: var(--vpp-ink); }
.vpp-related__head a { font-size: 14px; font-weight: 600; color: var(--vpp-brand) !important; }
.vpp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.vpp-pcard { position: relative; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--vpp-line); border-radius: 14px; background: #fff; transition: box-shadow .15s, border-color .15s, transform .15s; }
.vpp-pcard:hover { border-color: #d6dbe3; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.vpp-pcard__img { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--vpp-soft); overflow: hidden; margin-bottom: 10px; }
.vpp-pcard__img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.vpp-pcard__wish { position: absolute; top: 18px; right: 18px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--vpp-line); background: #fff; color: var(--vpp-muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vpp-pcard__wish:hover { color: var(--vpp-brand); border-color: #fecaca; }
.vpp-pcard__wish svg { width: 15px; height: 15px; }
.vpp-pcard__brand { font-size: 12px; color: var(--vpp-muted) !important; margin-bottom: 2px; }
.vpp-pcard__name { font-size: 14px; font-weight: 600; color: var(--vpp-ink) !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.vpp-pcard__name:hover { color: var(--vpp-brand) !important; }
.vpp-pcard__price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 12px; margin-top: auto; padding-top: 8px; }
.vpp-pcard__price strong { font-size: 17px; color: var(--vpp-ink); font-variant-numeric: tabular-nums; }
.vpp-pcard__price s { font-size: 13px; color: var(--vpp-muted); }

/* Responsive */
@media (max-width: 1199px) {
  .vpp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vpp-perks { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .vpp-main { grid-template-columns: 1fr; gap: 24px; }
  .vpp-gallery { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
  .vpp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vpp-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .vpp { padding-bottom: 96px; }
  .vpp-title { font-size: 24px; }
  .vpp-price__now { font-size: 26px; }
  .vpp-thumb { width: 62px; height: 62px; }
  .vpp-opt { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img info price" "img info qty"; row-gap: 8px; padding: 12px 14px; }
  .vpp-opt__img { grid-area: img; width: 48px; height: 48px; align-self: start; }
  .vpp-opt__info { grid-area: info; }
  .vpp-opt__price { grid-area: price; text-align: right; }
  .vpp-opt__qty { grid-area: qty; justify-self: end; }
  .vpp-options { max-height: none; }
  .vpp-search { min-width: 0; width: 100%; }
  /* Add to cart stays on screen */
  .vpp-buy__foot { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 16px rgba(15, 23, 42, .06); padding: 12px 14px; }
  .vpp-cart { height: 46px; padding: 0 20px; }
  .vpp-perks { grid-template-columns: 1fr; }
  .vpp-card { padding: 20px; margin-top: 28px; }
  .vpp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vpp-related__head { flex-direction: column; gap: 4px; }
}

/* Lists inside the product description (the theme removes bullets) */
.vpp-desc__body ul, .vpp-desc__body ol { padding-left: 22px; margin: 8px 0 12px; }
.vpp-desc__body ul li { list-style: disc; }
.vpp-desc__body ol li { list-style: decimal; }
.vpp-desc__body p { margin: 0 0 10px; }


/* 13 Nov 2026: picture viewer (lightbox) */
html.vlb-lock, html.vlb-lock body { overflow: hidden; }
.vpp-gallery__main { cursor: zoom-in; }
.vlb {
  position: fixed; inset: 0; z-index: 100000; display: grid; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden;
  grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "top top top" "prev stage next" "thumbs thumbs thumbs" "hint hint hint";
  opacity: 0; transition: opacity .26s ease; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.vlb[hidden] { display: none; }
.vlb.is-open { opacity: 1; }
.vlb__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 18, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vlb__top { grid-area: top; position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: #e5e7eb; }
.vlb__count { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.vlb__count:empty { display: none; }
.vlb__title { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; }
.vlb__btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.vlb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vlb__btn:hover { background: #ad0101; border-color: #ad0101; transform: scale(1.06); }
.vlb__btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.vlb__nav { align-self: center; justify-self: center; z-index: 2; width: 54px; height: 54px; }
.vlb__nav--prev { grid-area: prev; }
.vlb__nav--next { grid-area: next; }
.vlb.is-single .vlb__nav, .vlb.is-single .vlb__hint { display: none; }
.vlb__stage { grid-area: stage; position: relative; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; overflow: hidden; padding: 8px; }
.vlb__img {
  display: block; width: auto !important; height: auto !important;
  max-width: min(100%, calc(100vw - 170px)) !important; max-height: calc(100vh - 190px) !important; max-height: calc(100dvh - 190px) !important;
  object-fit: contain; border-radius: 14px; background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); opacity: 0; transform: scale(.94);
  transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1); user-select: none; -webkit-user-drag: none;
}
.vlb__stage.from-right .vlb__img { transform: translateX(40px) scale(.98); }
.vlb__stage.from-left .vlb__img { transform: translateX(-40px) scale(.98); }
.vlb__stage.is-ready .vlb__img { opacity: 1; transform: none; }
.vlb__spin { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; opacity: 0; animation: vlbspin .8s linear infinite; transition: opacity .2s; }
.vlb__stage.is-loading .vlb__spin { opacity: 1; }
@keyframes vlbspin { to { transform: rotate(360deg); } }
.vlb__thumbs { grid-area: thumbs; position: relative; display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 10px 18px 4px; scrollbar-width: none; }
.vlb__thumbs[hidden] { display: none; }
.vlb__thumb { flex: none; width: 62px; height: 62px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .55; cursor: pointer; transition: opacity .15s, border-color .15s, transform .15s; }
.vlb__thumb img { width: 100%; height: 100%; object-fit: contain; }
.vlb__thumb:hover { opacity: .9; }
.vlb__thumb.is-on { opacity: 1; border-color: #ad0101; transform: translateY(-2px); }
.vlb__hint { grid-area: hint; position: relative; margin: 0; padding: 6px 0 14px; text-align: center; font-size: 12px; color: #94a3b8; }
@media (max-width: 767px) {
  .vlb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .vlb__nav { position: absolute; top: 50%; margin-top: -24px; width: 44px; height: 44px; }
  .vlb__nav--prev { left: 8px; }
  .vlb__nav--next { right: 8px; }
  .vlb__hint { display: none; }
  .vlb__thumb { width: 52px; height: 52px; }
  .vlb__img { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 170px) !important; max-height: calc(100dvh - 170px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .vlb, .vlb__img, .vlb__btn, .vlb__thumb { transition: none !important; }
}
