/* AVA: нова продуктова страница (12.11.2026) — зарежда се от шаблона на продукта. html.avp-d = десктоп шаблон, html.avp-m = мобилен. */
:root{--avp-ink:#16150F;--avp-ink2:#4A4740;--avp-muted:#6B6B6B;--avp-line:#E3E0D8;--avp-line2:#F0EEE8;--avp-raised:#F7F5F0;--avp-gold:#C89633;--avp-gold-ink:#8A6420;--avp-ok:#1A7F37;--avp-ease:cubic-bezier(.4,0,.2,1)}

/* общи части */
.avp-trust{list-style:none;margin:14px 0 0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.avp-trust li{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:6px;font-weight:600;font-size:12.5px;line-height:1.25;color:var(--avp-ink2);background:var(--avp-raised);border:1px solid var(--avp-line);border-radius:10px;padding:8px 10px;text-align:left}
.avp-trust li:before{content:"";flex:0 0 16px;height:16px;background:url(https://www.ava-lighting.com/resources/images/check.svg) center/contain no-repeat}
.ava-var.avp-ph{width:56px!important;height:56px!important;border-radius:10px!important;background:#fff!important;border:1px solid var(--avp-line)!important;padding:3px!important;overflow:hidden;transition:border-color .2s var(--avp-ease),transform .2s var(--avp-ease)}
.ava-var.avp-ph:hover{border-color:var(--avp-gold)!important;transform:translateY(-1px)}
.ava-var.avp-ph.on{border:2px solid var(--avp-gold)!important}
.ava-var.avp-ph img{width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;display:block!important;border-radius:6px}

/* ---------- компютър ---------- */
html.avp-d .avp-pdp{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(380px,.88fr);gap:56px;align-items:start;margin:6px 0 44px}
html.avp-d .avp-gal{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;position:sticky;top:72px}
html.avp-d .avp-gal--one{grid-template-columns:minmax(0,1fr)}
html.avp-d .avp-rail{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow-y:auto;scrollbar-width:thin;padding:2px}
html.avp-d .avp-th{width:72px;height:72px;flex:0 0 72px;padding:4px;border:1px solid var(--avp-line);border-radius:12px;background:#fff;cursor:pointer;transition:border-color .2s var(--avp-ease)}
html.avp-d .avp-th:hover{border-color:var(--avp-gold)}
html.avp-d .avp-th.on{border:2px solid var(--avp-gold);padding:3px}
html.avp-d .avp-th:focus-visible,html.avp-d .ava-var:focus-visible{outline:3px solid rgba(200,150,51,.45);outline-offset:2px}
html.avp-d .avp-th img{width:100%!important;height:100%!important;object-fit:contain;display:block!important;margin:0!important;border-radius:8px}
html.avp-d .avp-stage{background:#fff;border:1px solid var(--avp-line);border-radius:18px;box-shadow:0 4px 24px rgba(0,0,0,.06);aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;padding:32px;position:relative;overflow:hidden}
html.avp-d .avp-stage>div{position:static!important;width:100%;height:100%!important;display:flex;align-items:center;justify-content:center}
html.avp-d .avp-stage #main_image{display:flex;width:100%;height:100%;align-items:center;justify-content:center;cursor:zoom-in}
html.avp-d .avp-stage #main_image,html.avp-d .avp-stage>div{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
html.avp-d .avp-stage .prod-img-big{display:block!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;border:0!important;margin:0!important;transition:transform .3s var(--avp-ease)}
html.avp-d .avp-stage #main_image:hover .prod-img-big{transform:scale(1.03)}
html.avp-d .avp-stage .promo.ava-tag{position:absolute;top:18px;left:18px;z-index:2}
html.avp-d .avp-stage .wishlist{position:absolute;top:16px;right:16px;z-index:2}

html.avp-d .avp-side{min-width:0}
html.avp-d .avp-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 12px}
html.avp-d .avp-brand img{height:22px!important;width:auto!important;float:none!important;display:block!important;margin:0!important}
html.avp-d .avp-ref{font-size:13px;color:var(--avp-muted);letter-spacing:.02em}
html.avp-d .avp-ref #ref{font-weight:700;color:var(--avp-gold-ink);font-size:13px}
html.avp-d .avp-side h1{font-size:27px;line-height:1.2;margin:0 0 14px;color:var(--avp-ink);text-wrap:balance}
html.avp-d .avp-chips{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
html.avp-d .avp-chips li{display:flex;align-items:baseline;gap:6px;background:#fff;border:1px solid var(--avp-line);border-radius:999px;padding:5px 12px;min-width:0}
html.avp-d .avp-chips span{font-size:12.5px;font-weight:500;color:var(--avp-muted)}
html.avp-d .avp-chips b{font-size:13px;font-weight:700;color:var(--avp-ink)}

html.avp-d .avp-side .price-bgr{width:100%!important;box-sizing:border-box;background:#fff!important;border:1px solid var(--avp-line);border-radius:18px;box-shadow:0 4px 24px rgba(0,0,0,.06);padding:18px 22px!important;text-align:left!important;margin:0!important}
html.avp-d .avp-side .price-bgr>div{padding:0!important;margin:0!important}
html.avp-d .avp-side .ava-kupi__cena{justify-content:flex-start!important;align-items:baseline!important;gap:12px}
html.avp-d .avp-side .ava-kupi__cena .price_value{font-variant-numeric:tabular-nums}
html.avp-d .avp-dds{font-size:12px;color:var(--avp-muted);font-weight:600;align-self:baseline}
html.avp-d .avp-save{display:table;margin:8px 0 0;font-size:13px;font-weight:700;color:var(--avp-ok);background:#E6F3EB;border-radius:999px;padding:3px 10px}
html.avp-d .avp-side .ava-nal{justify-content:flex-start!important;margin-top:14px}
html.avp-d .avp-side .price_info{text-align:left!important;font-size:12.5px;color:var(--avp-muted);margin-top:8px}
html.avp-d .avp-side .price-bgr table{width:100%!important;margin:0}
html.avp-d .avp-side .price-bgr td{padding:0!important;text-align:left}
html.avp-d .avp-side .ava-buyrow{display:flex!important;gap:12px;align-items:stretch;margin-top:16px;width:100%}
html.avp-d .avp-side .ava-buyrow .ava-buy{flex:1 1 auto;min-height:54px;justify-content:center;font-size:15px}
html.avp-d .avp-side .price-bgr>table:last-of-type{display:none}
html.avp-d .avp-side .ava-varianti{margin:20px 0 0;align-items:center;gap:8px}
html.avp-d .avp-side .ava-varianti__t{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--avp-muted);flex:0 0 100%;margin:0 0 2px}
html.avp-d .avp-side .avp-trust{margin-top:18px}
html.avp-d .avp-help{font-size:13.5px;color:var(--avp-ink2);margin:14px 0 0;line-height:1.5}
html.avp-d .avp-help a{color:var(--avp-gold-ink);font-weight:700;text-decoration:none;white-space:nowrap}
html.avp-d .avp-help a:hover{text-decoration:underline}

html.avp-d .avp-det{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start;margin:0 0 36px}
html.avp-d .avp-det--one{grid-template-columns:minmax(0,820px)}
html.avp-d .avp-card{background:#fff;border:1px solid var(--avp-line);border-radius:18px;padding:26px 28px;min-width:0}
html.avp-d .avp-card h2{font-size:22px;line-height:1.2;margin:0 0 14px;color:var(--avp-ink)}
html.avp-d .avp-card .gray_16{padding:0!important;font-size:15.5px;line-height:1.65;color:var(--avp-ink2);text-align:left!important}
html.avp-d .avp-card .container-fluid{padding:0!important}
html.avp-d .avp-card table{width:100%;margin:0;border:0}
html.avp-d .avp-card table td{padding:10px 12px;border:0;border-bottom:1px solid var(--avp-line2);font-size:14.5px;vertical-align:top;background:transparent!important;box-shadow:none!important}
html.avp-d .avp-card table tr:last-child td{border-bottom:0}
html.avp-d .avp-card table td:first-child{color:var(--avp-muted);width:42%;padding-left:0}
html.avp-d .avp-card table td:last-child{font-weight:600;color:var(--avp-ink);padding-right:0}
html.avp-d .avp-card .tab-pane{display:block!important;opacity:1!important}
@media (max-width:1100px){html.avp-d .avp-pdp{gap:32px}html.avp-d .avp-det{grid-template-columns:minmax(0,1fr)}}
@media (max-width:860px){html.avp-d .avp-pdp{grid-template-columns:minmax(0,1fr);gap:22px}html.avp-d .avp-gal{position:static;grid-template-columns:minmax(0,1fr)}html.avp-d .avp-rail{flex-direction:row;order:2;max-height:none;overflow-x:auto}html.avp-d .avp-stage{padding:18px}html.avp-d .avp-side h1{font-size:22px}}

/* ---------- телефон ---------- */
html.avp-m .gray_15{white-space:nowrap;overflow-x:auto;font-size:12.5px;scrollbar-width:none;padding-bottom:2px}
html.avp-m .gray_15::-webkit-scrollbar{display:none}
html.avp-m .avp-crumbrow{display:none}
html.avp-m #main>.container>table>tbody>tr:first-child>td>br{display:none}
html.avp-m #main>.container>table>tbody>tr:first-child>td>div{padding:0 0 8px!important}
html.avp-m .avp-info>br,html.avp-m .avp-info>img[src*="line.png"],html.avp-m .avp-info>strong.gold_15{display:none}
html.avp-m .avp-refrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
html.avp-m .avp-refrow img{height:16px!important;width:auto!important;float:none!important;display:block!important;margin:0!important}
html.avp-m h1.gray_18{font-size:20px;line-height:1.25;margin:4px 0 0}
html.avp-m .price-bgr{margin-top:10px!important}
html.avp-m .avp-after{margin:16px 0 0;text-align:left}
html.avp-m .avp-after .ava-varianti{margin:0 0 12px}
html.avp-m .avp-trust li{font-size:11.5px;padding:7px 8px;gap:5px}
html.avp-m .prod-img-big{max-height:270px;width:auto!important;max-width:100%;object-fit:contain;margin:0 auto!important;display:block!important}
html.avp-m .price-bgr>table:last-of-type{display:none}
.avp-bar{position:fixed;left:0;right:0;bottom:0;z-index:900;background:#131210;color:#fff;display:flex;align-items:center;gap:10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px rgba(0,0,0,.3);transform:translateY(110%);transition:transform .25s var(--avp-ease)}
.avp-bar.on{transform:none}
.avp-bar img{width:44px!important;height:44px!important;object-fit:contain;background:#fff;border-radius:8px;display:block!important;margin:0!important;flex:0 0 44px}
.avp-bar__t{flex:1 1 auto;min-width:0}
.avp-bar__n{font-weight:600;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#CFC8B8}
.avp-bar__p{font-weight:900;font-size:17px;line-height:1.2;color:#E6CE84;font-variant-numeric:tabular-nums}
.avp-bar__p s{font-weight:600;font-size:12px;color:#8F897C;margin-left:6px}
.avp-bar button{flex:0 0 auto;border:0;border-radius:8px;background:#C89633;color:#131210;font-weight:800;font-size:14px;padding:0 16px;min-height:44px}
html.avp-baron .cookie_banner{bottom:70px!important}
@media (prefers-reduced-motion:reduce){.avp-bar,.ava-var.avp-ph,html.avp-d .avp-stage .prod-img-big{transition:none}}
