/* MAT Product Page — single ifa_product template. Brand tokens match the home hero. */
.mat-pp {
    --pp-ink: #111; --pp-text: #333; --pp-muted: #666; --pp-line: #e6e6e6;
    --pp-paper: #f0f0f0; --pp-card: #fff; --pp-orange: #f97316; --pp-red: #dc2626;
    --pp-radius: 16px; --pp-gutter: 40px;
    font-family: 'Barlow', system-ui, -apple-system, sans-serif;
    color: var(--pp-text);
    background: var(--pp-paper);
    padding: 24px 0 72px;
}
.mat-pp *, .mat-pp *::before, .mat-pp *::after { box-sizing: border-box; }
.mat-pp a { text-decoration: none; }

/* Breadcrumb */
.mat-pp-crumbs { max-width: 1280px; margin: 0 auto 20px; padding: 0 var(--pp-gutter); display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--pp-muted); }
.mat-pp-crumbs a { color: var(--pp-muted); }
.mat-pp-crumbs a:hover { color: var(--pp-orange); }
.mat-pp-crumbs [aria-current] { color: var(--pp-orange); font-weight: 600; }

/* Layout */
.mat-pp-grid { max-width: 1280px; margin: 0 auto; padding: 0 var(--pp-gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Gallery: horizontal scroll-snap track (swipe on touch, thumbs on desktop) */
.mat-pp-gallery { position: sticky; top: 100px; }
.mat-pp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--pp-radius); background: var(--pp-card); box-shadow: 0 10px 30px rgba(0,0,0,.06); scrollbar-width: none; }
.mat-pp-track::-webkit-scrollbar { display: none; }
.mat-pp-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mat-pp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mat-pp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.mat-pp-thumbs::-webkit-scrollbar { display: none; }
.mat-pp-thumb { flex: 0 0 76px; height: 76px; padding: 6px; border-radius: 12px; border: 2px solid transparent; background: var(--pp-card); cursor: pointer; transition: border-color .2s, transform .2s; }
.mat-pp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mat-pp-thumb.is-active { border-color: var(--pp-orange); }
.mat-pp-thumb:hover { transform: translateY(-2px); }
.mat-pp-thumb:focus-visible { outline: 2px solid var(--pp-orange); outline-offset: 2px; }

/* Info column */
.mat-pp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mat-pp-code { font: 700 12px/1 'Barlow', sans-serif; letter-spacing: 2px; color: var(--pp-red); background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); padding: 7px 10px; border-radius: 999px; }
.mat-pp-cat { font: 600 12px/1 'Barlow', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--pp-muted); background: var(--pp-card); padding: 7px 10px; border-radius: 999px; }
.mat-pp-title { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 900; font-size: clamp(34px, 4vw, 54px); line-height: .95; letter-spacing: -.5px; text-transform: uppercase; color: var(--pp-ink); margin: 0 0 16px; }
.mat-pp-intro { font-size: 17px; line-height: 1.6; margin: 0 0 12px; }
.mat-pp-price { font-size: 15px; font-weight: 600; color: var(--pp-muted); margin: 0 0 20px; }

.mat-pp-finish { margin: 0 0 22px; }
.mat-pp-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--pp-orange); margin-bottom: 10px; }
.mat-pp-finish ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mat-pp-finish li { font-size: 14px; font-weight: 600; color: var(--pp-ink); background: var(--pp-card); border: 1px solid var(--pp-line); padding: 9px 14px; border-radius: 10px; }

.mat-pp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 32px; }
.mat-pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: .5px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.mat-pp-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mat-pp-btn.is-primary { grid-column: 1 / -1; background: var(--pp-red); color: #fff; box-shadow: 0 10px 24px rgba(220,38,38,.25); }
.mat-pp-btn.is-primary:hover { background: #b91c1c; transform: translateY(-1px); }
.mat-pp-btn.is-wa { background: #111; color: #fff; }
.mat-pp-btn.is-wa:hover { background: #000; }
.mat-pp-btn.is-ghost { background: var(--pp-card); color: var(--pp-ink); border: 1px solid var(--pp-line); }
.mat-pp-btn.is-ghost:hover { border-color: var(--pp-ink); }
.mat-pp-btn:active { transform: scale(.98); }
.mat-pp-btn:focus-visible { outline: 3px solid var(--pp-orange); outline-offset: 2px; }

.mat-pp-h2 { font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: .3px; text-transform: uppercase; color: var(--pp-ink); margin: 0 0 14px; }
.mat-pp-features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.mat-pp-features li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.mat-pp-features li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(249,115,22,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; border: 1.5px solid var(--pp-orange); }

.mat-pp-specs { margin: 0 0 28px; background: var(--pp-card); border-radius: var(--pp-radius); overflow: hidden; }
.mat-pp-specs > div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--pp-line); }
.mat-pp-specs > div:last-child { border-bottom: 0; }
.mat-pp-specs dt { font-size: 14px; color: var(--pp-muted); }
.mat-pp-specs dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--pp-ink); }

.mat-pp-usp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mat-pp-usp li { background: var(--pp-ink); color: rgba(255,255,255,.75); border-radius: 14px; padding: 14px; font-size: 13px; line-height: 1.4; }
.mat-pp-usp strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }

