/* dmhm-theme-product.css — the «قالب محصول قالب سایت» page. Derived from the approved mockup
   (prd/dmhouse-theme-market/dmhouse-theme-market-theme-product-mockup.html); class names are verbatim.
   Scope: everything lives under .tp (the page root). Tokens read the theme design settings with the mockup values as fallback. */

/* =====================================================================
   THEME PRODUCT PAGE — mockup. tokens = design D (paper/ink), one :root, everything below reads them.
   ===================================================================== */
.tp {
	--p: var(--dmhm-primary, #3e68ff); --d: var(--dmhm-dark, #06061c); --a: var(--dmhm-accent, #ef3e63); --ink: var(--dmhm-ink, #13163a);
	--sf: var(--dmhm-surface, #ffffff); --so: var(--dmhm-soft, #f5f8ff); --ln: var(--dmhm-line, #e0e1e5); --mu: var(--dmhm-muted, #6d6e85);
	--r: var(--dmhm-radius, 10px); --ease: cubic-bezier(0.22, 1, 0.36, 1);
	--s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
	--t-display: 44px; --t-h2: 28px; --t-body: 16px; --t-small: 14px; --t-micro: 12px;
	--font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}
.tp, .tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.8; font-size: var(--t-body); }
:where(.tp) a { color: inherit; text-decoration: none; }
:where(.tp) button { font: inherit; color: inherit; cursor: pointer; }
.tp-wrap { max-width: 1400px; margin-inline: auto; padding-inline: var(--s3); }

/* ---------- breadcrumb ---------- */
.tp-crumbs { padding-block: 10px; text-align: center; font-size: 11px; color: color-mix(in srgb, var(--mu) 65%, #fff); }

/* ---------- hero: cover + buy rail ---------- */
.tp-top { background: linear-gradient(180deg, color-mix(in srgb, var(--p) 7%, #fff), #fff 85%); }
.tp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: var(--s5); align-items: start; padding-block: var(--s2) var(--s5); }

.tp-rail { position: sticky; top: var(--s2); padding: 14px; border: 1px solid var(--d); border-radius: 16px; background: var(--sf); box-shadow: 4px 4px 0 var(--d); }
.tp-rail__tag { display: inline-flex; align-items: center; gap: 6px; margin-block-end: 8px; padding: 0; border-radius: 0; background: none; color: var(--p); font-size: var(--t-micro); font-weight: 800; }
.tp-rail__title { margin: 0 0 4px; font-size: 22px; line-height: 1.4; font-weight: 900; color: var(--d); }
.tp-rail__sub { margin: 0 0 var(--s2); color: var(--mu); font-size: var(--t-small); }
.tp-rail__price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-block-end: 12px; font-size: 26px; font-weight: 900; color: var(--d); }
.tp-rail__price s { color: var(--mu); font-size: 14px; font-weight: 500; opacity: 0.7; }
.tp-rail__price small { font-size: 13px; font-weight: 700; color: var(--mu); margin-inline-start: 4px; }
.tp-off { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--a) 14%, transparent); color: color-mix(in srgb, var(--a) 75%, var(--d)); font-size: 13px; font-weight: 800; }
.tp-buy { display: flex; gap: 8px; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 18px; border: 0; border-radius: var(--r); font-size: 15px; font-weight: 800; transition: background .25s, transform .25s var(--ease); }
.tp-btn--main { flex: 1 1 auto; background: var(--a); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--a) 80%, transparent); }
.tp-btn--main:hover { background: color-mix(in srgb, var(--a) 86%, #000); transform: translateY(-2px); }
.tp-btn--main:focus-visible, .tp-btn--ghost:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; }
.tp-btn--ghost { flex: 0 0 auto; border: 1.5px solid var(--ln); background: var(--sf); color: var(--d); }
.tp-btn--ghost:hover { border-color: var(--p); color: var(--p); background: color-mix(in srgb, var(--p) 5%, #fff); }
.tp-perks { margin: 14px 0 0; padding: 12px 0 0; border-block-start: 1px solid var(--ln); list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.tp-perks li { display: flex; gap: 8px; align-items: center; }
.tp-perks li::before { content: ''; flex: 0 0 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, #1fa971 16%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fa971' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- facts strip: the numbers a buyer scans ---------- */
.tp-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-block-end: var(--s6); }
.tp-fact { padding: 16px 12px; text-align: center; border: 1px solid var(--ln); border-radius: var(--r); background: var(--so); }
.tp-fact b { display: block; font-size: 30px; line-height: 1.2; font-weight: 900; color: var(--d); font-variant-numeric: tabular-nums; }
.tp-fact span { font-size: 13px; color: var(--mu); }

/* ---------- sections ---------- */
.tp-sec { margin-block-end: var(--s6); }
.tp-eyebrow { margin: 0 0 4px; color: var(--mu); font-size: var(--t-small); font-weight: 700; }
.tp-h2 { position: relative; margin: 0 0 var(--s3); padding-block-end: 12px; font-size: var(--t-h2); line-height: 1.4; font-weight: 900; color: var(--d); }
.tp-h2::after { content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 44px; height: 3px; background: var(--p); border-radius: 2px; }

/* ---------- THE long-page viewer: the product's tall design image scrolls inside a browser frame ---------- */
.tp-viewer { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.tp-pages { position: sticky; top: var(--s2); padding: 0; margin: 0; list-style: none; border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; background: var(--sf); }
.tp-pages__t { padding: 10px 14px; background: var(--so); border-block-end: 1px solid var(--ln); font-size: 13px; font-weight: 800; color: var(--mu); }
.tp-pages button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-block-end: 1px solid var(--ln); background: transparent; text-align: start; font-size: 14px; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.tp-pages li:last-child button { border-block-end: 0; }
.tp-pages button::before { content: attr(data-n); flex: 0 0 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--d); border-radius: 50%; font-size: 11px; font-weight: 800; transition: background .2s, color .2s, border-color .2s; }
.tp-pages button:hover { background: color-mix(in srgb, var(--p) 6%, #fff); color: var(--p); }
.tp-pages button[aria-current='true'] { background: color-mix(in srgb, var(--p) 8%, #fff); color: var(--p); }
.tp-pages button[aria-current='true']::before { background: var(--p); border-color: var(--p); color: #fff; }
.tp-pages button:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: -3px; }

.tp-browser { border: 1px solid var(--d); border-radius: 16px; overflow: hidden; background: var(--sf); box-shadow: 6px 6px 0 var(--d); }
.tp-browser__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--d); }
.tp-dots { display: flex; gap: 6px; }
.tp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ef3e63; }
.tp-dots i:nth-child(2) { background: #f5b73b; } .tp-dots i:nth-child(3) { background: #1fa971; }
.tp-url { flex: 1 1 auto; padding: 3px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); font-size: 12px; direction: ltr; text-align: center; }
.tp-ctl { display: flex; gap: 6px; }
.tp-ctl button { min-width: 34px; height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: transparent; color: #fff; font-size: 12px; font-weight: 700; }
.tp-ctl button[aria-pressed='true'] { background: #fff; color: var(--d); }
.tp-screen { position: relative; height: 620px; overflow: hidden; background: #eef1f8; }
.tp-screen__scroll { position: absolute; inset-inline: 0; top: 0; will-change: transform; transition: transform 1.1s var(--ease); }
.tp-screen.is-auto .tp-screen__scroll { animation: tp-scroll 28s linear infinite alternate; }
.tp-screen:hover .tp-screen__scroll { animation-play-state: paused; }
@keyframes tp-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 620px)); } }
.tp-progress { position: absolute; inset-inline-end: 8px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: rgba(0,0,0,.08); }
.tp-progress i { position: absolute; inset-inline: 0; top: 0; height: 22%; border-radius: 2px; background: var(--p); }
.tp-hint { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-block-start: 1px solid var(--ln); font-size: 13px; color: var(--mu); }

/* ---------- "what is inside" ---------- */
.tp-inside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.tp-in { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--sf); transition: border-color .25s, transform .25s var(--ease); }
.tp-in:hover { border-color: var(--p); transform: translateY(-2px); }
.tp-in__i { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--p) 16%, #fff), color-mix(in srgb, var(--p) 6%, #fff)); color: var(--p); font-weight: 900; font-size: 18px; }
.tp-in b { display: block; font-weight: 800; color: var(--d); }
.tp-in span { font-size: 13.5px; color: var(--mu); }

/* ---------- compatibility ---------- */
.tp-compat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.tp-comp { padding: 18px 16px; border-inline-end: 1px solid var(--ln); background: var(--sf); }
.tp-comp:last-child { border-inline-end: 0; }
.tp-comp span { display: block; font-size: 13px; color: var(--mu); }
.tp-comp b { font-size: 18px; font-weight: 900; color: var(--d); }
.tp-comp small { display: block; font-size: 12.5px; color: #1b8d62; font-weight: 700; }

/* ---------- steps ---------- */
.tp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); counter-reset: st; }
.tp-step { position: relative; padding: 18px; border: 1px solid var(--ln); border-radius: var(--r); counter-increment: st; background: var(--sf); }
.tp-step::before { content: counter(st, persian); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-block-end: 10px; border: 1.5px solid var(--d); border-radius: 50%; font-weight: 900; }
.tp-step b { display: block; font-weight: 800; color: var(--d); }
.tp-step span { font-size: 13.5px; color: var(--mu); }

/* ---------- related themes ---------- */
.tp-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.tp-rel { border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; background: var(--sf); transition: border-color .25s, transform .25s var(--ease); }
.tp-rel:hover { border-color: var(--p); transform: translateY(-3px); }
.tp-rel i { display: block; aspect-ratio: 2 / 1; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tp-rel div { padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tp-rel b { font-size: 14.5px; font-weight: 800; }
.tp-rel span { font-size: 13px; color: var(--mu); }

/* ---------- closing CTA + sticky bar ---------- */
.tp-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); border-radius: calc(var(--r) + 10px); background: var(--d); color: #fff; }
.tp-cta h3 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.tp-cta p { margin: 0; color: rgba(255,255,255,.72); }
.tp-cta .tp-btn--main { min-width: 220px; }
.tp-bar { position: sticky; bottom: 0; z-index: 5; margin-block-start: var(--s5); padding: 10px 14px; border-block-start: 1px solid var(--ln); background: color-mix(in srgb, var(--sf) 94%, transparent); backdrop-filter: blur(8px); }
.tp-bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); max-width: 1400px; margin-inline: auto; }
.tp-bar b { font-size: 18px; font-weight: 900; }
.tp-bar span { color: var(--mu); font-size: 13px; margin-inline-start: 8px; }

@media (max-width: 1000px) {
	.tp-hero { grid-template-columns: 1fr; }
	.tp-rail { position: static; }
	.tp-facts { grid-template-columns: repeat(3, 1fr); }
	.tp-viewer { grid-template-columns: 1fr; }
	.tp-pages { position: static; display: flex; overflow-x: auto; }
	.tp-pages__t { display: none; }
	.tp-pages li { flex: 0 0 auto; }
	.tp-pages button { border-block-end: 0; border-inline-end: 1px solid var(--ln); }
	.tp-inside, .tp-steps, .tp-compat, .tp-related { grid-template-columns: repeat(2, 1fr); }
	.tp-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .tp-screen.is-auto .tp-screen__scroll { animation: none; } }

/* =====================================================================
   DECOR LAYER — soft colour, irregular organic shapes, slow motion. Purely decorative (aria-hidden, no pointer events),
   always behind content, always switched off by prefers-reduced-motion.
   ===================================================================== */
.tp { overflow-x: clip; --c-teal: #14b8a6; --c-gold: #f5b73b; --c-violet: #8b5cf6; }
.tp-top, .tp-sec, .tp-viewer, .tp-cta, .tp-steps { position: relative; }
.tp-top > .tp-wrap, .tp-sec > *, .tp-cta > * { position: relative; z-index: 1; }
.tp-top { overflow: hidden; }

@keyframes tp-morph { 0% { border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; transform: translate(0, 0) rotate(0deg); } 50% { border-radius: 60% 40% 38% 62% / 55% 60% 40% 45%; transform: translate(18px, 26px) rotate(14deg); } 100% { border-radius: 38% 62% 54% 46% / 62% 40% 60% 38%; transform: translate(-14px, 12px) rotate(-8deg); } }
@keyframes tp-dash { to { stroke-dashoffset: -240; } }
@keyframes tp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@keyframes tp-pulse { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* section backdrops: alternating soft blobs, different shape and corner each time */
.tp-sec::before { content: ''; position: absolute; z-index: 0; pointer-events: none; width: 340px; height: 340px; inset-block-start: -50px; border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; animation: tp-morph 22s ease-in-out infinite alternate; }
.tp-sec:nth-of-type(odd)::before { inset-inline-end: -150px; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--p) 16%, #fff), transparent 70%); }
.tp-sec:nth-of-type(even)::before { inset-inline-start: -150px; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--c-teal) 16%, #fff), transparent 70%); animation-delay: -8s; }
.tp-sec:nth-of-type(3n)::before { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c-gold) 22%, #fff), transparent 70%); }

/* cover badge: a slowly turning sticker */

/* facts: coloured top accent, each its own hue; numbers count up */
.tp-fact { position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.tp-fact::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--hue, var(--p)); }
.tp-fact:nth-child(2) { --hue: var(--c-teal); } .tp-fact:nth-child(3) { --hue: var(--c-violet); } .tp-fact:nth-child(4) { --hue: var(--c-gold); } .tp-fact:nth-child(5) { --hue: var(--a); } .tp-fact:nth-child(6) { --hue: var(--c-teal); }
.tp-fact:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -18px var(--hue, var(--p)); }

/* viewer: a halo behind the frame and two floating chips */
.tp-viewer::before { content: ''; position: absolute; z-index: 0; inset-block-start: 8%; inset-inline-end: -4%; width: 62%; height: 80%; border-radius: 48% 52% 40% 60% / 50% 44% 56% 50%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--p) 18%, #fff), transparent 70%); animation: tp-morph 18s ease-in-out infinite alternate; pointer-events: none; }
.tp-viewer > * { position: relative; z-index: 1; }
.tp-viewer > .tp-chip { position: absolute; }
.tp-chip { z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ln); border-radius: 999px; background: var(--sf); box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--d) 50%, transparent); font-size: 13px; font-weight: 800; animation: tp-float 5s ease-in-out infinite; }
.tp-chip i { width: 10px; height: 10px; border-radius: 50%; background: #1fa971; position: relative; }
.tp-chip i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1fa971; animation: tp-pulse 2s ease-out infinite; }
.tp-chip--1 { inset-block-start: -18px; inset-inline-start: 250px; }
.tp-chip--2 { inset-block-end: 54px; inset-inline-start: 214px; animation-delay: -2.2s; }
.tp-chip--2 i { background: var(--p); } .tp-chip--2 i::after { background: var(--p); }

