/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.custom-subcategories-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.custom-subcategories-wrap .product-category {
    width: 200px;
    max-width: 100%;
}

.custom-subcategories-wrap .col-inner {
    padding: 0;
}

.custom-subcategories-wrap .box {
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 200px; /* фиксированная высота */
    display: flex;
    flex-direction: column;
}

.custom-subcategories-wrap .box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-subcategories-wrap .box-image {
    flex: 1 1 auto;
    overflow: hidden;
}

.custom-subcategories-wrap .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-subcategories-wrap .box-text {
    padding: 10px 15px;
    background: #f9f9f9;
    flex-shrink: 0;
}

.custom-subcategories-wrap .box-text-inner h5.header-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    margin: 0;
}

.custom-subcategories-wrap .box-text-inner p.count {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-transform: none;
}

.custom-subcategories-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.uppercase.header-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.awooc-custom-order.button {
	background-color: var(--fs-color-primary);
	flex: 0 0 auto;
}

.woocommerce-message.message-wrapper .success-color {
	color: #555;
}

.woocommerce-message.message-wrapper .success-color i {
	color: green;
}

#shop-sidebar .berocket_single_filter_widget input {
	margin-bottom: 0.5em;
}

/* Checkout UX styles moved from functions.php inline CSS */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #customer_details * {
    transition: none !important;
    transition-property: none !important;
    transition-duration: 0s !important;
    animation: none !important;
    scroll-behavior: auto !important;
}

.woocommerce-checkout #customer_details .select2-container,
.woocommerce-checkout #customer_details .select2-container * {
    transition: none !important;
    animation: none !important;
}

.woocommerce-checkout #customer_details p.form-row:has(.description) .woocommerce-input-wrapper {
    margin-bottom: 0;
}

.woocommerce-checkout #customer_details .form-row span.description.wpbl-checkout-desc-static,
.woocommerce-checkout #customer_details .form-row .description {
    display: block !important;
    margin-top: .2em;
    margin-bottom: .85em;
    font-size: .92em;
    line-height: 1.35;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 42em;
    position: static !important;
    clip: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    pointer-events: auto;
    contain: layout;
    isolation: isolate;
}

.woocommerce-checkout #customer_details .form-row label .optional {
    display: inline;
}

.woocommerce-checkout .wpbl-checkout-section-heading {
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce-checkout .wpbl-checkout-section-heading h4 {
    margin: 1.35em 0 .55em;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.3;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .wpbl-checkout-section-heading:first-child h4 {
    margin-top: 0;
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-totals > td.shipping__inner {
    padding-top: .9em;
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-totals .shipping__table > tbody > tr > th {
    font-size: 1em;
    line-height: 1.35;
    font-weight: 600;
    padding-top: 0;
}

@media (min-width: 1024px){
	.home .products.large-columns-4>.col {
        flex-basis: 20%;
        max-width: 20%;
    }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

.custom-subcategories-wrap .product-category {
        width: 45%; /* Две колонки */
        max-width: 45%;
        margin-bottom: 0;
        float: none;
    }