/* Добавки к родной теме YOOtheme Nano: то, что раньше делали её скрипты (MooTools/jQuery). */

/* выпадающее меню (было dropdownmenu.js) */
#menu .menu-dropdown li.level1 { position: relative; }
#menu .menu-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 100; visibility: visible; }
#menu .menu-dropdown li.level1:hover > .dropdown,
#menu .menu-dropdown li.level1:focus-within > .dropdown { display: block; }

/* слайдер на главной (был Widgetkit slideshow) */
.wk-slideshow { position: relative; }
.wk-slideshow ul.slides { position: relative; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.wk-slideshow ul.slides > li { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity .6s ease; display: block !important; visibility: visible !important; }
.wk-slideshow ul.slides > li.pa-on { position: relative; opacity: 1; z-index: 1; }
.wk-slideshow ul.slides img { display: block; width: 100%; height: auto; }
.pa-dots { text-align: center; margin: 8px 0 0; padding: 0; list-style: none; }
.pa-dots li { display: inline-block; width: 12px; height: 12px; margin: 0 3px; border-radius: 50%; border: 1px solid #aaa; background: #eee; cursor: pointer; }
.pa-dots li.pa-on { background: #888; }

/* аккордеон бокового меню (был accordionmenu.js): показываем раскрытым */
.menu-accordion ul.level2, .menu-sidebar ul.level2 { display: block !important; height: auto !important; }

/* подвал: вместо PHP-формы обратного звонка */
.pa-callback p { margin: 0 0 8px; }
.pa-btn { display: inline-block; padding: 6px 14px; border-radius: 4px; background: #0a5ea8; color: #fff !important; text-decoration: none; }
.pa-btn-outline { background: #fff; color: #0a5ea8 !important; border: 1px solid #0a5ea8; }
.pa-privacy { clear: both; text-align: center; font-size: 12px; padding: 10px 0; }

/* фильтр каталога */
.pa-filter-count { font-weight: bold; margin: 8px 0; }

/* страница поиска */
.pa-search input { width: 60%; padding: 6px 8px; font-size: 16px; }
.search-results li { margin-bottom: 12px; }
.search-results p { margin: 2px 0 0; color: #777; font-size: 13px; }

/* согласие на cookie и просмотр картинок */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 12px 16px; z-index: 1000; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 360px; }
.consent button { padding: 6px 14px; border: 1px solid #0a5ea8; border-radius: 4px; background: #0a5ea8; color: #fff; cursor: pointer; }
.consent button.pa-btn-outline { background: #fff; color: #0a5ea8; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 1001; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 90vh; }
.lightbox button { position: absolute; top: 12px; right: 16px; font-size: 28px; background: none; border: 0; color: #fff; cursor: pointer; }
