/* Single-product landing pages: strictly scoped inside .lp so the real website header,
   footer, mini-cart, and Tailwind styles remain untouched. Supports Light & Dark view modes. */

html:has(.lp) { scroll-behavior: smooth; scroll-padding-top: 6rem; }

.lp {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: clip;
    position: relative;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp :where(h1, h2, h3, p, ul, ol, dl, dt, dd, figure, blockquote) { margin: 0; padding: 0; }
.lp img, .lp video, .lp svg { max-width: 100%; display: block; }
/* :where() keeps these weaker than the button classes, so button labels stay readable */
.lp :where(a) { color: inherit; }
.lp :where(button, input) { font: inherit; color: inherit; }
.lp [hidden] { display: none !important; }
.lp :focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; }

.lp h1, .lp h2, .lp h3 {
    font-family: var(--lp-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
}
.lp h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.lp h2 { font-size: clamp(1.6rem, 3.2vw, 2.45rem); }
.lp h3 { font-size: 1.12rem; }
[dir="rtl"] .lp h1, [dir="rtl"] .lp h2, [dir="rtl"] .lp h3 { letter-spacing: 0; line-height: 1.35; }

.lp-wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 640px) { .lp-wrap { width: min(1200px, 100% - 3rem); } }
.lp-narrow { width: min(820px, 100% - 2rem); }

/* ---------- Sections & per-section admin colours ---------- */
.lp-section {
    background: var(--lp-sec-bg, var(--lp-bg));
    color: var(--lp-sec-text, var(--lp-text));
    padding-block: clamp(3rem, 6.5vw, 5.2rem);
    position: relative;
}
.lp-flow > .lp-section:nth-of-type(even) { background: var(--lp-sec-bg, var(--lp-bg-alt)); }
.lp-hero {
    background: var(--lp-sec-bg, var(--lp-bg));
    color: var(--lp-sec-text, var(--lp-text));
    position: relative;
    overflow: hidden;
}
.lp .has-text h1, .lp .has-text h2, .lp .has-text h3, .lp .has-text p,
.lp .has-text li, .lp .has-text dt, .lp .has-text dd, .lp .has-text summary,
.lp .has-text strong, .lp .has-text .lp-eyebrow, .lp .has-text .lp-note { color: var(--lp-sec-text) !important; }

.lp-head { margin-block-end: 2.2rem; text-align: center; display: grid; gap: .65rem; justify-items: center; }
.lp-head p { color: var(--lp-muted); max-width: 60ch; }
.lp-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-accent); }
[dir="rtl"] .lp-eyebrow { letter-spacing: 0; font-size: .86rem; }
.lp-lead { font-size: clamp(.98rem, 1.35vw, 1.1rem); color: var(--lp-muted); max-width: 56ch; }
.lp-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .76rem; font-weight: 800; border-radius: var(--lp-btn-radius);
    padding: .34rem .9rem; background: var(--lp-accent); color: var(--lp-accent-text);
}

/* ---------- Buttons, price, rating, variant options ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3.1rem; padding: .68rem 1.7rem;
    border: 1.5px solid transparent; border-radius: var(--lp-btn-radius);
    font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn:active { transform: translateY(0); }
.lp-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .lp-btn svg { transform: scaleX(-1); }
.lp-btn-buy { background: var(--lp-button-bg); color: var(--lp-button-text); box-shadow: 0 14px 28px -16px var(--lp-button-bg); }
.lp-btn-buy:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lp-btn-ghost { border-color: var(--lp-border); background: transparent; color: inherit; }
.lp-btn-wa { background: #1da851; color: #ffffff; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.lp-section-cta { margin-block-start: 2.2rem; display: flex; justify-content: center; }
.lp-note { display: block; font-size: .8rem; color: var(--lp-muted); }

.lp-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.lp-price b { font-family: var(--lp-heading); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; }
.lp-price b small { font-size: .56em; font-weight: 700; }
.lp-price s { color: var(--lp-muted); font-size: .95rem; }
.lp-price em {
    font-style: normal; font-size: .74rem; font-weight: 800;
    background: var(--lp-accent-2); color: #ffffff;
    border-radius: 999px; padding: .15rem .62rem; direction: ltr; unicode-bidi: isolate;
}

.lp-rating { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--lp-muted); }
.lp-stars {
    --p: calc(var(--r) / 5 * 100%);
    letter-spacing: 2px;
    background: linear-gradient(90deg, #f5a623 var(--p), rgba(140, 140, 150, .4) var(--p));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
[dir="rtl"] .lp-stars { background-image: linear-gradient(270deg, #f5a623 var(--p), rgba(140, 140, 150, .4) var(--p)); }

.lp-options { display: grid; gap: .75rem; width: 100%; }
.lp-option-name { display: block; font-size: .76rem; font-weight: 800; margin-block-end: .35rem; color: var(--lp-muted); }
.lp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .42rem .88rem; border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-btn-radius); background: transparent;
    cursor: pointer; font-size: .84rem; font-weight: 600;
}
.lp-chip i { width: .9rem; height: .9rem; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .45); }
.lp-chip.is-on { border-color: var(--lp-accent); box-shadow: inset 0 0 0 1px var(--lp-accent); }

.lp-icon { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lp-ico {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
    border-radius: min(var(--lp-radius), 12px);
    background: color-mix(in srgb, var(--lp-accent) 14%, transparent);
    color: var(--lp-accent); flex: none;
}

/* ---------- 2. Trust Badges ---------- */
.lp-trust { padding-block: 1.8rem; border-block: 1px solid var(--lp-border); }
.lp-trust-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-trust-item {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: .9rem 1rem; border-radius: var(--lp-radius);
    background: var(--lp-surface); border: 1px solid var(--lp-border);
}
.lp-trust-item strong { display: block; line-height: 1.3; font-size: .94rem; }
.lp-trust-item div > span { display: block; font-size: .81rem; color: var(--lp-muted); margin-block-start: .15rem; }

