/*
Theme Name: Woodmart Child
Theme URI: Web ;)
Description: Child theme for Woodmart
Author: Autonomous Nomad
Author URI: Web ;)
Template: woodmart
Version: 1.0.0
Text Domain: woodmart-child
*/



.home .wd-content-layout {
	padding-block: 0px;
    padding-bottom: 40px;
}



/* Search Filter */
#search-filter-input-combobox-listbox-0 {
    background-color: white;
    width: fit-content !important;
    z-index: 1000;
}
#search-filter-input-combobox-listbox-1 {
    background-color: white;
    width: fit-content !important;
    z-index: 1000;
}
.search-filter-component-combobox-base.search-filter-component-combobox.search-filter-field__input.search-filter-component-combobox--mode-single.search-filter-component-combobox--search-disabled {
    width: 300px!important;
}
@media (max-width: 768px) {
    .search-filter-component-combobox-base.search-filter-component-combobox.search-filter-field__input.search-filter-component-combobox--mode-single.search-filter-component-combobox--search-disabled {
        width: 300px!important;
    }
}


/* Display taxonomy */
.taxonomy-container {
    margin: 1rem 0 1rem 0;
}
.taxonomy-list {
    display: flex; 
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    justify-content: normal;
    align-items: baseline;
    gap: 10px;
    max-width: 100%;
}
.taxonomy-list li {
    margin-bottom: 0; 
    border: 1px solid #ededed;
    padding: 0.5rem;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}
.taxonomy-list li:hover {
    background-color: #e6e6e6;
}
.load-more {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}
.load-more:hover {
    background-color: #005d87;
}





/* Sitemap */
.woodmart-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.sitemap-section {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
}

.sitemap-title {
    color: var(--wd-primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--wd-primary-color);
    padding-bottom: 10px;
}

.sitemap-subtitle {
    color: #333;
    font-size: 16px;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.sitemap-posts {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sitemap-posts li {
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.sitemap-posts li:last-child {
    border-bottom: none;
}

.sitemap-posts a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.sitemap-posts a:hover {
    color: var(--wd-primary-color);
}

@media (max-width: 768px) {
    .woodmart-sitemap {
        grid-template-columns: 1fr;
    }
}
/**/




.phone_in_header a {
	font-size: 1.5rem;
	font-weight: bolder;
    color: #600018;
}


.contact_social_header {
	gap: 3px;
    display: flex;
    align-items: center;
}

.contact_social_header .telegram svg {
	font-size: 1.3rem;
	color: #3182CE;
}
.contact_social_header .whatsapp svg {
	font-size: 1.3rem;
	color: #1cb050;
}


.mpp-box textarea {
	min-height: fit-content;
}


.footer_info_contact {
	font-size: 1.1rem;
	color: #303030;
    margin: 0 0 15px 0;
}
.footer_info_contact a {
	font-size: 1.1rem;
	color: #a59620;
	font-weight: bolder;
}
.footer_info_contact a:hover {
	font-size: 1.1rem;
	color: #c6b427;
	font-weight: bolder;
}


.filter-widget h5 {
	font-size: 1.1rem;
	color: #343434;
	font-weight: bold;
}



ul.wd-nav-product-cat {
    background-color: #00000080;
    padding: 0.5rem;
}



.link_to_page a {
	color: #B8941F;
}
.link_to_page a:hover {
	color: #D4AF37;
}




/**/
.principles-section {
    max-width: auto;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principles-header {
    background: linear-gradient(135deg, #2c3e50, #52B788);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.principles-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.principles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background-color: #e0e0e0;
}

.principle-item {
    background-color: white;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #52B788;
}

.principle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.principle-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background-color: #52B788;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(45, 230, 88, 0.4);
}

.principle-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    margin-left: 20px;
    margin-top: 10px;
    text-transform: uppercase;
}

.principle-desc {
    margin-left: 20px;
    font-size: 0.95rem;
    color: #555;
}

@media (max-width: 600px) {

    .principles-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 3px;
    }

    .principles-header h2 {
        font-size: 2rem;
    }
    
    .principle-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/**/






/**/
.advantages-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498DB;
    margin: 20px auto 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
}

.advantage-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.icon-wrapper {
    font-size: 2.2rem;
    color: #3498DB;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
}

.advantage-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
}

.advantage-text strong {
    text-transform: uppercase;
}


@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }
}
/**/










