/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.28
 Text Domain:  woodmart
*/

/* ================================
   Footer Compact Styles
   ================================ */

/* Центрирование логотипа и контактной информации */
.footer-logo-section {
    text-align: center;
}

.footer-logo-section .footer-logo-link {
    display: inline-block;
    margin: 0 auto 15px;
}

.footer-logo-section .footer-logo-link img {
    display: block;
    margin: 0 auto;
}

.footer-logo-section .footer-company-name {
    text-align: center;
    margin: 15px 0;
}

.footer-logo-section .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-logo-section .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    text-align: left;
}

.footer-logo-section .footer-contact-list li img {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Общие настройки для компактного футера */
.footer-container .main-footer {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.footer-container .footer-sidebar {
    --wd-gap-lg: 20px !important;
    --wd-gap-sm: 15px !important;
}

.footer-container .footer-column {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Соцсети в 2 ряда (2x2 grid) */
.footer-container .footer-socials .social-links-grid,
.footer-socials .social-links-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 15px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-container .footer-socials .social-links-grid li,
.footer-socials .social-links-grid li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.footer-container .footer-socials .social-links-grid li a,
.footer-socials .social-links-grid li a {
    display: block !important;
    text-decoration: none;
}

.footer-container .footer-socials .social-links-grid li::before,
.footer-socials .social-links-grid li::before {
    display: none !important;
}

/* Маркетплейсы в 1 ряд (horizontal flex) */
.footer-container .footer-marketplaces .marketplace-links-inline,
.footer-marketplaces .marketplace-links-inline {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px 15px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

.footer-container .footer-marketplaces .marketplace-links-inline li,
.footer-marketplaces .marketplace-links-inline li {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.footer-container .footer-marketplaces .marketplace-links-inline li a,
.footer-marketplaces .marketplace-links-inline li a {
    display: inline-block !important;
    text-decoration: none;
    white-space: nowrap !important;
}

.footer-container .footer-marketplaces .marketplace-links-inline li::before,
.footer-marketplaces .marketplace-links-inline li::before {
    display: none !important;
}

/* Уменьшаем отступы между секциями для компактности */
.footer-container .footer-section,
.footer-section {
    margin-bottom: 15px !important;
}

.footer-container .footer-section .widget-title,
.footer-section .widget-title {
    margin-bottom: 12px !important;
    font-size: 14px;
}

/* Дополнительная компактность для footer-marketplaces */
.footer-marketplaces {
    margin-top: 25px !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {

    .footer-container .footer-socials .social-links-grid,
    .footer-socials .social-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 10px !important;
    }

    .footer-container .footer-marketplaces .marketplace-links-inline,
    .footer-marketplaces .marketplace-links-inline {
        flex-wrap: wrap !important;
        gap: 6px 8px !important;
    }
}

/* ================================
   Blog Read More Button - Bio-Organic Design System
   ================================ */

/* Blog "Continue reading" button styling */
.blog-design-list div.wd-post-read-more.wd-style-btn a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #6BBF3A;
    color: #FFFFFF !important;
    font-family: Arial, Helvetica, system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
    border-radius: 4px;
    border: none;
    transition: all 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: unset;
}

/* Hover state */
.blog-design-list div.wd-post-read-more.wd-style-btn a:hover {
    background-color: #4FA028;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Active/Focus state */
.blog-design-list div.wd-post-read-more.wd-style-btn a:active,
.blog-design-list div.wd-post-read-more.wd-style-btn a:focus {
    outline: 2px solid #6BBF3A;
    outline-offset: 2px;
}

/* Active state */
div.wd-post-read-more.wd-style-btn a:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ================================
   Hide Author Information on Blog Pages
   ================================ */

/* Hide author information on blog archive and single post pages */
.wd-post-author,
.wd-meta-author {
    display: none !important;
}

/* ================================
   Remove Extra Spacing from Date
   ================================ */

/* Remove extra space that may appear before the date */
.wd-post-date.wd-style-default time.published {
    white-space: pre-wrap;
}


main.wd-content-layout {
    padding-block: 0px;
}

footer.wd-footer {
    background-image: linear-gradient(to bottom, #6BBF3A, #4FA028);
    box-shadow: inset 0 10px 8px -5px rgba(0, 0, 0, 0.3);
    /* background-image: linear-gradient(to bottom, #4FA028, #3e8124); */
    /* background-image: linear-gradient(to bottom, #3498db, #2980b9); */
}

footer.wd-footer .wd-text-block p {
    color: #FFFFFF;
}

footer.wd-footer .wd-widget a {
    color: #FFFFFF;
}

footer.wd-footer .wd-widget li {
    color: #FFFFFF;
}

footer.wd-footer .wd-widget .widget-title {
    color: #FFFFFF;
}

footer.wd-footer .wd-copyrights p {
    color: #FFFFFF;
}

footer.wd-footer .wd-copyrights a {
    color: #FFFFFF;
}

.wd-compare-btn,
.wd-wishlist-btn, 
.product-image-summary .wd-social-icons {
    display: none !important;
}

/* ================================
   Hide "Click to enlarge" Button
   ================================ */

/* Hide the "Click to enlarge" / zoom button on product pages */
.wd-show-product-gallery-wrap,
.wd-gallery-btn.wd-show-product-gallery-wrap,
a.woodmart-show-product-gallery {
    display: none !important;
}

/* ================================
   Product Gallery - Reduce Height by 50%
   ================================ */

/* Уменьшение высоты изображений галереи товара в 2 раза */
.product-images img,
.product-images .swiper-slide img,
.product-images .wd-gallery-main img,
.woocommerce-product-gallery__image img {
    max-height: 500px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Контейнер галереи */
.product-images,
.product-images .swiper,
.product-images .swiper-wrapper,
.product-images .swiper-slide,
.product-images .wd-gallery-main {
    max-height: 550px !important;
}

/* Ограничение высоты основного блока галереи */
.product-image-summary .product-images {
    max-height: 600px !important;
}

/* Миниатюры - пропорционально уменьшаем */
.product-images .wd-gallery-thumb img {
    max-height: 70px !important;
    width: auto !important;
    object-fit: contain !important;
}