/* what's inside: icons nudge on hover */
.tp-in__i { transition: transform .35s var(--ease), background .3s; }
.tp-in:hover .tp-in__i { transform: rotate(-8deg) scale(1.08); }

/* steps: a dashed line runs through the cards */
.tp-steps::before { content: ''; position: absolute; z-index: 0; inset-inline: 6%; top: 34px; border-block-start: 2px dashed color-mix(in srgb, var(--p) 40%, transparent); }
.tp-step { z-index: 1; transition: transform .3s var(--ease), border-color .3s; }
.tp-step:hover { transform: translateY(-4px); border-color: var(--p); }

/* closing band: rings and a gradient wash */
.tp-cta { overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--p) 55%, var(--d)), var(--d) 60%); }
.tp-cta::before, .tp-cta::after { content: ''; position: absolute; border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 50%; pointer-events: none; }
.tp-cta::before { width: 340px; height: 340px; inset-inline-start: -90px; inset-block-start: -150px; animation: tp-spin 40s linear infinite; border-style: dashed; }
.tp-cta::after { width: 220px; height: 220px; inset-inline-end: 22%; inset-block-end: -120px; animation: tp-spin 30s linear infinite reverse; }

/* related: image gets a soft sheen on hover */
.tp-rel i { position: relative; overflow: hidden; }
.tp-rel i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: inset-inline-start .8s var(--ease); }
.tp-rel:hover i::after { inset-inline-start: 130%; }

