/*
Theme Name: Kirovmash
Theme URI: https://kirovmash.com/
Author: КИРОВМАШХОЛДИНГ
Description: Блочная тема для управляемой версии сайта КИРОВМАШХОЛДИНГ.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: kirovmash
*/

.kirovmash-cms-home .wp-site-blocks {
    display: contents;
}

/* Gutenberg's flow layout must not add gaps between donor flex children. */
.kirovmash-cms-home .page__content > * {
    margin-block-start: 0;
}

/* These donor runtime mounts are direct Gutenberg flow children. WordPress
   otherwise adds a synthetic 16px gap to each zero-height mount and makes the
   rendered document taller than the approved static homepage. */
.kirovmash-cms-home .page__wrapper > .bottom-pane,
.kirovmash-cms-home .page__wrapper > .vue-catalog-menu-adaptive,
.kirovmash-cms-home .wp-site-blocks > .vue-modals-container {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Gutenberg zeroes the last block's end margin. Keep the donor's intentional
   breathing room between the constructor and the footer. */
.kirovmash-cms-home .page__content > .kiro-constructor {
    margin-block-end: var(--m120);
}

@media (max-width: 767px) {
    .kirovmash-cms-home .page__content > .kiro-constructor {
        margin-block-end: var(--m48);
    }
}

/* The donor search result reserves its first grid column for a product image.
   Site-wide Kirovmash results have no price/image payload in the compact
   header, so their content must use the complete row. */
.search-product > .search-product__content:first-child {
    grid-column: 1 / -1;
    width: 100%;
}

.search-product__content-col:first-child {
    min-width: 0;
    width: 100%;
}

.search-product__content-col:last-child:empty {
    display: none;
}

.search-form__submit-btn.btn--orange {
    background: #df2637;
    color: #fff;
}
