#toyota-ativ-widget *,
#toyota-ativ-widget *::before,
#toyota-ativ-widget *::after { box-sizing: border-box; margin: 0; padding: 0; }
#toyota-ativ-widget {
font-family: Tahoma, Arial, sans-serif;
color: #1a1a1a;
max-width: 700px;
margin: 0 auto;
padding: 2rem 1rem;
}
#toyota-ativ-widget .brand-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 1.5rem; }
#toyota-ativ-widget .brand-label { font-size: 11px; font-weight: 700; color: #C0392B; letter-spacing: .12em; text-transform: uppercase; }
#toyota-ativ-widget .brand-title { font-size: 22px; font-weight: 700; color: #1a1a1a; }
#toyota-ativ-widget .page-tabs { display: flex; margin-bottom: 1.5rem; border: 1.5px solid #e0e0e0; border-radius: 10px; overflow: hidden; width: fit-content; }
#toyota-ativ-widget .ptab { padding: 8px 22px; background: #fff; font-family: Tahoma, Arial, sans-serif; font-size: 13px; font-weight: 400; color: #666; cursor: pointer; border: none; border-right: 1.5px solid #e0e0e0; transition: all .15s; }
#toyota-ativ-widget .ptab:last-child { border-right: none; }
#toyota-ativ-widget .ptab:hover { background: #f9f9f9; color: #333; }
#toyota-ativ-widget .ptab.active { background: #C0392B; color: #fff; font-weight: 700; }
#toyota-ativ-widget .page-section { display: none; }
#toyota-ativ-widget .page-section.visible { display: block; }
#toyota-ativ-widget .price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1.5px solid #e8e8e8; border-radius: 12px; overflow: hidden; }
#toyota-ativ-widget .price-table thead tr { background: #333; }
#toyota-ativ-widget .price-table thead th { padding: 11px 16px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-align: left; border-right: 1px solid #444; }
#toyota-ativ-widget .price-table thead th:last-child { border-right: none; }
#toyota-ativ-widget .price-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .12s; }
#toyota-ativ-widget .price-table tbody tr:last-child { border-bottom: none; }
#toyota-ativ-widget .price-table tbody tr:nth-child(even) { background: #fafafa; }
#toyota-ativ-widget .price-table tbody tr:hover { background: #fff8f7; }
#toyota-ativ-widget .price-table td { padding: 13px 16px; font-size: 13px; color: #1a1a1a; border-right: 1px solid #f0f0f0; vertical-align: top; }
#toyota-ativ-widget .price-table td:last-child { border-right: none; }
#toyota-ativ-widget .variant-cell { font-weight: 700; color: #1a1a1a; white-space: nowrap; }
#toyota-ativ-widget .vtag { font-size: 11px; font-weight: 400; color: #999; display: block; margin-top: 2px; }
#toyota-ativ-widget .price-cell { font-size: 16px; font-weight: 700; color: #1a1a1a; white-space: nowrap; }
#toyota-ativ-widget .base-note { font-size: 10px; font-weight: 400; color: #aaa; display: block; margin-top: 2px; }
#toyota-ativ-widget .color-dots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#toyota-ativ-widget .color-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); flex-shrink: 0; }
#toyota-ativ-widget .color-names { font-size: 11px; color: #888; margin-top: 5px; line-height: 1.5; }
#toyota-ativ-widget .hev-badge-sm { display: inline-block; background: #1a6b3c; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .05em; padding: 2px 7px; border-radius: 20px; vertical-align: middle; margin-left: 5px; }
#toyota-ativ-widget .price-footer { font-size: 11px; color: #bbb; margin-top: 10px; text-align: right; }
#toyota-ativ-widget .variant-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
#toyota-ativ-widget .vtab-btn { padding: 7px 16px; border: 1.5px solid #e0e0e0; border-radius: 8px; background: #fff; font-family: Tahoma, Arial, sans-serif; font-size: 13px; font-weight: 400; color: #666; cursor: pointer; transition: all .15s; }
#toyota-ativ-widget .vtab-btn:hover { border-color: #bbb; color: #333; }
#toyota-ativ-widget .vtab-btn.active { background: #C0392B; border-color: #C0392B; color: #fff; font-weight: 700; }
#toyota-ativ-widget .spec-panel { display: none; }
#toyota-ativ-widget .spec-panel.visible { display: block; }
#toyota-ativ-widget .panel-header { background: #fff; border: 1.5px solid #e8e8e8; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
#toyota-ativ-widget .panel-vname { font-size: 17px; font-weight: 700; color: #1a1a1a; }
#toyota-ativ-widget .panel-vtag { font-size: 12px; color: #888; margin-top: 2px; }
#toyota-ativ-widget .hev-badge { background: #1a6b3c; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 3px 10px; border-radius: 20px; }
#toyota-ativ-widget .spec-card { background: #fff; border: 1.5px solid #e8e8e8; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
#toyota-ativ-widget .spec-section-head { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; background: #333; padding: 7px 16px; }
#toyota-ativ-widget .spec-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid #f2f2f2; gap: 12px; }
#toyota-ativ-widget .spec-row:last-child { border-bottom: none; }
#toyota-ativ-widget .spec-row:nth-child(even) { background: #fafafa; }
#toyota-ativ-widget .spec-label { font-size: 13px; color: #666; flex: 0 0 52%; }
#toyota-ativ-widget .spec-value { font-size: 13px; font-weight: 700; color: #1a1a1a; text-align: right; flex: 1; }
#toyota-ativ-widget .pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
#toyota-ativ-widget .pill-yes { background: #e6f4ee; color: #0f6e56; }
#toyota-ativ-widget .pill-smart { background: #e8f0fb; color: #185FA5; }
#toyota-ativ-widget .pill-no { background: #f2f2f2; color: #999; }
#toyota-ativ-widget .compare-btn { display: inline-block; margin-top: 1rem; padding: 9px 20px; border: 1.5px solid #ddd; border-radius: 8px; background: #fff; font-family: Tahoma, Arial, sans-serif; font-size: 13px; color: #555; cursor: pointer; transition: all .15s; }
#toyota-ativ-widget .compare-btn:hover { border-color: #bbb; color: #222; }
#toyota-ativ-widget .compare-wrap { margin-top: 1.25rem; display: none; }
#toyota-ativ-widget .compare-wrap.open { display: block; }
#toyota-ativ-widget .compare-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border: 1.5px solid #e8e8e8; border-radius: 12px; overflow: hidden; }
#toyota-ativ-widget .compare-table th { padding: 9px 10px; background: #333; color: #fff; font-size: 11px; font-weight: 700; text-align: left; border-right: 1px solid #444; }
#toyota-ativ-widget .compare-table th:last-child { border-right: none; }
#toyota-ativ-widget .compare-table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f0; border-right: 1px solid #f0f0f0; color: #1a1a1a; vertical-align: top; }
#toyota-ativ-widget .compare-table td:last-child { border-right: none; }
#toyota-ativ-widget .compare-table tr:last-child td { border-bottom: none; }
#toyota-ativ-widget .compare-table td:first-child { color: #666; background: #fafafa; font-size: 11px; }
#toyota-ativ-widget .compare-table .diff td:not(:first-child) { background: #fff8f7; }
#toyota-ativ-widget .compare-table .sec-row td { background: #333; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
#toyota-ativ-widget .diff-note { font-size: 11px; color: #aaa; margin-top: 8px; }
#toyota-ativ-widget .footer-note { text-align: center; font-size: 11px; color: #ccc; margin-top: 1.5rem; }
#toyota-ativ-widget .spec-value span[title] { cursor: help; }
Toyota ATIV
| Variant |
SRP |
Available Colors |
(function() {
/* ── DATA ──────────────────────────────────────────────────────── */
var priceData = [
{
variant: “1.3 E MT”,
tag: “1.3L Gasoline \u00b7 5-Speed Manual”,
hev: false,
colorPrices: [
{ name: “Gray Metallic”, hex: “#7a7a7a”, price: “PHP 916,000 MSRP” },
{ name: “Metal Stream Metallic”, hex: “#A8B8C0”, price: “PHP 916,000 MSRP” },
{ name: “Scarlet SE”, hex: “#C0392B”, price: “PHP 931,000 MSRP” }
]
},
{
variant: “1.3 E CVT”,
tag: “1.3L Gasoline \u00b7 CVT”,
hev: false,
colorPrices: [
{ name: “Gray Metallic”, hex: “#7a7a7a”, price: “PHP 980,000 MSRP” },
{ name: “Metal Stream Metallic”, hex: “#A8B8C0”, price: “PHP 980,000 MSRP” },
{ name: “Scarlet SE”, hex: “#C0392B”, price: “PHP 995,000 MSRP” }
]
},
{
variant: “1.5 G CVT”,
tag: “1.5L Gasoline \u00b7 CVT”,
hev: false,
colorPrices: [
{ name: “Gray Metallic”, hex: “#7a7a7a”, price: “PHP 1,069,000 MSRP” },
{ name: “Scarlet SE”, hex: “#C0392B”, price: “PHP 1,084,000 MSRP” },
{ name: “Platinum White Pearl Mica”, hex: “#F0EFE8”, price: “PHP 1,084,000 MSRP”, border: true }
]
},
{
variant: “1.5 HEV CVT”,
tag: “1.5L Hybrid Electric \u00b7 E-CVT”,
hev: true,
colorPrices: [
{ name: “Gray Metallic / Attitude Black Mica”, hex: “#7a7a7a”, price: “PHP 1,198,000 MSRP” },
{ name: “Scarlet SE / Attitude Black Mica”, hex: “#C0392B”, price: “PHP 1,208,000 MSRP” },
{ name: “Platinum White Pearl Mica / Attitude Black Mica”, hex: “#F0EFE8”, price: “PHP 1,208,000 MSRP”, border: true }
]
}
];
var variants = [
{
name: “ATIV 1.3 E MT”,
tag: “1.3L Gasoline \u00b7 5-Speed Manual”,
hev: false,
specs: [
{ section: “Dimension & Weight” },
{ label: “Overall dimensions (mm)”, value: “4,330 \u00d7 1,695 \u00d7 1,500” },
{ label: “Seating capacity”, value: “5” },
{ section: “Engine” },
{ label: “Engine type”, value: “4-cylinder, In-Line, 16-valve DOHC with Dual VVT-i” },
{ label: “Engine displacement (cc)”,value: “1,329cc” },
{ label: “Maximum output (ps/rpm)”, value: “98 / 6,000” },
{ label: “Maximum torque (Nm/rpm)”, value: “123 / 4,200” },
{ label: “Fuel capacity (L)”, value: “42L” },
{ section: “Transmission” },
{ label: “Power transmission”, value: “5-Speed MT” },
{ section: “Function” },
{ label: “Keyless entry”, value: “With” },
{ label: “Ignition system”, value: “Rotary” },
{ section: “Chassis” },
{ label: “Front / rear brake”, value: “Ventilated Disc / Drum” },
{ label: “Wheels”, value: “15\” Alloy” },
{ section: “Safety & Security” },
{ label: “Anti-lock brake system (ABS)”, value: “With” },
{ label: “Vehicle stability control (VSC)”, value: “With” },
{ label: “Hill-start assist control (HAC)”, value: “\u2014” },
{ section: “Others” },
{ label: “Audio”, value: “9\” Display Audio” }
]
},
{
name: “ATIV 1.3 E CVT”,
tag: “1.3L Gasoline \u00b7 CVT”,
hev: false,
specs: [
{ section: “Dimension & Weight” },
{ label: “Overall dimensions (mm)”, value: “4,330 \u00d7 1,695 \u00d7 1,500” },
{ label: “Seating capacity”, value: “5” },
{ section: “Engine” },
{ label: “Engine type”, value: “4-cylinder, In-Line, 16-valve DOHC with Dual VVT-i” },
{ label: “Engine displacement (cc)”,value: “1,329cc” },
{ label: “Maximum output (ps/rpm)”, value: “98 / 6,000” },
{ label: “Maximum torque (Nm/rpm)”, value: “123 / 4,200” },
{ label: “Fuel capacity (L)”, value: “42L” },
{ section: “Transmission” },
{ label: “Power transmission”, value: “CVT” },
{ section: “Function” },
{ label: “Keyless entry”, value: “With” },
{ label: “Ignition system”, value: “Rotary” },
{ section: “Chassis” },
{ label: “Front / rear brake”, value: “Ventilated Disc / Drum” },
{ label: “Wheels”, value: “15\” Alloy” },
{ section: “Safety & Security” },
{ label: “Anti-lock brake system (ABS)”, value: “With” },
{ label: “Vehicle stability control (VSC)”, value: “With” },
{ label: “Hill-start assist control (HAC)”, value: “\u2014” },
{ section: “Others” },
{ label: “Audio”, value: “9\” Display Audio” }
]
},
{
name: “ATIV 1.5 G CVT”,
tag: “1.5L Gasoline \u00b7 CVT”,
hev: false,
specs: [
{ section: “Dimension & Weight” },
{ label: “Overall dimensions (mm)”, value: “4,330 \u00d7 1,695 \u00d7 1,500” },
{ label: “Seating capacity”, value: “5” },
{ section: “Engine” },
{ label: “Engine type”, value: “4-cylinder, In-Line, 16-valve DOHC with Dual VVT-i” },
{ label: “Engine displacement (cc)”,value: “1,496cc” },
{ label: “Maximum output (ps/rpm)”, value: “107 / 6,000” },
{ label: “Maximum torque (Nm/rpm)”, value: “140 / 4,200” },
{ label: “Fuel capacity (L)”, value: “42L” },
{ section: “Transmission” },
{ label: “Power transmission”, value: “CVT” },
{ section: “Function” },
{ label: “Keyless entry”, value: “With + Smart Entry” },
{ label: “Ignition system”, value: “Push Start” },
{ section: “Chassis” },
{ label: “Front / rear brake”, value: “Ventilated Disc / Drum” },
{ label: “Wheels”, value: “15\” Alloy” },
{ section: “Safety & Security” },
{ label: “Anti-lock brake system (ABS)”, value: “With” },
{ label: “Vehicle stability control (VSC)”, value: “With” },
{ label: “Hill-start assist control (HAC)”, value: “With” },
{ section: “Others” },
{ label: “Audio”, value: “9\” Display Audio” }
]
},
{
name: “ATIV 1.5 HEV CVT”,
tag: “1.5L Hybrid Electric \u00b7 E-CVT”,
hev: true,
specs: [
{ section: “Dimension & Weight” },
{ label: “Overall dimensions (mm)”, value: “4,330 \u00d7 1,695 \u00d7 1,500” },
{ label: “Seating capacity”, value: “5” },
{ section: “Engine” },
{ label: “Engine type”, value: “4-cylinder, In-Line, 16-valve DOHC with VVT-iE + Electric Motor” },
{ label: “Engine displacement (cc)”,value: “1,496cc” },
{ label: “Maximum output (ps/rpm)”, value: “91 / 5,500 + 80ps (electric)” },
{ label: “Maximum torque (Nm/rpm)”, value: “120 / 3,800\u20134,800” },
{ label: “Fuel capacity (L)”, value: “40L” },
{ section: “Transmission” },
{ label: “Power transmission”, value: “E-CVT” },
{ section: “Function” },
{ label: “Keyless entry”, value: “With + Smart Entry” },
{ label: “Ignition system”, value: “Push Start” },
{ section: “Chassis” },
{ label: “Front / rear brake”, value: “Ventilated Disc / Drum” },
{ label: “Wheels”, value: “15\” Alloy” },
{ section: “Safety & Security” },
{ label: “Anti-lock brake system (ABS)”, value: “With” },
{ label: “Vehicle stability control (VSC)”, value: “With” },
{ label: “Hill-start assist control (HAC)”, value: “With” },
{ section: “Others” },
{ label: “Audio”, value: “9\” Display Audio” }
]
}
];
/* ── HELPERS ───────────────────────────────────────────────────── */
function el(tag, cls, text) {
var e = document.createElement(tag);
if (cls) { e.className = cls; }
if (text !== undefined) { e.textContent = text; }
return e;
}
function pillNode(val) {
if (val === “With”) {
return el(“span”, “pill pill-yes”, “With”);
}
if (val === “With + Smart Entry”) {
return el(“span”, “pill pill-smart”, “With + Smart Entry”);
}
if (val === “Without”) {
return el(“span”, “pill pill-no”, “Without”);
}
if (val === “\u2014”) {
return el(“span”, “pill pill-no”, “\u2014”);
}
return document.createTextNode(val);
}
/* ── BUILD PRICELIST ───────────────────────────────────────────── */
function buildPriceRows() {
var tbody = document.getElementById(“ativ-priceBody”);
priceData.forEach(function(row) {
var prices = row.colorPrices.map(function(c) { return c.price; });
var uniq = prices.filter(function(v, i, a) { return a.indexOf(v) === i; });
var displayPrice = uniq.length === 1 ? uniq[0] : uniq[0] + ” \u2013 ” + uniq[uniq.length – 1];
var tr = document.createElement(“tr”);
/* Variant cell */
var tdV = el(“td”, “variant-cell”);
tdV.appendChild(document.createTextNode(row.variant));
if (row.hev) {
var badge = el(“span”, “hev-badge-sm”, “HEV”);
tdV.appendChild(badge);
}
var vtag = el(“span”, “vtag”, row.tag);
tdV.appendChild(vtag);
tr.appendChild(tdV);
/* Price cell */
var tdP = el(“td”, “price-cell”, displayPrice);
if (uniq.length > 1) {
var note = el(“span”, “base-note”, “varies by color”);
tdP.appendChild(note);
}
tr.appendChild(tdP);
/* Colors cell */
var tdC = el(“td”);
var dotsWrap = el(“div”, “color-dots”);
row.colorPrices.forEach(function(c) {
var dot = el(“span”, “color-dot”);
dot.style.background = c.hex;
if (c.border) { dot.style.border = “1.5px solid #ccc”; }
dot.title = c.name;
dotsWrap.appendChild(dot);
});
tdC.appendChild(dotsWrap);
var namesWrap = el(“div”, “color-names”);
row.colorPrices.forEach(function(c) {
namesWrap.appendChild(document.createTextNode(c.name + ” \u2014 ” + c.price));
namesWrap.appendChild(document.createElement(“br”));
});
tdC.appendChild(namesWrap);
tr.appendChild(tdC);
tbody.appendChild(tr);
});
}
/* ── BUILD SPEC PANELS ─────────────────────────────────────────── */
function buildSpecPanels() {
var tabsWrap = document.getElementById(“ativ-specTabs”);
var panelsWrap = document.getElementById(“ativ-specPanels”);
variants.forEach(function(v, idx) {
/* Tab button */
var btn = el(“button”, “vtab-btn” + (idx === 0 ? ” active” : “”), v.name.replace(“ATIV “, “”));
btn.dataset.v = idx;
tabsWrap.appendChild(btn);
/* Panel */
var panel = el(“div”, “spec-panel” + (idx === 0 ? ” visible” : “”));
panel.id = “ativ-spec-panel-” + idx;
/* Panel header */
var header = el(“div”, “panel-header”);
var hLeft = el(“div”);
hLeft.appendChild(el(“div”, “panel-vname”, v.name));
hLeft.appendChild(el(“div”, “panel-vtag”, v.tag));
header.appendChild(hLeft);
if (v.hev) { header.appendChild(el(“span”, “hev-badge”, “HEV”)); }
panel.appendChild(header);
/* Spec cards */
var currentCard = null;
v.specs.forEach(function(row) {
if (row.section) {
if (currentCard) { panel.appendChild(currentCard); }
currentCard = el(“div”, “spec-card”);
currentCard.appendChild(el(“div”, “spec-section-head”, row.section));
} else {
var specRow = el(“div”, “spec-row”);
specRow.appendChild(el(“span”, “spec-label”, row.label));
var valSpan = el(“span”, “spec-value”);
valSpan.appendChild(pillNode(row.value));
specRow.appendChild(valSpan);
if (currentCard) { currentCard.appendChild(specRow); }
}
});
if (currentCard) { panel.appendChild(currentCard); }
panelsWrap.appendChild(panel);
});
/* Spec tab switching */
tabsWrap.addEventListener(“click”, function(e) {
var btn = e.target.closest(“.vtab-btn”);
if (!btn) { return; }
var idx = parseInt(btn.dataset.v, 10);
tabsWrap.querySelectorAll(“.vtab-btn”).forEach(function(b) {
b.classList.toggle(“active”, parseInt(b.dataset.v, 10) === idx);
});
panelsWrap.querySelectorAll(“.spec-panel”).forEach(function(p, i) {
p.classList.toggle(“visible”, i === idx);
});
});
}
/* ── BUILD COMPARE TABLE ───────────────────────────────────────── */
function buildCompareTable() {
var sections = [];
variants[0].specs.forEach(function(r) {
if (r.section) {
sections.push({ section: r.section, labels: [] });
} else {
sections[sections.length – 1].labels.push(r.label);
}
});
var table = el(“table”, “compare-table”);
/* thead */
var thead = document.createElement(“thead”);
var headRow = document.createElement(“tr”);
var thSpec = el(“th”, null, “Specification”);
thSpec.style.width = “28%”;
headRow.appendChild(thSpec);
variants.forEach(function(v) {
headRow.appendChild(el(“th”, null, v.name.replace(“ATIV “, “”)));
});
thead.appendChild(headRow);
table.appendChild(thead);
/* tbody */
var tbody = document.createElement(“tbody”);
sections.forEach(function(sec) {
var secRow = document.createElement(“tr”);
secRow.className = “sec-row”;
var secTd = el(“td”, null, sec.section);
secTd.colSpan = variants.length + 1;
secRow.appendChild(secTd);
tbody.appendChild(secRow);
sec.labels.forEach(function(lbl) {
var vals = variants.map(function(v) {
var found = v.specs.find(function(r) { return r.label === lbl; });
return found ? found.value : “\u2014”;
});
var allSame = vals.every(function(val) { return val === vals[0]; });
var tr = document.createElement(“tr”);
if (!allSame) { tr.className = “diff”; }
tr.appendChild(el(“td”, null, lbl));
vals.forEach(function(val) {
var td = document.createElement(“td”);
td.appendChild(pillNode(val));
tr.appendChild(td);
});
tbody.appendChild(tr);
});
});
table.appendChild(tbody);
var wrap = document.getElementById(“ativ-compareWrap”);
wrap.appendChild(table);
wrap.appendChild(el(“p”, “diff-note”, “\u25a0 Rows with pink background differ across variants.”));
}
/* ── PAGE TAB SWITCHING ────────────────────────────────────────── */
function initPageTabs() {
document.querySelectorAll(“#toyota-ativ-widget .ptab”).forEach(function(btn) {
btn.addEventListener(“click”, function() {
var page = this.dataset.page;
document.querySelectorAll(“#toyota-ativ-widget .ptab”).forEach(function(b) {
b.classList.toggle(“active”, b.dataset.page === page);
});
document.querySelectorAll(“#toyota-ativ-widget .page-section”).forEach(function(s) {
s.classList.toggle(“visible”, s.id === “ativ-page-” + page);
});
});
});
}
/* ── COMPARE BUTTON ────────────────────────────────────────────── */
function initCompareBtn() {
var compareBuilt = false;
var compareOpen = false;
document.getElementById(“ativ-compareBtn”).addEventListener(“click”, function() {
compareOpen = !compareOpen;
this.textContent = compareOpen ? “Hide comparison \u2191” : “Compare all variants \u2193”;
var wrap = document.getElementById(“ativ-compareWrap”);
wrap.classList.toggle(“open”, compareOpen);
if (compareOpen && !compareBuilt) {
buildCompareTable();
compareBuilt = true;
}
});
}
/* ── INIT ──────────────────────────────────────────────────────── */
buildPriceRows();
buildSpecPanels();
initPageTabs();
initCompareBtn();
})();