@media (max-width: 1000px) { .tp-chip, .tp-steps::before { display: none; } .tp-blob--a { width: 260px; height: 260px; } }
@media (prefers-reduced-motion: reduce) { .tp *, .tp *::before, .tp *::after { animation: none !important; transition: none !important; } }
.tp-stage { display: grid; grid-template-columns: minmax(0, 1fr) 86px; }
.tp-viewer[data-minimap="0"] .tp-stage { grid-template-columns: minmax(0, 1fr); }
.tp-viewer[data-minimap="0"] .tp-mini { display: none; }
.tp-viewer[data-markers="0"] { grid-template-columns: minmax(0, 1fr); }
.tp-viewer[data-markers="0"] .tp-pages { display: none; }
.tp-screen { height: 620px; outline-offset: -3px; }
.tp-screen:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); }
.tp-screen.is-auto .tp-screen__scroll { animation: tp-scroll 90s linear infinite alternate; }
.tp-tall { width: 100%; }
.tp-mini { position: relative; height: 620px; border-inline-start: 1px solid var(--ln); background: #f3f5fb; overflow: hidden; cursor: pointer; touch-action: none; }
.tp-mini__img { display: block; }
.tp-mini__box { position: absolute; inset-inline: 3px; top: 0; min-height: 16px; border: 2px solid var(--p); border-radius: 6px; background: color-mix(in srgb, var(--p) 16%, transparent); box-shadow: 0 0 0 9999px color-mix(in srgb, #0b1020 14%, transparent); pointer-events: none; }
.tp-mini__ticks { position: absolute; inset: 6px; pointer-events: none; }
.tp-mini__ticks i { position: absolute; inset-inline: -6px 0; height: 0; border-block-start: 2px solid var(--a); }
.tp-mini__ticks i::after { content: attr(data-n); position: absolute; inset-inline-start: -2px; top: -9px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--a); color: #fff; font-size: 10px; font-weight: 800; }
.tp-pages button { align-items: center; }
.tp-pages__t { position: relative; }
@media (max-width: 1000px) { .tp-placer { grid-template-columns: 1fr; } .tp-screen, .tp-mini { height: 460px; } }
@media (prefers-reduced-motion: reduce) { .tp-screen.is-auto .tp-screen__scroll { animation: none; } }
/* =====================================================================
   THEME-SPECIFIC ADDITIONS (what the static mockup did not need): real images, the WooCommerce buy form, FAQ,
   rich text, description box, reviews, related cards, tiles, minimap image.
   ===================================================================== */
.tp-tall img { display: block; width: 100%; height: auto; }
.tp-mini__img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 6px; object-fit: fill; background: none; }
.tp-pages[hidden] { display: none; }
.tp-viewer[data-markers="0"] { grid-template-columns: minmax(0, 1fr); }
.tp-viewer[data-markers="0"] .tp-pages { display: none; }
.tp-viewer[data-minimap="0"] .tp-stage { grid-template-columns: minmax(0, 1fr); }
.tp-viewer[data-minimap="0"] .tp-mini { display: none; }

/* the real WooCommerce buy form inside the rail: no quantity box, one row of buttons */
.tp-rail form.cart { display: flex; flex: 1 1 auto; gap: 8px; margin: 0; }
.tp-rail form.cart .quantity { display: none; }
.tp-rail .single_add_to_cart_button.button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 6px 18px; border: 0; border-radius: var(--r); background: var(--a); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--a) 80%, transparent); font: inherit; font-size: 15px; font-weight: 800; line-height: 1.5; text-shadow: none; transition: background .25s, transform .25s var(--ease); }
.tp-rail .single_add_to_cart_button.button:hover { background: color-mix(in srgb, var(--a) 86%, #000); color: #fff; transform: translateY(-2px); }
.tp-rail .single_add_to_cart_button.button:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; }
.tp-rail .tp-buy { display: flex; }
.tp-rail__price del, .tp-bar__t del { opacity: .55; font-size: .6em; font-weight: 500; margin-inline-end: 6px; }
.tp-rail__price ins, .tp-bar__t ins { text-decoration: none; }
.tp-rail__price .woocommerce-Price-currencySymbol, .tp-bar__t .woocommerce-Price-currencySymbol { font-size: .5em; font-weight: 700; margin-inline-start: 4px; color: var(--mu); }
.tp-bar__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.tp-bar__t b { font-size: 16px; }
.tp-bar__t span { margin: 0; color: var(--d); font-size: 16px; font-weight: 900; }
.tp-bar { z-index: 40; }
.tp-bar .tp-buy { margin: 0; }
.tp-wrap .woocommerce-message, .tp-wrap .woocommerce-error, .tp-wrap .woocommerce-info { margin-block: 0 var(--s2); padding: 12px 16px; border: 1px solid var(--ln); border-inline-start: 5px solid #1fa971; border-radius: var(--r); background: var(--so); list-style: none; font-size: var(--t-small); font-weight: 700; }
.tp-wrap .woocommerce-error { border-inline-start-color: var(--a); }

/* rich text (intro + product description) */
.tp-rich { max-width: 78ch; font-size: 16px; line-height: 2; color: var(--ink); }
.tp-rich > :first-child { margin-block-start: 0; }
.tp-rich h2, .tp-rich h3, .tp-rich h4 { margin: 1.6em 0 .5em; color: var(--d); font-weight: 900; line-height: 1.5; }
.tp-rich h2 { font-size: 22px; } .tp-rich h3 { font-size: 19px; } .tp-rich h4 { font-size: 17px; }
.tp-rich p { margin: 0 0 1em; }
.tp-rich ul, .tp-rich ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.tp-rich a { color: var(--p); font-weight: 700; }
.tp-rich img { max-width: 100%; height: auto; border-radius: var(--r); }
.tp-rich table { display: block; width: 100%; max-width: 100%; margin: 1.4em 0; overflow-x: auto; border-collapse: collapse; font-size: var(--t-small); }
.tp-rich th, .tp-rich td { padding: 10px 16px; border: 1px solid var(--ln); text-align: start; }
.tp-rich th { background: var(--so); font-weight: 800; color: var(--d); }

/* description: a calm scroll box with a "show more" */
.tp-desc__text { position: relative; max-height: 320px; overflow: hidden; transition: max-height .5s var(--ease); }
.tp-desc__text::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(to top, #fff, transparent); pointer-events: none; transition: opacity .3s; }
.tp-desc.is-open .tp-desc__text { max-height: 560px; overflow-y: auto; }
.tp-desc.is-open .tp-desc__text::after { opacity: 0; }
.tp-desc__more { margin-block-start: var(--s2); min-height: 44px; }

/* FAQ (markup from dmhm_pp_faq_html) — numbered rings */
.tp .dmhm-faq { display: grid; gap: var(--s2); counter-reset: faq; }
.tp .dmhm-faq__item { counter-increment: faq; border: 1px solid var(--ln); border-radius: calc(var(--r) + 6px); background: var(--sf); overflow: hidden; }
.tp .dmhm-faq__item[open] { border-color: color-mix(in srgb, var(--p) 50%, var(--ln)); }
.tp .dmhm-faq__item summary { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); font-size: var(--t-body); font-weight: 800; cursor: pointer; list-style: none; }
.tp .dmhm-faq__item summary::-webkit-details-marker { display: none; }
.tp .dmhm-faq__item summary > span { flex: 1 1 auto; min-width: 0; }
.tp .dmhm-faq__item summary::before { content: counter(faq, persian); flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--d); border-radius: 50%; font-size: 15px; font-weight: 900; line-height: 1; color: var(--d); transition: background .3s, color .3s, border-color .3s; }
.tp .dmhm-faq__item[open] summary::before, .tp .dmhm-faq__item summary:hover::before { background: var(--p); border-color: var(--p); color: #fff; }
.tp .dmhm-faq__plus { position: relative; flex: 0 0 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--p) 11%, var(--sf)); transition: transform .4s var(--ease), background .3s; }
.tp .dmhm-faq__plus::before, .tp .dmhm-faq__plus::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--p); }
.tp .dmhm-faq__plus::after { transform: rotate(90deg); }
.tp .dmhm-faq__item[open] .dmhm-faq__plus { background: var(--p); transform: rotate(180deg); }
.tp .dmhm-faq__item[open] .dmhm-faq__plus::before, .tp .dmhm-faq__item[open] .dmhm-faq__plus::after { background: #fff; }
.tp .dmhm-faq__item[open] .dmhm-faq__plus::after { transform: rotate(0); }
.tp .dmhm-faq__a { padding: 0 var(--s3) var(--s3) var(--s3); padding-inline-start: calc(var(--s3) + 34px + var(--s2)); color: var(--mu); font-size: var(--t-small); }
.tp .dmhm-faq__item summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: -3px; }