/* ---------- 3. Key Benefits ---------- */
.lp-benefit-grid { --cols: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.15rem; }
.lp-benefit-grid > .lp-benefit { flex: 0 0 calc((100% - (var(--cols) - 1) * 1.15rem) / var(--cols)); min-width: 0; }
@media (min-width: 600px) { .lp-benefit-grid { --cols: 2; } }
@media (min-width: 960px) {
    .lp-benefit-grid { --cols: 3; }
    .lp-benefit-grid:is([data-count="4"], [data-count="8"]) { --cols: 4; }
    .lp-benefit-grid[data-count="2"] { --cols: 2; }
}
.lp-benefit {
    background: var(--lp-surface); color: var(--lp-text);
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    padding: 1.6rem; display: grid; gap: .7rem; align-content: start; overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.lp-benefit:hover { border-color: var(--lp-accent); transform: translateY(-2px); }
.lp-benefit p { color: var(--lp-muted); font-size: .92rem; }
.lp-benefit > img { width: calc(100% + 3.2rem); max-width: none; margin: -1.6rem -1.6rem .35rem; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-benefit-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.lp-num { font-family: var(--lp-heading); font-weight: 800; font-size: .8rem; letter-spacing: .08em; color: var(--lp-muted); }
.lp .has-text .lp-benefit h3 { color: var(--lp-text) !important; }
.lp .has-text .lp-benefit p { color: var(--lp-muted) !important; }

/* ---------- 4. Product Showcase ---------- */
.lp-video-box { border-radius: var(--lp-radius); overflow: hidden; background: #000; max-width: 960px; margin-inline: auto; margin-block-end: 1.6rem; border: 1px solid var(--lp-border); }
.lp-video-box video { width: 100%; aspect-ratio: 16 / 9; }
.lp-gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lp-gallery-grid button {
    display: block; width: 100%; border: 1px solid var(--lp-border); padding: 0;
    background: var(--lp-surface); border-radius: var(--lp-radius); overflow: hidden; cursor: zoom-in;
}
.lp-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .45s ease; }
.lp-gallery-grid button:hover img { transform: scale(1.04); }
.lp-gallery-grid figcaption { font-size: .84rem; color: var(--lp-muted); margin-block-start: .45rem; text-align: center; }
.lp-zoom { margin: auto; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lp-zoom::backdrop { background: rgba(0, 0, 0, .85); }
.lp-zoom img { max-height: 86vh; border-radius: 12px; }
.lp-zoom button {
    position: absolute; top: -.8rem; inset-inline-end: -.4rem;
    width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0;
    background: #fff; color: #111; font-size: 1.4rem; cursor: pointer;
}

/* ---------- 5. Product Details ---------- */
.lp-details-grid { display: grid; gap: 2rem; align-items: start; }
.lp-details-side { display: grid; gap: 1.1rem; justify-items: start; }
.lp-details-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-radius); border: 1px solid var(--lp-border); }
.lp-details-text { color: var(--lp-muted); font-size: .97rem; line-height: 1.72; }
.lp-spec-list { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; }
.lp-spec-list > div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 1rem; padding: .95rem 1.2rem; border-block-end: 1px solid var(--lp-border); }
.lp-spec-list > div:last-child { border-block-end: 0; }
.lp-spec-list dt { color: var(--lp-muted); font-size: .9rem; font-weight: 600; }
.lp-spec-list dd { font-weight: 700; }
@media (min-width: 860px) { .lp-details-grid { grid-template-columns: .92fr 1.08fr; } }

