/*
Theme Name: Shopire Child
Template: shopire
Version: 1.0.0
*/

/* Снимаем обрезку высоты (440px) с первой картинки — тема её навязывает */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(1) {
    max-height: none !important;
}

/* Убираем иконку лупы */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Отключаем кликабельность главного изображения (убираем ссылку) */
.woocommerce div.product div.images .woocommerce-product-gallery__image a {
    pointer-events: none !important;
    cursor: default !important;
}

/* --- Уменьшаем ширину бокового меню WCFM --- */
#wcfm_menu {
    width: 160px !important;
}
#wcfm-main-contentainer,
#wcfm-main-content {
    margin-left: 160px !important;
}

/* --- Агрессивное переопределение ширины WCFM-меню --- */
html body #wcfm_menu,
html body div#wcfm_menu,
body #wcfm_menu,
#wcfm-main-contentainer #wcfm_menu {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    flex: 0 0 160px !important;
    box-sizing: border-box !important;
}

html body #wcfm-main-contentainer,
html body #wcfm-main-content,
body #wcfm-main-contentainer {
    margin-left: 160px !important;
}

html body #wcfm_menu .wcfm_menu_items a.wcfm_menu_item {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
}

html body #wcfm_menu .wcfm_menu_items a.wcfm_menu_item span {
    margin-right: 8px !important;
}

/* --- Убираем правый отступ только у галереи --- */
html body .wm-wrap {
    padding-right: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

html body #wcfm-main-contentainer {
    padding-right: 0 !important;
}

/* --- WCFM-страницы: растягиваем контейнер на всю ширину --- */
body.wcfm-dashboard-page .wf-container,
body.wcfm-dashboard-page .wf-container-fluid {
    max-width: none !important;
    width: 100% !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

/* Правый отступ у галереи не нужен (уже внутри .wf-container) */
body.wcfm-dashboard-page .wm-wrap {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* --- WCFM: ограничиваем макс. ширину и центрируем при zoom --- */
body.wcfm-dashboard-page .wf-container,
body.wcfm-dashboard-page .wf-container-fluid {
    max-width: 1920px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* --- WCFM: фикс горизонтального переполнения при zoom --- */
body.wcfm-dashboard-page #wcfm-main-contentainer,
body.wcfm-dashboard-page #wcfm-main-content,
body.wcfm-dashboard-page #wcfm-wrapper,
body.wcfm-dashboard-page .wcfm-wrapper {
    width: auto !important;
    max-width: none !important;
    margin-left: 160px !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.wcfm-dashboard-page .wf-container,
body.wcfm-dashboard-page .wf-container-fluid {
    width: auto !important;
    max-width: 1920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

body.wcfm-dashboard-page #wcfm-main-contentainer .wm-grid {
    width: 100% !important;
    max-width: 100% !important;
}