/* Related */
.mat-pp-related { max-width: 1280px; margin: 64px auto 0; padding: 0 var(--pp-gutter); }
.mat-pp-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mat-pp-related-head a { color: var(--pp-orange); font-weight: 700; font-size: 15px; }
.mat-pp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mat-pp-card { display: flex; flex-direction: column; background: var(--pp-card); border-radius: var(--pp-radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.05); transition: transform .2s ease, box-shadow .2s ease; color: var(--pp-ink); }
.mat-pp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.09); }
.mat-pp-card-img { aspect-ratio: 1 / 1; padding: 14px; display: flex; align-items: center; justify-content: center; }
.mat-pp-card-img img { width: 100%; height: 100%; object-fit: contain; }
.mat-pp-card-code { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--pp-red); padding: 0 14px; }
.mat-pp-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; padding: 4px 14px 16px; }

/* Tablet */
@media (max-width: 1024px) {
    .mat-pp { --pp-gutter: 24px; }
    .mat-pp-grid { gap: 32px; }
    .mat-pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 767px) {
    .mat-pp { --pp-gutter: 16px; padding: 12px 0 40px; }
    .mat-pp-crumbs { font-size: 13px; margin-bottom: 12px; }
    .mat-pp-grid { grid-template-columns: 1fr; gap: 20px; padding: 0; }
    .mat-pp-gallery { position: static; }
    .mat-pp-track { border-radius: 0; box-shadow: none; }
    .mat-pp-slide { padding: 16px; }
    .mat-pp-thumbs { padding: 0 16px; margin-top: 10px; }
    .mat-pp-thumb { flex-basis: 64px; height: 64px; }
    .mat-pp-info { padding: 0 16px; }
    .mat-pp-title { font-size: clamp(34px, 10.5vw, 44px); }
    .mat-pp-intro { font-size: 16px; }
    .mat-pp-cta { grid-template-columns: 1fr 1fr; }
    .mat-pp-btn { font-size: 15px; }
    .mat-pp-usp { grid-template-columns: 1fr; }
    .mat-pp-usp li { display: flex; gap: 10px; align-items: baseline; }
    .mat-pp-usp strong { margin: 0; flex: 0 0 auto; }
    .mat-pp-specs > div { grid-template-columns: 1fr; gap: 2px; }
    .mat-pp-related { margin-top: 44px; padding: 0 16px; }
    .mat-pp-cards { gap: 12px; }
    .mat-pp-card-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .mat-pp-track { scroll-behavior: auto; }
    .mat-pp-card, .mat-pp-btn, .mat-pp-thumb { transition: none; }
}

/* Guard against Elementor kit globals (button/heading/link styles leak into the template) */
.mat-pp .mat-pp-thumb, .mat-pp .mat-pp-thumb:hover, .mat-pp .mat-pp-thumb:focus {
    background: var(--pp-card) !important; color: inherit !important; padding: 6px !important;
    border: 2px solid transparent !important; border-radius: 12px !important; box-shadow: none !important; min-height: 0 !important; line-height: 0 !important;
}
.mat-pp .mat-pp-thumb.is-active { border-color: var(--pp-orange) !important; }
.mat-pp .mat-pp-thumb img { display: block !important; width: 100% !important; height: 100% !important; object-fit: contain !important; }
body .mat-pp .mat-pp-title, body.mat-m .mat-pp .mat-pp-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif !important; font-weight: 900 !important; text-transform: uppercase !important; color: var(--pp-ink) !important;
}
body .mat-pp .mat-pp-h2, body.mat-m .mat-pp .mat-pp-h2 {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif !important; font-weight: 800 !important; text-transform: uppercase !important; color: var(--pp-ink) !important; font-size: 24px !important; line-height: 1.1 !important;
}
.mat-pp .mat-pp-btn { line-height: 1.2 !important; white-space: nowrap; text-decoration: none !important; font-family: 'Barlow', sans-serif !important; }
.mat-pp .mat-pp-btn.is-primary { color: #fff !important; }
.mat-pp .mat-pp-btn.is-wa { color: #fff !important; }
.mat-pp .mat-pp-btn.is-ghost { color: var(--pp-ink) !important; }
.mat-pp .mat-pp-card, .mat-pp .mat-pp-card * { text-decoration: none !important; }
.mat-pp .mat-pp-card-title { color: var(--pp-ink) !important; }
.mat-pp-related-head { margin-bottom: 14px; }
.mat-pp-related-head .mat-pp-h2 { margin: 0 !important; }
@media (max-width: 767px) {
    .mat-pp .mat-pp-btn { font-size: 14.5px !important; padding: 0 12px !important; }
    body.mat-m .mat-pp .mat-pp-title { font-size: clamp(34px, 10.5vw, 44px) !important; line-height: .95 !important; }
}

/* Grid items must be allowed to shrink below their content (long thumb rows, long titles) */
.mat-pp-grid > *, .mat-pp-gallery, .mat-pp-info, .mat-pp-track, .mat-pp-thumbs { min-width: 0; max-width: 100%; }
.mat-pp { overflow-x: clip; }
.mat-pp .mat-pp-title { overflow-wrap: anywhere; }