/* ---------- 6. How It Works ---------- */
.lp-steps-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.lp-step-card {
    background: var(--lp-surface); color: var(--lp-text);
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    padding: 1.65rem; display: grid; gap: .75rem; align-content: start;
}
.lp-step-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.lp-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .25rem .7rem; border-radius: 999px;
    font-family: var(--lp-heading); font-weight: 800; font-size: .78rem;
    background: color-mix(in srgb, var(--lp-accent) 14%, transparent); color: var(--lp-accent);
}
.lp-step-card p { color: var(--lp-muted); font-size: .92rem; }
.lp .has-text .lp-step-card h3 { color: var(--lp-text) !important; }
.lp .has-text .lp-step-card p { color: var(--lp-muted) !important; }

/* ---------- 7. Why Choose Us ---------- */
.lp-split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-why-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-radius); border: 1px solid var(--lp-border); }
.lp-why-text { display: grid; gap: 1.2rem; justify-items: start; }
.lp-why-text .lp-head { margin: 0; text-align: start; justify-items: start; }
.lp-why-text ul { list-style: none; display: grid; gap: .7rem; }
.lp-why-text li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; font-size: .96rem; }
.lp-why-text li .lp-icon { color: var(--lp-accent); width: 1.2rem; height: 1.2rem; margin-block-start: .22rem; }
@media (min-width: 860px) { .lp-split { grid-template-columns: 1fr 1.05fr; } }

/* ---------- 8. Customer Reviews & 9. FAQ ---------- */
.lp-reviews .lp-rating { justify-content: center; margin-block: -1.3rem 2rem; }
.lp-review-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-review-grid blockquote {
    background: var(--lp-surface); color: var(--lp-text);
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    padding: 1.55rem; display: grid; gap: .75rem; align-content: start;
}
.lp-review-grid cite { font-style: normal; font-weight: 800; font-size: .88rem; }
.lp .has-text .lp-review-grid p { color: var(--lp-text) !important; }

.lp-faq-list { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding-inline: 1.4rem; }
.lp-faq details { border-block-end: 1px solid var(--lp-border); }
.lp-faq details:last-child { border-block-end: 0; }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-weight: 700; font-size: 1.02rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lp-accent); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { color: var(--lp-muted); padding-block-end: 1.15rem; font-size: .94rem; }