/* reviews (dm-advanced-reviews prints its own markup) */
.tp-reviews { scroll-margin-top: 20px; }

/* related cards: real product image */
.tp-rel__img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: linear-gradient(135deg, var(--so), var(--ln)); }
.tp-rel div b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-rel div span { flex: 0 0 auto; font-size: 13px; }
.tp-rel div span del { display: none; }
.tp-rel div span ins { text-decoration: none; }
.tp-rel div span .woocommerce-Price-currencySymbol { font-size: .8em; }
.tp-cta h3 { margin: 0 0 4px; }

@media (max-width: 1000px) {
	.tp-rail .tp-buy { display: none; }
	.tp-hero { row-gap: var(--s3); }
	.tp-wrap { padding-inline: 15px; }
	.tp-bar__t b { display: none; }
	.tp-bar .tp-buy { min-width: 0; flex: 0 0 auto; }
	.tp-bar__in { gap: 10px; }
	.tp-desc__text { max-height: 260px; }
	.tp .dmhm-faq__item summary::before { flex-basis: 28px; height: 28px; font-size: 13px; }
	.tp .dmhm-faq__a { padding-inline-start: var(--s3); }
}

/* =====================================================================
   IDENTITY v2 — the house look of the product pages (paper / ink / blue / pink): ink borders, hard offset shadows,
   outlined section numerals, navy buy button. Two hues only (blue + pink); the earlier teal/gold/violet are remapped.
   ===================================================================== */
