/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Sep 26 2026 | 15:08:37 */
/* =====================================================
   MOBILE & RESPONSIVE
   ===================================================== */

@media screen and (max-width: 767px) {

    /* =================================================
       POPULAR PRODUCTS
       2 products per row
       ================================================= */

    body .home-popular-products
    .featured-products
    .wc-block-product-template {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 12px !important;
        row-gap: 16px !important;

        width: 100% !important;
        max-width: 100% !important;
    }


    /* =================================================
       PRODUCT CARD
       ================================================= */

    body .home-popular-products
    .featured-products
    .wc-block-product {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: auto !important;

        padding: 10px !important;
    }


    /* =================================================
       PRODUCT IMAGE
       ================================================= */

    body .home-popular-products
    .featured-products
    .wc-block-components-product-image {
        width: 100% !important;
        height: 150px !important;

        margin-bottom: 10px !important;
    }

    body .home-popular-products
    .featured-products
    .wc-block-components-product-image img {
        width: 100% !important;
        height: 150px !important;

        object-fit: contain !important;
    }


    /* =================================================
       PRODUCT TITLE
       ================================================= */

    body .home-popular-products
    .featured-products
    .wp-block-post-title,

    body .home-popular-products
    .featured-products
    .wc-block-components-product-title {
        width: 100% !important;
        min-width: 0 !important;

        margin-top: 6px !important;
        margin-bottom: 8px !important;

        font-size: 15px !important;
        line-height: 1.3 !important;

        overflow-wrap: normal !important;
        word-break: normal !important;
    }


    /* =================================================
       PRODUCT PRICE
       ================================================= */

    body .home-popular-products
    .featured-products
    .wc-block-components-product-price {
        margin-top: 0 !important;
        margin-bottom: 10px !important;

        font-size: 14px !important;
    }


    /* =================================================
       ADD TO CART BUTTON
       ================================================= */

    body .home-popular-products
    .featured-products
    .wp-block-button,

    body .home-popular-products
    .featured-products
    .wc-block-components-product-button {
        width: 100% !important;
    }

    body .home-popular-products
    .featured-products
    .wp-block-button__link {
        width: 100% !important;

        padding: 10px 6px !important;

        font-size: 14px !important;
        line-height: 1.2 !important;

        white-space: normal !important;
    }


    /* =================================================
       NEWS & STORE INFO PANELS
       Mobile layout
       ================================================= */

    /*
     * On desktop News and Store divide the fixed height
     * of the right column in a 35/65 ratio.
     *
     * On mobile they are stacked vertically, therefore
     * each panel must have its own natural height.
     */

    body .home-right-panel {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        gap: 8px !important;

        overflow: visible !important;
    }


    /* =================================================
       NEWS PANEL
       ================================================= */

    body .home-right-panel .home-news-panel {
        flex: none !important;

        width: 100% !important;
        height: auto !important;

        min-height: 220px !important;
        max-height: 320px !important;

        overflow: hidden !important;
    }

    body .home-news-panel .wp-block-shortcode {
        flex: none !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        overflow: hidden !important;
    }

    body .home-news-panel .shop-news-list {
        width: 100% !important;

        height: auto !important;
        max-height: 230px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


    /* =================================================
       STORE INFO PANEL
       ================================================= */

    body .home-right-panel .home-store-panel {
        flex: none !important;

        width: 100% !important;
        height: auto !important;

        min-height: 280px !important;
        max-height: 400px !important;

        overflow: hidden !important;
    }

    body .home-store-panel .wp-block-shortcode {
        flex: none !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        overflow: hidden !important;
    }

    body .home-store-panel .shop-store-info {
        width: 100% !important;

        height: auto !important;
        max-height: 300px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


    /* =================================================
       HERO - MOBILE
       ================================================= */

    /*
     * Make Hero more compact on phones.
     */

    body .home-hero {
        min-height: 0 !important;
        height: 420px !important;

        border-radius: 8px;
    }


    /*
     * Gutenberg Cover itself
     */

    body .home-hero.wp-block-cover {
        min-height: 0 !important;
        height: 420px !important;

        padding: 24px 20px !important;
    }


    /*
     * Hero content
     */

    body .home-hero .wp-block-cover__inner-container {
        width: 100% !important;

        padding: 0 !important;
    }


    /*
     * Hero main heading
     */

    body .home-hero h1,
    body .home-hero h2 {
        margin-top: 0 !important;
        margin-bottom: 18px !important;

        font-size: 29px !important;
        line-height: 1.25 !important;
    }


    /*
     * Hero description
     */

    body .home-hero p {
        margin-bottom: 22px !important;

        font-size: 17px !important;
        line-height: 1.4 !important;
    }


    /*
     * Hero button
     */

    body .home-hero .wp-block-button__link {
        padding: 12px 20px !important;

        font-size: 17px !important;
        line-height: 1.2 !important;
    }


    /* =================================================
       MOBILE - SECTION HEADINGS & SPACING
       ================================================= */

    /*
     * Popular Categories / Popular Products headings
     */

    body .home-popular-categories h2,
    body .home-popular-products h2 {
        margin-top: 24px !important;
        margin-bottom: 20px !important;

        font-size: 30px !important;
        line-height: 1.15 !important;

        text-align: center;
    }


    /*
     * Reduce unnecessary vertical space around sections
     */

    body .home-popular-categories,
    body .home-popular-products {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    /* =================================================
       MOBILE - PRODUCT GRID ALIGNMENT
       ================================================= */

    /*
     * Every grid row stretches its cards to equal height.
     */

    body .home-popular-products
    .featured-products
    .wc-block-product-template {
        align-items: stretch !important;
    }


    /*
     * Product cards in the same row must have equal height.
     */

    body .home-popular-products
    .featured-products
    .wc-block-product {
        height: 100% !important;

        display: flex !important;
        flex-direction: column !important;
    }


    /*
     * Keep the product image area identical for every card.
     */

    body .home-popular-products
    .featured-products
    .wc-block-components-product-image {
        flex: 0 0 150px !important;
        height: 150px !important;
    }


    /*
     * Push the price/button area toward the bottom.
     */

    body .home-popular-products
    .featured-products
    .wc-block-components-product-button {
        margin-top: auto !important;
    }


    /* =================================================
       MOBILE - POPULAR PRODUCTS SPACING
       ================================================= */

    /* Remove Gutenberg spacer below Popular Products title */

    body .home-popular-products .wp-block-spacer {
        height: 0 !important;
        min-height: 0 !important;
    }


    /* Compact title spacing */

    body .home-popular-products h2,
    body .home-popular-products h3 {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }


    /* =================================================
       MOBILE - GAP BETWEEN POPULAR SECTIONS
       ================================================= */

    /* No bottom gap after Popular Categories */

    body .home-popular-categories {
        margin-bottom: 0 !important;
        margin-block-end: 0 !important;
    }


    /* Popular Products container */

    body .home-popular-products {
        margin-top: 0 !important;
        margin-block-start: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    /* Popular Products title */

    body .home-popular-products > h2,
    body .home-popular-products > h3 {
        margin-top: 12px !important;
        margin-bottom: 16px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    /* Remove Gutenberg spacers inside Popular Products */

    body .home-popular-products .wp-block-spacer {
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* =================================================
       MOBILE - POPULAR CATEGORY CARDS
       ================================================= */

    /* More compact category cards on phones */

    body .home-popular-categories .category-card,
    body .home-popular-categories .category-card.wp-block-cover {
        min-height: 230px !important;
        height: 230px !important;
    }


    /* =================================================
       MOBILE - POPULAR CATEGORY CARDS GAP
       ================================================= */

    /* Smaller vertical gap between category cards */

    body .home-popular-categories {
        row-gap: 6px !important;
        gap: 6px !important;
    }
}


/* =========================================================
 * COMPACT DESKTOP HEADER
 * Prevent logo clipping on smaller desktop screens
 * ========================================================= */

@media (min-width: 690px) and (max-width: 1300px) {

    /* Make desktop navigation more compact */

    #header [data-device="desktop"] .menu > li > a {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }


    /* Reduce spacing between header elements */

    #header [data-device="desktop"] [data-items="primary"] {
        gap: 6px !important;
    }


    /* Account button */

    #header [data-device="desktop"] [data-id="button"] {
        margin-left: 2px !important;
        margin-right: 2px !important;
    }


    /* Cart */

    #header [data-device="desktop"] [data-id="cart"] {
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
}


/* =========================================================
 * MOBILE HEADER — FINAL LTR / RTL LAYOUT
 *
 * LTR:
 * LOGO ........ LANGUAGE ACCOUNT CART HAMBURGER |
 *
 * RTL:
 * | HAMBURGER CART ACCOUNT LANGUAGE ........ LOGO
 * ========================================================= */

@media screen and (max-width: 767px) {

    /*
     * Keep Blocksy mobile header geometry stable.
     * Visual order is controlled explicitly below.
     */

    #header [data-device="mobile"] {
        direction: ltr;
    }


    /* =====================================================
       PRIMARY MOBILE HEADER CONTAINER
       ===================================================== */

    #header [data-device="mobile"] [data-items="primary"] {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-width: 0 !important;

        gap: 8px !important;
    }


    /* =====================================================
       COMMON ELEMENT SETTINGS
       ===================================================== */

    #header [data-device="mobile"] .site-branding {
        transform: none !important;

        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }


    /*
     * Language switcher is now inserted by JavaScript
     * directly inside [data-items="primary"].
     */

    #header [data-device="mobile"]
    .shop-header-language-switcher-mobile {
        width: auto !important;
        min-width: 0 !important;

        flex: 0 0 auto !important;

        margin: 0 !important;
    }


    /* Account */

    #header [data-device="mobile"] [data-id="account"],
    #header [data-device="mobile"] [data-id="button"] {
        flex: 0 0 auto !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /* Cart */

    #header [data-device="mobile"] [data-id="cart"] {
        flex: 0 0 auto !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /* Hamburger */

    #header [data-device="mobile"] [data-id="trigger"] {
        flex: 0 0 auto !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /* =====================================================
       LTR — RUSSIAN / ENGLISH

       LOGO ........ LANGUAGE ACCOUNT CART HAMBURGER |
       ===================================================== */

    html:not([dir="rtl"])
    #header [data-device="mobile"] .site-branding {
        order: 10 !important;

        margin-left: 0 !important;
        margin-right: auto !important;
    }


    html:not([dir="rtl"])
    #header [data-device="mobile"]
    .shop-header-language-switcher-mobile {
        order: 20 !important;
    }


    html:not([dir="rtl"])
    #header [data-device="mobile"] [data-id="account"],
    html:not([dir="rtl"])
    #header [data-device="mobile"] [data-id="button"] {
        order: 30 !important;
    }


    html:not([dir="rtl"])
    #header [data-device="mobile"] [data-id="cart"] {
        order: 40 !important;
    }


    /*
     * Hamburger is the last element,
     * therefore it stays at the far right.
     */

    html:not([dir="rtl"])
    #header [data-device="mobile"] [data-id="trigger"] {
        order: 50 !important;
    }


    /* =====================================================
       RTL — HEBREW

       | HAMBURGER CART ACCOUNT LANGUAGE ........ LOGO
       ===================================================== */

    /*
     * Hamburger is the first element,
     * therefore it stays at the far left.
     */

    html[dir="rtl"]
    #header [data-device="mobile"] [data-id="trigger"] {
        order: 10 !important;
    }


    html[dir="rtl"]
    #header [data-device="mobile"] [data-id="cart"] {
        order: 20 !important;
    }


    html[dir="rtl"]
    #header [data-device="mobile"] [data-id="account"],
    html[dir="rtl"]
    #header [data-device="mobile"] [data-id="button"] {
        order: 30 !important;
    }


    html[dir="rtl"]
    #header [data-device="mobile"]
    .shop-header-language-switcher-mobile {
        order: 40 !important;
    }


    /*
     * Logo is the last element and auto margin
     * pushes it to the far right.
     */

    html[dir="rtl"]
    #header [data-device="mobile"] .site-branding {
        order: 50 !important;

        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* =====================================================
   MOBILE - CATEGORY PANEL
   ===================================================== */

@media (max-width: 768px) {

    /*
     * На мобильном панель больше не должна
     * растягиваться по высоте Hero.
     */
    .home-category-panel {
        height: auto !important;
        min-height: 0 !important;
    }

    /*
     * Возвращаем дереву категорий собственную высоту.
     * Если категорий много — прокручивается только дерево.
     */
    .home-category-panel .shop-category-tree {
        flex: none !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: 300px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /*
     * Кнопка остаётся под деревом.
     */
    .home-category-panel .wp-block-buttons {
        margin-top: 16px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