/* ---------- 10. Final CTA & Sticky Bar ---------- */
.lp-offer-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
    margin-block-end: 1.5rem; padding: 1rem 1.4rem;
    background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
}
.lp-countdown { display: flex; gap: .55rem; direction: ltr; }
.lp-countdown span {
    display: grid; text-align: center; min-width: 4rem; padding: .5rem .4rem;
    border-radius: min(var(--lp-radius), 12px);
    background: color-mix(in srgb, var(--lp-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--lp-accent) 28%, transparent);
}
.lp-countdown b { font-family: var(--lp-heading); font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lp-countdown small { font-size: .68rem; color: var(--lp-muted); }

.lp-order-box {
    display: grid; gap: 2rem; background: var(--lp-surface); color: var(--lp-text);
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    padding: clamp(1.3rem, 4vw, 2.8rem); align-items: center;
}
.lp-order-media img { width: 100%; max-width: 450px; margin-inline: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--lp-radius); border: 1px solid var(--lp-border); }
.lp-order-form { display: grid; gap: .95rem; justify-items: start; min-width: 0; }
.lp-order-form .lp-head { margin: 0; text-align: start; justify-items: start; }
.lp .has-text .lp-order-box :is(h2, h3, p) { color: var(--lp-text) !important; }
.lp-stock { font-size: .82rem; font-weight: 800; color: #10b981; }
.lp-stock::before { content: "● "; }
.lp-stock.is-out { color: #ef4444; }
.lp-qty { display: flex; align-items: center; gap: 1rem; font-weight: 700; font-size: .9rem; }
.lp-qty-box { display: inline-flex; border: 1.5px solid var(--lp-border); border-radius: var(--lp-btn-radius); overflow: hidden; direction: ltr; }
.lp-qty-box button { width: 2.7rem; height: 2.7rem; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; }
.lp-qty-box input { width: 3.1rem; border: 0; background: transparent; text-align: center; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
.lp-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lp-order-form .lp-actions { width: 100%; }
.lp-order-form .lp-actions .lp-btn { flex: 1 1 200px; }
.lp-trust-pills { display: flex; flex-wrap: wrap; gap: .5rem; padding-block-start: .5rem; border-block-start: 1px solid var(--lp-border); width: 100%; }
.lp-trust-pills span {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .76rem; font-weight: 700; color: var(--lp-muted);
    padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--lp-border);
}
@media (min-width: 860px) { .lp-order-box { grid-template-columns: 1fr 1.05fr; } }

.lp-sticky {
    position: fixed; inset-inline: .7rem; bottom: 4.5rem; z-index: 35;
    display: flex; align-items: center; gap: .8rem;
    max-width: 760px; margin-inline: auto; padding: .55rem .75rem;
    background: var(--lp-surface); color: var(--lp-text);
    border: 1px solid var(--lp-border); border-radius: min(var(--lp-radius), 18px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
    transform: translateY(150%); visibility: hidden;
    transition: transform .3s ease, visibility .3s;
}
@media (min-width: 768px) { .lp-sticky { bottom: .85rem; } }
.lp-sticky.is-on { transform: none; visibility: visible; }
.lp-sticky img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 10px; flex: none; }
.lp-sticky-info { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.lp-sticky-info strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-sticky .lp-price b { font-size: 1.02rem; }
.lp-sticky .lp-price :is(s, em) { display: none; }
.lp-sticky .lp-btn { min-height: 2.6rem; padding: .42rem 1.1rem; flex: none; font-size: .85rem; }

.lp-draft { background: #b45309; color: #fff; text-align: center; font-size: .82rem; font-weight: 700; padding: .4rem; }
.lp-alert { background: #b91c1c; color: #fff; text-align: center; font-weight: 700; padding: .7rem 1rem; }

.lp-anim [data-lp-reveal] { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease; }
.lp-anim [data-lp-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; } }

/* ---------- Store tone: the same soft cards, 3D buttons and accent line as the shop ---------- */
.lp { --lp-lift: 0 3px 0 rgba(11, 42, 111, .06), 0 16px 28px -20px rgba(11, 42, 111, .45); }
.lp.mode-dark { --lp-lift: 0 3px 0 rgba(0, 0, 0, .25), 0 18px 32px -22px rgba(0, 0, 0, .8); }
.lp.mode-light :is(.lp-section, .lp-hero):not(.has-bg, .has-text) :is(h1, h2) { color: var(--color-brand-navy, #0b2a6f); }
.lp.mode-light .lp-price b { color: var(--color-brand-navy, #0b2a6f); }

.lp-head::after {
    content: ""; width: 3.5rem; height: 4px; border-radius: 999px;
    background: linear-gradient(90deg, var(--color-brand-navy, #0b2a6f), var(--lp-accent) 60%, var(--color-accent-yellow, #ffc629));
}
[dir="rtl"] .lp-head::after { transform: scaleX(-1); }

.lp-btn-buy {
    background: linear-gradient(180deg, color-mix(in srgb, var(--lp-button-bg) 86%, #fff), var(--lp-button-bg));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 0 color-mix(in srgb, var(--lp-button-bg) 68%, #000), 0 12px 18px -10px rgba(11, 42, 111, .65);
}
.lp-btn-wa { background: linear-gradient(180deg, #17934a, #0f7a3b); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 0 #0a5a2b; }
.lp-btn-buy:active, .lp-btn-wa:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.lp-btn-ghost:hover { border-color: var(--lp-accent); }

.lp-trust-item, .lp-benefit, .lp-step-card, .lp-review-grid blockquote, .lp-spec-list, .lp-faq-list, .lp-order-box, .lp-offer-strip { box-shadow: var(--lp-lift); }
.lp-benefit:hover { transform: translateY(-4px); }
.lp-trust { padding-block: 1.6rem; }
.lp-trust-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lp-trust-item { align-items: center; }
.lp-ico { background: linear-gradient(180deg, color-mix(in srgb, var(--lp-accent) 10%, var(--lp-surface)), color-mix(in srgb, var(--lp-accent) 20%, var(--lp-surface))); }

/* one or two pictures must not stretch across the whole screen */
.lp-gallery-grid:has(> figure:only-child) { grid-template-columns: minmax(0, 620px); justify-content: center; }
.lp-gallery-grid:has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 480px)); justify-content: center; }
.lp-gallery-grid button { box-shadow: var(--lp-lift); }

.lp-faq details[open] summary { color: var(--lp-accent); }
.lp-order-box { background: linear-gradient(160deg, var(--lp-surface) 55%, color-mix(in srgb, var(--lp-accent) 9%, var(--lp-surface))); }
.lp-order-media img { box-shadow: var(--lp-lift); }