.tp { --c-teal: var(--a); --c-gold: var(--p); --c-violet: var(--p); --tp-head: #f1f2f6; }

/* section one continues the site header: the same surface colour (the header has rounded bottom corners), fading to white */
.tp-top { background: linear-gradient(180deg, var(--tp-head) 0, var(--tp-head) 120px, #fff 92%); }
.tp-sec:nth-of-type(odd)::before { background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--p) 12%, #fff), transparent 70%); }
.tp-sec:nth-of-type(even)::before { background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--a) 9%, #fff), transparent 70%); }
.tp-sec:nth-of-type(3n)::before { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--p) 12%, #fff), transparent 70%); }

/* the buy button: navy, blue on hover — beats WooCommerce's purple and Elementor's button styles (which load later on this page) */
.tp .tp-btn.tp-btn--main,
.tp .tp-rail .tp-buy button.single_add_to_cart_button.button,
.tp .tp-rail .tp-buy button.single_add_to_cart_button.button.alt { border: 0; border-radius: var(--r); background: var(--d); color: #fff; box-shadow: none; text-shadow: none; transition: background .25s, transform .25s var(--ease); }
.tp .tp-btn.tp-btn--main:hover,
.tp .tp-rail .tp-buy button.single_add_to_cart_button.button:hover,
.tp .tp-rail .tp-buy button.single_add_to_cart_button.button.alt:hover { background: var(--p); color: #fff; transform: translateY(-2px); }
.tp .tp-rail .tp-buy button.single_add_to_cart_button.button.disabled,
.tp .tp-rail .tp-buy button.single_add_to_cart_button.button:disabled { background: var(--d); color: #fff; opacity: .5; transform: none; }
.tp .tp-btn.tp-btn--ghost { border: 1.5px solid var(--d); background: var(--sf); color: var(--d); }
.tp .tp-btn.tp-btn--ghost:hover { background: var(--so); border-color: var(--d); color: var(--d); box-shadow: 3px 3px 0 var(--d); }
.tp .tp-cta .tp-btn.tp-btn--main { background: #fff; color: var(--d); }
.tp .tp-cta .tp-btn.tp-btn--main:hover { background: var(--a); color: #fff; }

/* ink borders and hard shadows */
.tp-rail { box-shadow: 6px 6px 0 var(--d); }
.tp-in, .tp-comp, .tp-step, .tp-fact, .tp-rel, .tp .dmhm-faq__item { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tp-in:hover, .tp-step:hover, .tp-rel:hover, .tp-fact:hover { border-color: var(--d); box-shadow: 4px 4px 0 var(--d); transform: translate(-2px, -2px); }
.tp-compat { border-color: var(--d); }
.tp .dmhm-faq__item:hover { border-color: var(--d); box-shadow: 3px 3px 0 var(--d); }
.tp-fact::before { height: 4px; background: var(--hue, var(--p)); }
.tp-fact:nth-child(odd) { --hue: var(--p); } .tp-fact:nth-child(even) { --hue: var(--a); }
.tp-fact:hover { box-shadow: 4px 4px 0 var(--d); }
.tp-cta { border: 1px solid var(--d); box-shadow: 6px 6px 0 color-mix(in srgb, var(--p) 80%, var(--d)); }

/* the seal sits on the rail's corner now (it used to cover the cover's own title) */

/* outlined section numerals (house signature) */
.tp-wrap { counter-reset: sec; }
.tp-sec { counter-increment: sec; scroll-margin-top: 20px; }
.tp-sec.tp-sec--end { counter-increment: none; }
.tp-eyebrow { display: flex; align-items: center; gap: var(--s2); }
.tp-sec .tp-eyebrow::before { content: '۰' counter(sec, persian); font-size: 40px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--d); }

/* facts: a strip only from 4 items, sized to the count (no empty cells); 1-3 live in the rail */
.tp-facts { gap: 12px; }
.tp-facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-facts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tp-facts--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tp-facts--many { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tp-rail__facts { margin: 14px 0 0; padding: 12px 0 0; border-block-start: 1px solid var(--ln); font-variant-numeric: tabular-nums; }
.tp-rail__fact { display: flex; align-items: baseline; gap: 8px; padding-block: 3px; font-size: 13.5px; }
.tp-rail__fact dt { margin: 0; color: var(--mu); }
.tp-rail__fact dd { margin: 0; font-weight: 800; }
.tp-rail__dots { flex: 1 1 auto; border-block-end: 1.5px dotted var(--ln); transform: translateY(-4px); }
@media (max-width: 1000px) {
	.tp-facts--4, .tp-facts--5, .tp-facts--6, .tp-facts--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-facts--5 .tp-fact:last-child { grid-column: 1 / -1; }
	.tp-sec .tp-eyebrow::before { font-size: 32px; }
}

/* viewer: skeleton while the tiles load, full-screen mode */
@keyframes tp-shimmer { to { background-position: -200% 0; } }
.tp-screen { background: linear-gradient(110deg, #eef1f8 30%, #f9fafe 50%, #eef1f8 70%) 0 0 / 200% 100%; animation: tp-shimmer 1.6s linear infinite; }
@keyframes tp-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + var(--tp-h, 620px))); } }
.tp-browser:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.tp-browser:fullscreen .tp-stage { flex: 1 1 auto; min-height: 0; }
.tp-browser:fullscreen .tp-screen, .tp-browser:fullscreen .tp-mini { height: 100%; }

/* =====================================================================
   LAYOUT FIXES: equal-height viewer, full-width intro + description, icon tiles
   ===================================================================== */
/* viewer: the sections column and the frame are always the same height. The frame is at least --tp-vh tall (editable per
   product) and grows with the sections list when that is taller. */
.tp-viewer { align-items: stretch; }
.tp-pages { position: static; align-self: stretch; display: flex; flex-direction: column; }
.tp-pages li:not(.tp-pages__t) { flex: 1 1 auto; display: flex; }
.tp-pages li:not(.tp-pages__t) button { flex: 1 1 auto; }
.tp-browser { display: flex; flex-direction: column; min-width: 0; }
.tp-stage { flex: 1 1 auto; min-height: var(--tp-vh, 620px); }
.tp-screen, .tp-mini { height: auto; min-height: var(--tp-vh, 620px); }
.tp-browser:fullscreen .tp-stage { min-height: 0; }
.tp-browser:fullscreen .tp-screen, .tp-browser:fullscreen .tp-mini { min-height: 0; height: 100%; }
@media (max-width: 1000px) {
	.tp-pages li:not(.tp-pages__t) { flex: 0 0 auto; }
	.tp-stage { min-height: min(var(--tp-vh, 620px), 480px); }
	.tp-screen, .tp-mini { min-height: min(var(--tp-vh, 620px), 480px); }
}

/* intro: two columns when it has an image beside it, otherwise the text spans the full width */
.tp-about { display: block; }
.tp-about .tp-rich { max-width: none; }
.tp-about--img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: var(--s5); align-items: start; }
.tp-about__fig { margin: 0; position: sticky; top: 20px; border: 1px solid var(--d); border-radius: 16px; box-shadow: 6px 6px 0 var(--d); overflow: hidden; background: var(--so); }
.tp-about__fig img { display: block; width: 100%; height: auto; }
.tp-about:not(.tp-about--img) .tp-rich { column-width: 440px; column-gap: var(--s5); }
.tp-about:not(.tp-about--img) .tp-rich > h2, .tp-about:not(.tp-about--img) .tp-rich > h3, .tp-about:not(.tp-about--img) .tp-rich > h4 { break-after: avoid; }
.tp-about .tp-rich p, .tp-about .tp-rich li { break-inside: avoid-column; }
@media (max-width: 1000px) { .tp-about--img { grid-template-columns: 1fr; } .tp-about__fig { position: static; } }

/* description: the full width too */
.tp-desc__text.tp-rich, .tp-desc .tp-rich { max-width: none; }

/* "درون بسته" icon tiles */
.tp-in__i svg { width: 22px; height: 22px; }

/* =====================================================================
   ROUND 4: equal-height hero boxes, the seal on the visual LEFT, a quieter breadcrumb, visible decor,
   section one starting under the header, a closing card with both buttons, the sticky bar leaving at the end
   ===================================================================== */
/* the two hero boxes are always the same height: the cover image grows (cropped) or the rail stretches */
.tp-hero { align-items: stretch; }
.tp-rail { position: relative; top: auto; display: flex; flex-direction: column; }
.tp-rail > .tp-buy { margin-block-end: 14px; }
.tp-rail > .tp-perks:first-of-type, .tp-rail > .tp-rail__facts + .tp-perks { margin-block-start: auto; }
.tp-rail > .tp-perks { margin-block-start: auto; }

/* the seal: top corner at the visual LEFT of the rail (inline-end in RTL) */

/* breadcrumb: smaller, paler, no weight */
.tp-crumbs { padding-block: 6px 2px; font-size: 11px; font-weight: 400; color: color-mix(in srgb, var(--mu) 48%, #fff); letter-spacing: 0; }
.tp-crumbs a { color: inherit; }
.tp-crumbs a:hover { color: var(--ink); }

/* section one starts under the site header (the header sits on top of the design); the offsets are measured by JS from the
   real header height, so every device and header style works. Without JS nothing is pulled. */
.tp-top { margin-block-start: calc(var(--tp-over, 0px) * -1); padding-block-start: var(--tp-pad, 0px); position: relative; z-index: 0; }
.tp-over-hdr { position: relative; z-index: 30; }

/* decor you can actually see */

/* closing card: buy + preview, grouped (not stretched) */
.tp-cta__act { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.tp-cta .tp-cta__act .tp-btn { flex: 0 0 auto; min-width: 0; padding-inline: 26px; }
.tp .tp-btn.tp-btn--ghost.tp-btn--dark { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; }
.tp .tp-btn.tp-btn--ghost.tp-btn--dark:hover { background: #fff; color: var(--d); border-color: #fff; box-shadow: none; }
@media (max-width: 1000px) { .tp-cta__act { flex-direction: column; align-items: stretch; } }

/* the sticky bar steps aside when the closing card is on screen (one buy button at a time) */
.tp-bar { transition: transform 0.3s var(--ease), opacity 0.3s; }
.tp-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* round 5: the decor starts where section one starts (never behind the header, so the header stays readable);
   the layer is clipped to the band and fades in over its first 40px */

/* breadcrumb: small, light grey, regular weight — beats the SEO plugin's and Elementor's own link/paragraph styles */
.tp .tp-crumbs, .tp .tp-crumbs p, .tp .tp-crumbs nav, .tp .tp-crumbs span, .tp .tp-crumbs a { margin: 0; font-size: 10.5px; font-weight: 400; line-height: 1.6; color: color-mix(in srgb, var(--mu) 38%, #fff); text-decoration: none; }
.tp .tp-crumbs { padding-block: 4px 0; }
.tp .tp-crumbs a:hover { color: var(--mu); }

/* round 6: the decor starts BELOW the breadcrumb row (60px under the header's bottom edge) and its shapes sit lower */
.tp .tp-crumbs .separator { margin-inline: 2px; opacity: 0.8; }

/* the rail became a flex column (equal-height boxes): the category pill must not stretch to full width */
.tp-rail__tag { align-self: flex-start; width: fit-content; }

/* round 7: the decor sits back — lower opacity so it never competes with the content */

/* round 8 */
/* compatibility grid: the same hairline colour as the other sections' cards (--ln = #e0e1e5) */
.tp-compat { border-color: var(--ln); }

/* "درون بسته" cards: equal space above and below the text (the inline <span> used to add a line-box strut at the bottom);
   the icon and the text block are centred against each other */
.tp-in { align-items: center; padding: 16px 18px; }
.tp-in > div { min-width: 0; line-height: 1.7; }
.tp-in > div > b { display: block; }
.tp-in > div > span { display: block; font-size: 13.5px; line-height: 1.7; }

/* the last section (the closing card) has no space under it; the sticky bar collapses completely while it is hidden */
.tp-sec.tp-sec--end { margin-block-end: 0; }
.tp-bar { margin-block-start: 0; }
.tp-bar.is-hidden { height: 0; min-height: 0; padding: 0; border: 0; overflow: hidden; }

/* ============ HERO DEMO (3.24.0): a 3D laptop + phone showing the product's two tall pictures, light background ============
   markup: dmhm_tp_demo_html(); behaviour: dmhm-theme-product.js (.js-demo). The scene is built at a fixed 760px and scaled by JS (--k) from the real
   column width AND the window height, so its box never changes between the three modes (no page jump). */
.tp-hero--demo { align-items: start; }
.tp-demo { margin: 0; position: relative; min-width: 0; }
.tp-demo__modes { position: relative; z-index: 5; display: flex; gap: 4px; width: max-content; margin: 0 auto 6px; padding: 4px; border: 1.5px solid var(--d); border-radius: 999px; background: #fff; }
.tp-demo__modes button { font: inherit; font-size: 12px; font-weight: 700; line-height: 1.4; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--d); cursor: pointer; transition: background .25s, color .25s; }
.tp-demo__modes button[aria-pressed="true"] { background: var(--d); color: #fff; }
.tp-demo__modes button:focus-visible, .tp-demo__rail button:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; }

.tp-demo__view { position: relative; display: flex; align-items: center; justify-content: center; height: 720px; perspective: 2600px; perspective-origin: 50% 12%; touch-action: pan-y; }
.tp-demo__scene { position: relative; flex: none; width: 760px; height: 500px; transform-style: preserve-3d; scale: var(--k, 1); --gx: 6px;
	transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform 1.2s ease-out; will-change: transform; }
.tp-demo__view.is-moving .tp-demo__scene { transition: transform .25s ease-out; }
.tp-demo__scene[data-mode="desktop"] { --gx: 23px; }
.tp-demo__scene[data-mode="mobile"] { --gx: 0px; }

/* shadows: flat on the table (laptop: faint, a little behind and under it) and on the keyboard (phone: straight under it) */
.tp-d-floor { position: absolute; left: -30px; top: 494px; width: 820px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(13,13,38,.3), rgba(13,13,38,.1) 60%, transparent); filter: blur(14px); transform: translateZ(110px) rotateX(90deg); translate: var(--gx) 0; pointer-events: none; transition: translate .7s, opacity .5s; }
.tp-d-shade { position: absolute; left: -40px; top: 439px; width: 200px; height: 80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(13,13,38,.5), transparent); filter: blur(7px); transform: translateZ(40px) rotateX(90deg); translate: var(--gx) 0; pointer-events: none; transition: left .7s, top .7s, opacity .5s, transform .7s; }
.tp-demo__scene[data-mode="mobile"] .tp-d-floor, .tp-demo__scene[data-mode="desktop"] .tp-d-shade { opacity: 0; }
.tp-demo__scene[data-mode="mobile"] .tp-d-shade { translate: 0 0; left: calc(50% - 130px); top: 473px; width: 260px; height: 96px; transform: translateZ(60px) rotateX(90deg); }

/* laptop */
.tp-d-lap { position: absolute; inset-inline-start: 0; top: 0; width: 760px; transform-style: preserve-3d; translate: var(--gx) 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), translate .7s cubic-bezier(.2,.8,.2,1), opacity .5s, visibility 0s; }
.tp-d-lid { position: relative; width: 760px; height: 480px; padding: 14px 14px 18px; border: 2px solid #34345a; border-radius: 18px 18px 6px 6px; background: #16162e; transform-origin: 50% 100%; transform: rotateX(7deg); box-shadow: 0 30px 60px rgba(13,13,38,.28), inset 0 0 0 2px #0b0b1c; }
.tp-d-lid::before { content: ''; position: absolute; top: 5px; inset-inline: 0; margin-inline: auto; width: 5px; height: 5px; border-radius: 50%; background: #34345a; }
.tp-d-hinge { position: absolute; top: 478px; inset-inline: 40px; height: 10px; border-radius: 0 0 8px 8px; background: linear-gradient(#5b5d78, #2a2b42); transform: translateZ(1px); }
.tp-d-deck { position: absolute; top: 480px; inset-inline-start: 0; width: 760px; height: 300px; transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d; border-radius: 8px 8px 60px 60px;
	background: linear-gradient(180deg, #9a9cb4 0, #c8cadb 18%, #d9dbe8 60%, #bfc1d4 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -10px 30px rgba(13,13,38,.15); }
.tp-d-layer { position: absolute; inset: 0; border-radius: 8px 8px 60px 60px; pointer-events: none; }
.tp-d-keys { position: absolute; top: 18px; inset-inline: 34px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.tp-d-keys i { height: 17px; border-radius: 6px; background: linear-gradient(#2d2e48, #14152a); box-shadow: 0 2px 0 #07081a, inset 0 1px 0 rgba(255,255,255,.18); }
.tp-d-keys i.sp { grid-column: span 6; }
.tp-d-pad { position: absolute; bottom: 22px; inset-inline: 0; margin-inline: auto; width: 250px; height: 78px; border-radius: 12px; background: linear-gradient(#e4e6f1, #c3c5d8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 2px 6px rgba(255,255,255,.7); }

/* the screens: a window onto the tall picture, scrolled by JS */
.tp-d-scr { position: relative; height: 100%; overflow: hidden; border-radius: 6px; background: #fff; direction: ltr; cursor: grab; }
.tp-d-pic { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.tp-d-pic img { display: block; width: 100%; height: auto; max-width: none; }
.tp-d-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 35%); }

/* phone: on the laptop's screen (left part), floating just above the keyboard plane */
.tp-d-ph { position: absolute; left: -73px; bottom: -8px; width: 236px; height: 480px; transform-style: preserve-3d; transform: translateZ(40px) scale(.84) rotateY(5deg);
	transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, left .7s cubic-bezier(.2,.8,.2,1), bottom .7s cubic-bezier(.2,.8,.2,1); }
.tp-d-body { position: relative; width: 100%; height: 100%; padding: 11px; border: 2px solid #4a4a74; border-radius: 38px; background: #0b0b1c; box-shadow: 0 40px 70px rgba(13,13,38,.4), inset 0 0 0 2px #1d1d38; }
.tp-d-body::before { content: ''; position: absolute; top: 19px; inset-inline: 0; margin-inline: auto; width: 70px; height: 20px; border-radius: 12px; background: #000; z-index: 3; }
.tp-d-body .tp-d-scr { border-radius: 28px; }
.tp-d-ph-layer { position: absolute; inset: 0; border-radius: 38px; background: #23233f; pointer-events: none; }

/* floating chips (never catch clicks) */
.tp-d-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--d); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--d); font-size: 12px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: tp-float 5s ease-in-out infinite; }
.tp-d-chip i { width: 9px; height: 9px; border-radius: 50%; background: #1fa971; }
.tp-d-chip--a { right: -64px; top: 96px; transform: translateZ(120px); }
.tp-d-chip--b { right: -62px; bottom: 96px; transform: translateZ(90px); animation-delay: -2.2s; }
.tp-d-chip--b i { background: var(--p); }

/* modes */
.tp-demo__scene[data-mode="desktop"] .tp-d-ph { opacity: 0; visibility: hidden; pointer-events: none; transform: translateZ(60px) translateX(-60px) scale(.6); }
.tp-demo__scene[data-mode="mobile"] .tp-d-lap { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.85); transition: transform .7s, translate .7s, opacity .5s, visibility 0s .5s; }
.tp-demo__scene[data-mode="mobile"] .tp-d-ph { left: calc(50% - 126px); bottom: 10px; transform: translateZ(60px) scale(1.12); }
.tp-demo__scene:not([data-mode="both"]) .tp-d-chip { opacity: 0; }

/* foot: section rail + progress bar */
.tp-demo__foot { position: relative; z-index: 5; margin-block-start: 8px; }
.tp-demo__rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tp-demo__rail button { font: inherit; font-size: 12px; font-weight: 700; line-height: 1.4; padding: 5px 13px; border: 1.5px solid var(--d); border-radius: 999px; background: #fff; color: var(--d); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tp-demo__rail button[aria-current="true"] { background: var(--a); border-color: var(--a); color: #fff; }
.tp-demo__bar { height: 3px; max-width: 420px; margin: 12px auto 0; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--d) 14%, transparent); }
.tp-demo__bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--p), var(--a)); }

@media (max-width: 640px) { .tp-d-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .tp-d-chip { animation: none; } .tp-demo__scene, .tp-d-lap, .tp-d-ph { transition: none; } }

/* ============ SECTION ONE with the demo (3.25.0): plain paper, no shapes/blobs/route; the buy rail is a text column, not a card ============ */
.tp .tp-top--demo { background: #f6f3ec; }
.tp .tp-top--demo::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(60% 70% at 25% 55%, color-mix(in srgb, var(--p) 12%, transparent), transparent 70%), radial-gradient(40% 50% at 85% 20%, color-mix(in srgb, var(--a) 10%, transparent), transparent 70%); }
.tp .tp-top--demo::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
	background-image: linear-gradient(color-mix(in srgb, var(--d) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--d) 6%, transparent) 1px, transparent 1px);
	background-size: 56px 56px; -webkit-mask: radial-gradient(70% 80% at 30% 55%, #000, transparent); mask: radial-gradient(70% 80% at 30% 55%, #000, transparent); }

@media (min-width: 1001px) {
	.tp .tp-hero--demo { grid-template-columns: 400px minmax(0, 1fr); column-gap: 24px; align-items: center; }
	.tp .tp-hero--demo .tp-demo { order: 2; }
	.tp .tp-hero--demo .tp-rail { order: 1; }
}
.tp .tp-hero--demo .tp-rail { position: relative; top: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tp .tp-hero--demo .tp-rail__title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.3; margin-block: 0 12px; }
.tp .tp-hero--demo .tp-rail__sub { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.tp .tp-hero--demo .tp-rail__tag { font-size: 12px; margin-block-end: 14px; }
.tp .tp-hero--demo .tp-rail > .tp-perks { margin-block-start: 14px; }
.tp .tp-hero--demo .tp-perks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-inline: 0; padding: 0; border: 0; background: none; list-style: none; font-size: 13px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.tp .tp-hero--demo .tp-perks li { padding: 0; border: 0; background: none; }
.tp .tp-hero--demo .tp-buy { gap: 10px; flex-wrap: wrap; }
.tp .tp-hero--demo .tp-rail .tp-buy button.single_add_to_cart_button.button,
.tp .tp-hero--demo .tp-rail .tp-buy button.single_add_to_cart_button.button.alt { border: 2px solid var(--d); border-radius: 12px; background: var(--p); color: #fff; box-shadow: 4px 4px 0 var(--d); }
.tp .tp-hero--demo .tp-rail .tp-buy button.single_add_to_cart_button.button:hover { background: var(--p); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--d); }
.tp .tp-hero--demo .tp-btn--ghost { border: 2px solid var(--d); border-radius: 12px; background: transparent; color: var(--d); }
.tp-demo__hint { margin: 8px 0 0; text-align: center; font-size: 11px; color: color-mix(in srgb, var(--ink) 50%, transparent); }
@media (max-width: 1000px) { .tp .tp-hero--demo { row-gap: var(--s3); } }

/* section one without the two tall pictures: the featured / cover image takes the stage in the SAME design (3.27.0) */
.tp .tp-demo--cover { display: flex; align-items: center; justify-content: center; }
.tp .tp-demo--cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border: 2px solid var(--d); border-radius: 16px; box-shadow: 6px 6px 0 var(--d); }
.tp .tp-hero--solo { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* ---- 3.28.0: emphasised word in the title, third chip, tighter vertical rhythm ---- */
.tp .tp-rail__title em { font-style: normal; font-size: var(--tp-em, 1.5em); line-height: 1.05; color: var(--p); padding-inline: .1em; border-radius: 6px;
	background: linear-gradient(transparent 66%, color-mix(in srgb, var(--p) 22%, transparent) 66% 92%, transparent 92%); }
.tp-d-chip--c { left: 170px; top: -34px; transform: translateZ(70px); background: var(--p); border-color: var(--d); color: #fff; animation-delay: -3.4s; }
.tp-d-chip--c i { background: #fff; }
.tp .tp-demo__modes { margin-block-end: 0; }
.tp .tp-demo__foot { margin-block-start: 0; }
.tp .tp-demo__bar { margin-block-start: 8px; }
.tp .tp-demo__hint { margin-block-start: 6px; }
.tp .tp-demo__scene { translate: none; }
.tp .tp-demo__sway { display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; translate: var(--sx, 0px) var(--sy, 0px); }

/* ---- 3.29.0: section one takes at least 95% of the window; section two has a fixed top padding right under it ---- */
.tp .tp-top--demo { min-height: 95vh; min-height: 95svh; display: flex; flex-direction: column; }
.tp .tp-top--demo > .tp-wrap { flex: 1 1 auto; display: flex; flex-direction: column; width: 100%; }
.tp .tp-top--demo .tp-hero { flex: 1 1 auto; align-content: center; }
.tp .tp-top--demo + .tp-wrap { padding-block-start: 56px; }

/* ---- 3.30.0: dark theme of section one (chosen in the theme settings, overridable per product) ---- */
.tp .tp-top--dark { background: #06061c; }
.tp .tp-top--dark::before { background: radial-gradient(60% 70% at 25% 55%, color-mix(in srgb, var(--p) 34%, transparent), transparent 70%), radial-gradient(40% 50% at 85% 20%, color-mix(in srgb, var(--p) 16%, transparent), transparent 70%); }
.tp .tp-top--dark::after { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); opacity: .5; }
.tp .tp-top--dark .tp-crumbs, .tp .tp-top--dark .tp-crumbs a, .tp .tp-top--dark .tp-crumbs nav { color: rgba(255,255,255,.6); }
.tp .tp-top--dark .tp-rail__title, .tp .tp-top--dark .tp-rail__price, .tp .tp-top--dark .tp-rail__price * { color: #fff; }
.tp .tp-top--dark .tp-rail__title em { color: color-mix(in srgb, var(--p) 58%, #fff); background: linear-gradient(transparent 66%, color-mix(in srgb, var(--p) 38%, transparent) 66% 92%, transparent 92%); }
.tp .tp-top--dark .tp-rail__tag { color: color-mix(in srgb, var(--p) 58%, #fff); }
.tp .tp-top--dark .tp-rail__sub, .tp .tp-top--dark .tp-perks { color: rgba(255,255,255,.72); }
.tp .tp-top--dark .tp-rail__price del { opacity: .5; }
.tp .tp-top--dark .tp-rail .tp-buy button.single_add_to_cart_button.button, .tp .tp-top--dark .tp-rail .tp-buy button.single_add_to_cart_button.button.alt { border-color: #fff; box-shadow: 4px 4px 0 rgba(255,255,255,.35); }
.tp .tp-top--dark .tp-rail .tp-buy button.single_add_to_cart_button.button:hover { box-shadow: 6px 6px 0 rgba(255,255,255,.35); }
.tp .tp-top--dark .tp-btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.tp .tp-top--dark .tp-demo__modes { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.tp .tp-top--dark .tp-demo__modes button { color: rgba(255,255,255,.8); }
.tp .tp-top--dark .tp-demo__modes button[aria-pressed="true"] { background: #fff; color: var(--d); }
.tp .tp-top--dark .tp-demo__rail button { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.85); }
.tp .tp-top--dark .tp-demo__rail button[aria-current="true"] { background: var(--p); border-color: var(--p); color: #fff; }
.tp .tp-top--dark .tp-demo__bar { background: rgba(255,255,255,.14); }
.tp .tp-top--dark .tp-demo__hint { color: rgba(255,255,255,.5); }
.tp .tp-top--dark .tp-d-floor { background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,.2) 60%, transparent); }
.tp .tp-top--dark .tp-d-shade { background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }

/* 3.32.0: the switch and the rail/bar sit under the VISUAL centre of the stage (it is pushed to the column edge by --sx), not under the column centre */
.tp .tp-demo__modes, .tp .tp-demo__foot { translate: var(--sx, 0px) 0; }

/* ---- 3.33.0: the title scale — normal part ~30px, emphasised word 2x (60px), roomy line height; gradient word with a wavy underline, all in the same blue hue ---- */
.tp .tp-hero--demo .tp-rail__title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.8em; margin-block: 0 10px; }
.tp .tp-hero--demo .tp-rail__title em { position: relative; display: inline-block; font-style: normal; font-size: 2em; line-height: 1.25; padding: 0 .06em .14em; margin-inline: .05em; border-radius: 0; background: none;
	color: var(--p); background-image: linear-gradient(100deg, var(--p), color-mix(in srgb, var(--p) 55%, #19b6ff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tp .tp-hero--demo .tp-rail__title em::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 10px; background: color-mix(in srgb, var(--p) 70%, #19b6ff);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5Q5 0 10 5T20 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 20px 10px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5Q5 0 10 5T20 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 20px 10px; }
.tp .tp-top--dark .tp-rail__title em { background-image: linear-gradient(100deg, #9db8ff, #6fe0ff); color: #9db8ff; }
.tp .tp-top--dark .tp-rail__title em::after { background: #7fd0ff; }

/* ---- 3.34.0: the emphasised word, formal and sharp: weight contrast (regular vs heavy), one solid colour, a precise thick underline — no gradient, no wave ---- */
.tp .tp-hero--demo .tp-rail__title { font-weight: 400; letter-spacing: 0; }
.tp .tp-hero--demo .tp-rail__title em { display: inline; padding: 0; margin-inline: .06em; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--p);
	background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor;
	text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .18em; text-decoration-color: var(--p); text-decoration-skip-ink: none; }
.tp .tp-hero--demo .tp-rail__title em::after { content: none; }
.tp .tp-top--dark .tp-rail__title { font-weight: 400; color: rgba(255,255,255,.86); }
.tp .tp-top--dark .tp-rail__title em { background: none; color: #fff; text-decoration-color: color-mix(in srgb, var(--p) 70%, #9db8ff); }

/* ---- 3.34.1: back to the highlighter-marker look (same blue hue), keeping the 30px / 60px scale ---- */
.tp .tp-hero--demo .tp-rail__title em { padding: 0 .1em; border-radius: 6px; font-weight: 800; letter-spacing: 0; text-decoration: none; color: var(--p);
	background: linear-gradient(transparent 62%, color-mix(in srgb, var(--p) 24%, transparent) 62% 94%, transparent 94%); }
.tp .tp-top--dark .tp-rail__title em { color: color-mix(in srgb, var(--p) 58%, #fff); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--p) 40%, transparent) 62% 94%, transparent 94%); text-decoration: none; }

/* ---- 3.35.0: viewer: no minimap, no mobile preview; on narrow screens the sections are a sideways-scrolling row and the active one stays centred; a finger drags the picture ---- */
.tp-screen { touch-action: none; cursor: grab; }
@media (max-width: 1000px) {
	.tp .tp-pages { flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.tp .tp-pages::-webkit-scrollbar { display: none; }
	.tp .tp-pages li:not(.tp-pages__t) { flex: 0 0 auto; scroll-snap-align: center; }
	.tp .tp-pages button { width: auto; white-space: nowrap; }
}

/* ---- 3.36.0: responsive: no jump of the stage, perks full width, inside-the-box cards with the icon on top on phones, related products as one carousel row ---- */
.tp-demo__view { transition: opacity .3s; }
.tp-demo:not(.is-ready) .tp-demo__view { opacity: 0; animation: tp-demo-in .01s 2s forwards; }
@keyframes tp-demo-in { to { opacity: 1; } }
.tp .tp-hero--demo .tp-perks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
.tp .tp-hero--demo .tp-perks li { width: 100%; }
@media (max-width: 640px) {
	.tp-in { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.tp-related { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-block: 4px 12px; -webkit-overflow-scrolling: touch; }
.tp-related .tp-rel { flex: 0 0 clamp(260px, 30%, 400px); scroll-snap-align: start; }
@media (max-width: 1000px) {
	.tp-related { scrollbar-width: none; }
	.tp-related::-webkit-scrollbar { display: none; }
	.tp-related .tp-rel { flex-basis: min(76%, 340px); }
}
@media (max-width: 640px) { .tp-demo__scene[data-mode="mobile"] .tp-d-ph { left: calc(50% - 118px); } }

/* 3.36.1: our own product page declares its direction (a site whose WordPress locale is not Persian would otherwise mirror the whole layout) */
.tp { direction: rtl; }

/* ---- 3.37.0: the sway is a compositor animation; the tall pictures get their own stable layers (no per-frame re-raster) ---- */
.tp-demo__sway.is-swaying { animation: tp-sway 50s ease-in-out infinite; }
/* starts frontal with only the X tilt of the scene (yaw 0), turns to the right first, then the other axes join in a little */
@keyframes tp-sway {
	0%   { transform: rotateX(0deg) rotateY(14deg) rotateZ(0deg); }
	25%  { transform: rotateX(2.5deg) rotateY(-1deg) rotateZ(-.6deg); }
	50%  { transform: rotateX(0deg) rotateY(calc(var(--tp-sw, 15deg) * -1)) rotateZ(0deg); }
	75%  { transform: rotateX(-2.5deg) rotateY(0deg) rotateZ(.6deg); }
	100% { transform: rotateX(0deg) rotateY(14deg) rotateZ(0deg); }
}
@media (max-width: 1000px) { .tp-demo { --tp-sw: 22deg; } }
.tp-demo__view.is-moving .tp-demo__sway { animation-play-state: paused; }
.tp-d-pic { backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .tp-demo__sway.is-swaying { animation: none; } }

/* ---- 3.38.0: related products = a real carousel with arrows (no visible scrollbar); inside-the-box icons stay squares on phones ---- */
.tp-car { position: relative; }
.tp-car .tp-related { scrollbar-width: none; padding-inline: 2px; scroll-behavior: smooth; }
.tp-car .tp-related::-webkit-scrollbar { display: none; }
.tp-car__b { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; margin-top: -28px; padding: 0; border: 2px solid var(--d); border-radius: 50%; background: #fff; color: var(--d); box-shadow: 3px 3px 0 var(--d); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, opacity .2s; }
.tp-car__b:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--d); background: var(--p); color: #fff; }
.tp-car__b:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; }
.tp-car__b:disabled { opacity: .35; cursor: default; box-shadow: none; }
.tp-car__b--prev { inset-inline-start: -14px; }
.tp-car__b--next { inset-inline-end: -14px; }
.tp-car.is-static .tp-car__b { display: none; }
@media (max-width: 1000px) {
	.tp-car__b { width: 40px; height: 40px; margin-top: -22px; }
	.tp-car__b--prev { inset-inline-start: -6px; }
	.tp-car__b--next { inset-inline-end: -6px; }
}
@media (max-width: 640px) {
	.tp-in__i { flex: 0 0 auto; width: 46px; height: 46px; }
}

/* ---- 3.40.0: the minimap is back on wide screens; phones and tablets have the sideways section row and the finger drag instead ---- */
@media (max-width: 1000px) { .tp-stage { grid-template-columns: minmax(0, 1fr); } .tp-mini { display: none; } }

/* 3.40.1: the scroll layer follows the pointer / the glide at once; the old 1.1s transform transition made a click or a drag lag behind (you had to hold the button for it to arrive) */
.tp-screen__scroll { transition: none; }

/* title tags are chosen per product (inc/headings.php): the look hangs on the class, never on the element */
.tp-eyebrow, .tp-h2, .tp-rel__t, .tp-cta__t { font-family: inherit; letter-spacing: normal; text-transform: none; }
.tp-rel__t { margin: 0; font-size: 14.5px; font-weight: 800; line-height: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cta__t { margin: 0 0 4px; font-size: 24px; font-weight: 900; line-height: inherit; color: inherit; }

/* more than four rows: the grid keeps its inner lines */
.tp-comp:nth-child(4n) { border-inline-end: 0; }
.tp-comp:nth-child(n+5) { border-block-start: 1px solid var(--ln); }
@media (max-width: 1000px) {
	.tp-comp:nth-child(4n) { border-inline-end: 1px solid var(--ln); }
	.tp-comp:nth-child(2n) { border-inline-end: 0; }
	.tp-comp:nth-child(n+3) { border-block-start: 1px solid var(--ln); }
}

/* sibling plugins (wishlist, back in stock) wear the design's own roles; their defaults stay when a token is not set */
.tp { --dmwl-size: 40px; --dmwl-bg: var(--sf); --dmwl-ink: var(--mu); --dmwl-line: var(--ln); --dmwl-shadow: none; --dmwl-radius: var(--r); --dmbis-height: 44px; --dmbis-radius: var(--r); --dmbis-bw: 1.5px; --dmbis-bg: var(--sf); --dmbis-ink: var(--d); --dmbis-line: var(--ln); --dmbis-accent: var(--p); --dmbis-on-accent: #fff; }
.dmhm-engage { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 10px; }
.dmhm-engage > * { flex: 1 1 auto; }
.dmhm-engage .dmwl-btn, .dmhm-engage .dmbis-btn { min-width: 0; padding-inline: 14px; }
.tp-relw { position: relative; min-width: 0; }
.tp-relw > .tp-rel { display: block; height: 100%; }
.tp-rel__fav { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 3; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .25s; }
.tp-rel__fav .dmwl-btn { --dmwl-size: 36px; box-shadow: 0 4px 14px -4px rgba(6, 6, 28, .25); }
.tp-relw:hover .tp-rel__fav, .tp-relw:focus-within .tp-rel__fav, .tp-rel__fav:has(.is-active) { opacity: 1; transform: none; }
.tp-relw:hover > .tp-rel { border-color: var(--p); transform: translateY(-3px); }
@media (hover: none) { .tp-rel__fav { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tp-rel__fav { transition: none; } }
/* the wishlist button under the buy button is a quiet text link, not a second button */
.dmhm-engage .dmwl-btn { flex: 0 0 auto; min-width: 0; height: auto; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.dmhm-engage .dmwl-btn:hover, .dmhm-engage .dmwl-btn:focus-visible { text-decoration-color: currentColor; }
.dmhm-engage .dmwl-btn .dmwl-icon { display: none; }
