/* VIPER PRODUCT PAGE v2 - goes with js/custom/pdp-v2.js. Only applies once the script adds .vbp-on */
:root { --vbp-green: #69be28; --vbp-green-dk: #2f6b0c; --vbp-ink: #151515; --vbp-muted: #555555; --vbp-line: #e2e2dd; --vbp-bg: #f4f4f2; --vbp-top: 96px; --vbp-top-m: 64px; }

html.vbp-pending #ectform0 { visibility: hidden; }

.vbp-on .proddetail { background: var(--vbp-bg); }
.vbp-on #ectform0 { max-width: 1280px; margin: 0 auto; padding: 0 20px 40px; box-sizing: border-box; }
.vbp-on #ectform0 .catnavandcheckout { margin: 10px 0 14px; }

.vbp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.vbp-left { position: sticky; top: var(--vbp-top); display: flex; flex-direction: column; background: #ffffff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.vbp-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* bat preview */
.vbp-stage { background: linear-gradient(#fbfbfa, #ecece8); padding: 34px 22px 18px; }
.vbp-stage #color-changer-bat { position: relative !important; top: auto !important; width: 100% !important; max-width: 100% !important; margin: 0 auto !important; }
.vbp-stage .detailimage { margin: 0 auto; text-align: center; }
.vbp-stage .detailimage img { max-width: 100%; height: auto; }
.vbp-stage-note { text-align: center; font-size: 13px; color: var(--vbp-muted); margin-top: 10px; }

/* name, specs, summary, price */
.vbp-buy { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.vbp-buy .detailname { margin: 0; text-align: left; }
.vbp-buy .detailname h1 { margin: 0; font-size: 32px; line-height: 1.1; text-align: left; }
.vbp-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vbp-spec { border: 1px solid var(--vbp-line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.vbp-spec-l { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--vbp-muted); text-transform: uppercase; }
.vbp-spec-v { font-size: 24px; font-weight: 700; color: var(--vbp-ink); }
.vbp-summary { background: var(--vbp-bg); border-radius: 10px; padding: 10px 14px; font-size: 15px; line-height: 1.45; color: var(--vbp-ink); }
.vbp-cartbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vbp-cartbar .detailprice { flex: 1 1 100%; margin: 0; text-align: left; font-size: 16px; }
.vbp-cartbar .detailprice .price { font-size: 30px; font-weight: 700; }
.vbp-cartbar .detailquantity { margin: 0 !important; width: auto !important; border: 1px solid #cfcfca !important; border-radius: 10px !important; padding: 6px 10px !important; }
.vbp-cartbar .addtocart { flex: 1 1 200px; margin: 0 !important; width: auto !important; }
.vbp-cartbar .addtocart button, .vbp-cartbar .addtocart .ectbutton { width: 100% !important; min-height: 52px; border-radius: 10px !important; font-size: 18px !important; font-weight: 700; background: var(--vbp-green) !important; color: #0b1a02 !important; border: 0 !important; }
.vbp-promise { font-size: 14px; color: #333333; }
.vbp-promise::before { content: "\2713  "; color: var(--vbp-green-dk); font-weight: 700; }

/* steps */
.vbp-right-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vbp-h2 { margin: 0 !important; font-size: 24px !important; text-align: left !important; }
.vbp-progress { font-size: 14px; color: var(--vbp-muted); }
.vbp-step { background: #ffffff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.vbp-step-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--vbp-ink); border-radius: 14px; }
.vbp-step-head:focus-visible { outline: 3px solid var(--vbp-green); outline-offset: -3px; }
.vbp-num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #111111; color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.vbp-step.done .vbp-num { background: var(--vbp-green); color: #0b1a02; }
.vbp-step-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vbp-step-title { font-size: 18px; font-weight: 700; }
.vbp-step-sum { font-size: 14px; color: var(--vbp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbp-chev::before { content: "+"; font-size: 24px; line-height: 1; color: var(--vbp-muted); }
.vbp-step.open .vbp-chev::before { content: "\2212"; }
.vbp-step-body { display: none; padding: 0 18px 18px; }
.vbp-step.open .vbp-step-body { display: block; }
.vbp-right.detailoptions, .vbp-step-body.detailoptions { float: none !important; width: auto !important; margin: 0 !important; }
.vbp-step-body .optiontext { background: transparent !important; padding: 0 !important; border-radius: 0 !important; display: block !important; margin: 14px 0 6px !important; font-size: 18px !important; color: var(--vbp-ink) !important; }
.vbp-step-body .optiontext .detailoption { color: var(--vbp-ink) !important; }
.vbp-step-body select.prodoption { max-width: 100% !important; overflow: visible !important; white-space: normal !important; }
.vbp-step-body .colorSwatch { width: 60px !important; height: 60px !important; margin: 6px 4px 28px !important; }
.vbp-step-body .colorSwatch > div { width: 60px !important; height: 60px !important; }
.vbp-step-body h2 { position: static !important; float: none !important; clear: both; margin: 18px 0 10px !important; font-size: 18px !important; }

/* info tabs */
.vbp-info { margin-top: 32px; background: #ffffff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.vbp-tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--vbp-line); }
.vbp-tab { min-height: 52px; padding: 0 22px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; font-size: 16px; cursor: pointer; color: var(--vbp-ink); }
.vbp-tab.on { border-bottom-color: var(--vbp-green); font-weight: 700; }
.vbp-panels { padding: 22px 26px 26px; }
.vbp-panel .detaildescription, .vbp-panel #reviews { margin: 0 !important; box-shadow: none !important; width: auto !important; max-width: none !important; }
.vbp-measure p { margin: 0 0 12px; }
.vbp-table-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; border: 1px solid var(--vbp-line); border-radius: 10px; }
.vbp-table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 15px; }
.vbp-table th, .vbp-table td { padding: 8px 14px; border-bottom: 1px solid #ecece8; text-align: center; }
.vbp-table th[scope=row] { text-align: left; font-weight: 600; }
.vbp-table thead th { position: sticky; top: 0; background: #111111; color: #ffffff; }
.vbp-table tr.vbp-me { background: #eef7e6; }
.vbp-table tr.vbp-me th, .vbp-table tr.vbp-me td { font-weight: 700; }
.vbp-table tr.vbp-me span { font-weight: 400; color: var(--vbp-muted); }

/* phones / small tablets: one column, bat pinned on top, Add to Cart bar at the bottom */
@media (max-width: 900px) {
	.vbp-on #ectform0 { padding: 0 12px 110px; }
	.vbp-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.vbp-left { display: contents; }
	.vbp-stage { position: sticky; top: var(--vbp-top-m); z-index: 20; padding: 14px 10px 8px; border-radius: 0 0 12px 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
	.vbp-stage-note { display: none; }
	.vbp-buy { background: #ffffff; border-radius: 14px; padding: 16px; }
	.vbp-buy .detailname h1 { font-size: 26px; }
	.vbp-spec-v { font-size: 20px; }
	.vbp-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #ffffff; border-top: 1px solid var(--vbp-line); box-shadow: 0 -4px 12px rgba(0,0,0,0.08); padding: 10px 14px; flex-wrap: nowrap; }
	.vbp-cartbar .detailprice { flex: 0 0 auto; font-size: 14px; }
	.vbp-cartbar .detailprice > *:not(.price):not(strong) { display: none !important; }
	.vbp-cartbar .detailprice .price { font-size: 22px; }
	.vbp-cartbar .detailquantity { display: none !important; }
	.vbp-cartbar .addtocart { flex: 1 1 auto; }
	.vbp-step-head { padding: 12px 14px; }
	.vbp-step-body { padding: 0 12px 14px; }
	.vbp-panels { padding: 16px; }
}

/* measurements: notes + several models (3-packs) */
.vbp-specs-note { background: var(--vbp-bg); border-radius: 10px; padding: 10px 14px; font-size: 15px; color: #333333; }
.vbp-specs-multi { display: flex; flex-direction: column; gap: 6px; }
.vbp-specs-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border: 1px solid var(--vbp-line); border-radius: 10px; padding: 8px 12px; font-size: 15px; }