/**/
.process-section {
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #5F3772;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #5F3772;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2rem 2rem 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -5px;
    left: -10px;
    width: 50px;
    height: 50px;
    background: #5F3772;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
}

.step-title {
    color: #5F3772;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    text-transform: uppercase;
}

.step-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #5F3772;
    border-radius: 50%;
}

.step-description {
    color: #5F3772;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    margin-left: 0.2rem;
}

.step-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #8a4ca7, #5F3772);
}

@media (max-width: 600px) {
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
}
/**/






.wd-page-nav-btn .wd-label {
    display: none !important;
  }

  .wd-social-icons.wd-style-colored.wd-size-default.social-share.wd-shape-circle {
	margin: 0 auto;
}


.cat-design-default .wd-entities-title {
	background-color: #ffffffab;
	padding: 0.1rem;
    width: 100%;
}
.cat-design-default .wd-cat-count  {
	background-color: #ffffffab;
	padding: 0.1rem;
    width: 100%;
}



.link_add_product_to_cart button:hover {
	background-color: #600018!important;
	color: #fff!important;
}



/**/
/* Модальное окно */
/* Модальное окно */
.mpp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Центрирование контента */
.mpp-modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-color: #FFD700 #f1f1f1; /* Для Firefox */
    scrollbar-width: auto; /* Для Firefox */
}

/* Кнопка закрытия */
.mpp-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 33px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
    z-index: 10;
}

.mpp-close:hover {
    color: #f00;
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .mpp-modal-content {
        padding: 20px 15px;
        max-height: 90vh;
        top: 0;
        transform: none;
        margin: 10% auto;
        overflow-x: hidden;
    }
    
    .mpp-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* Форма внутри попапа */
.mpp-modal-content .wpcf7-form {
    padding: 10px;
}

/* Элементы формы */
.mpp-modal-content .wpcf7-form-control {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Прячем сообщения об успешной отправке */
.wpcf7-form.sent .wpcf7-response-output {
    display: none !important;
}

/* Стили для WebKit (Chrome, Safari) */
.mpp-modal-content::-webkit-scrollbar {
    width: 14px;
}

.mpp-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mpp-modal-content::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 7px;
    border: 2px solid #f1f1f1;
    position: relative;
}

.mpp-modal-content::-webkit-scrollbar-thumb::before,
.mpp-modal-content::-webkit-scrollbar-thumb::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.mpp-modal-content::-webkit-scrollbar-thumb::before {
    top: 5px;
    border-bottom: 5px solid #000; /* Стрелка вверх */
}

.mpp-modal-content::-webkit-scrollbar-thumb::after {
    bottom: 5px;
    border-top: 5px solid #000; /* Стрелка вниз */
}

/* Центральная стрелка */
.mpp-modal-content::-webkit-scrollbar-thumb {
    background-image: linear-gradient(transparent, transparent 45%, #000 50%, transparent 55%, transparent);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
}
/**/







textarea[name="message-ocenka"] {
    height: 100px; 
    max-height: 200px;
    min-height: 100px;
    resize: vertical;
  }

  textarea[name="message-zapis"] {
    height: 100px; 
    max-height: 200px;
    min-height: 100px;
    resize: vertical;
  }

.wpcf7-form-control::placeholder {
    color: #969696;
}













/* Для мобильных устройств (ширина экрана до 767px) */
@media (max-width: 767px) {
    .wd-page-nav-btn .wd-entities-title {
        display: block;
    }
    .cat-design-default .wd-entities-title {
        font-size: 1.1rem;
    }
    .cat-design-default .wd-cat-count  {
        font-size: 1.1rem;
    }
    .woocommerce-ordering.wd-ordering-mb-icon select option {
        color: #000;
    }
    .wd-active-filters {
        flex-wrap: wrap;
    }
}


/* Для планшетов (ширина экрана от 768px до 1024px) */
@media (min-width: 768px) and (max-width: 1025px) {
    .wd-page-nav-btn .wd-entities-title {
        display: block;
    }
    .cat-design-default .wd-entities-title {
        font-size: 1.1rem;
    }
    .cat-design-default .wd-cat-count  {
        font-size: 1.1rem;
    }
    .woocommerce-ordering.wd-ordering-mb-icon select option {
        color: #000;
    }
    .wd-active-filters {
        flex-wrap: wrap;
    }
}



