/*
Theme Name: MatrixProtect
Theme URI: 
Author: Hundikuu Agentuur
Author URI: 
Description: MatrixProtect.eu teemapakett laiendustega
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matrixprotect
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

.wp-block-migb-masonry-gallery .single-gallery-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
footer.wp-block-template-part {
    margin-top: 0px !important;
}

@media (max-width: 768px) {
    .banner-outer {
        background-image: url('https://matrixprotect.eu/wp-content/uploads/2025/02/mp_bg_mobile.webp') !important;
        background-position: center center; /* Adjust as needed */
    }
}

.mp-language-switcher {
    display: none  !important;
}
:where(.wp-site-blocks *:focus) {
    outline: none !important;
}

.mp-default-button a {

    font-size: 16px !important;
    font-family: 'Cabin' !important;
    background-color: #f3f4f6 !important;
    color: black !important;
    border: 2px solid black !important;
    padding: 0.5em 1.2em !important;
    transition-duration: 0.2s !important;

}

.mp-default-button a:hover {
      background-color: #587741 !important;
    color: #f9f9f9 !important;
    border: 2px solid #7f9370 !important;
    padding: 0.5em 1.2em !important;
    transition-duration: 0.2s !important;
}

.mp-tagasiside img {
    border-radius: 50% !important;
}

/*------------------------------------*\
    #AVALEHT
\*------------------------------------*/

.banner-inner {
    padding-top: 25vh;
    padding-bottom: 15vh;
}

@media only screen and (max-width: 768px) {
    .wp-block-superblockslider-slider.alignfull.superblockslider {
        height: 450px !important;
    }

    .superblockslider__slide_inner {
        display: flex    ;
        flex-direction: column;
        position: absolute;
        width: 95% !important;
        height: 81%;
        top: 9%;
        left: 50% !important;
        translate: -50% !important;
        padding-bottom: 32px;
        overflow: hidden;
    }

    .second-slide-banner .superblockslider__slide_inner
    {
      
            width: calc(100% - 58px* 2 - 10px* 2) !important;
            
            left: calc(58px + 10px) !important;
            translate: 0 !important;
        
        
    }
}

/*------------------------------------*\
    #HEADER
\*------------------------------------*/



.current-menu-item > a {

   color: black !important
}


.matrix-header-secondrow {
    width: 100%;

    transition: all 0.5s ease; 

}


.matrix-header-secondrow.sticky {
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.5s ease; 
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 

}

.matrix-header-secondrow.sticky  .header-sitelogo {
    height: 60px;
}

@media only screen and (max-width: 768px) {

    .header-sitelogo {
        width: 180px;
    }
    .matrix-header-secondrow.sticky  .header-sitelogo {
        max-width: 120px;
    margin-top: 15px;
    }
  .hader-innerdiv.wp-container-core-group-is-layout-6 {
    gap: 10px !important;
  }
}

/*------------------------------------*\
    #WOO JA SELLE ELEMENTID
\*------------------------------------*/

button.idclass-logistrik-shipping-method-request-delivery-options-button, .woocommerce-button.button.woocommerce-form-login__submit, .woocommerce-Button.woocommerce-form-register__submit {
    font-size: 16px !important;
    font-family: 'Cabin' !important;
    background-color: #587741 !important;
    color: #f9f9f9 !important;
    border: 1px solid #7f9370 !important;
    padding: 0.5em 0.9em !important;
    transition-duration: 0.2s !important;
}
button.idclass-logistrik-shipping-method-request-delivery-options-button:hover,  .woocommerce-button.button.woocommerce-form-login__submit:hover, .woocommerce-Button.woocommerce-form-register__submit:hover {
    background-color: #cfd4d7 !important;
    color: black !important;
    border: 1px solid #aeb4b7 !important;
    padding: 0.5em 0.9em !important;
    transition-duration: 0.2s !important;
    cursor: pointer;
}

span.posted_in, span.posted_in a {
    font-size: 14.4px;
    font-family: 'Cabin';

}
span.posted_in {
    color: var(--wp--preset--color--contrast-2);
}
span.posted_in a {
    color: rgb(17, 17, 17);
    text-decoration: none;
}

div.tehnoloogia {

        padding: 10px 0 10px;
    border-radius: 5px;
}
div.tehnoloogia h2 {
    margin: 10px 0 10px;
}

div.tehnoloogia .tech_flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 10px;
}
.mpro_tech {
    width: calc(50% - 30px);
    background-color: #e4e7ea;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3sease;
}

.mpro_tech h4 {
  
    margin: 10px 0 10px;
}
@media only screen and (max-width: 768px) {
    .mpro_tech {
        width: 100%;
    }
}

.mp-product-short ul {
    padding-left: 20px;
}

.product-lisanimetus {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    margin: 10px 0 10px;
    
}

.woocommerce table.shop_attributes td {
    font-style: normal !important;
}

.mp-woo-tooted .ajax_add_to_cart, .add_to_cart_button, .single_add_to_cart_button, .mp-button-inverse a {
    font-size: 16px !important;
    font-family: 'Cabin' !important;
    background-color: #587741 !important;
    color: #f9f9f9 !important;
    border: 1px solid #7f9370 !important;
    padding: 0.5em 0.9em !important;
    transition-duration: 0.2s !important;
}

.mp-woo-tooted .ajax_add_to_cart:hover, .add_to_cart_button:hover, .single_add_to_cart_button:hover, .mp-button-inverse a:hover {
    background-color: #cfd4d7 !important;
    color: black !important;
    border: 1px solid #aeb4b7 !important;
    transition-duration: 0.2s !important;
}


.mp-woo-tooted .wc-block-grid__product-title, .wc-block-product .wp-block-post-title, .wc-block-product .wp-block-post-title a, .mp-related-products .wp-block-post-title {
    font-size: 18px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wp-block-woocommerce-product-collection span.woocommerce-Price-amount.amount, .mp-woo-tooted span.woocommerce-Price-amount.amount, .mp-related-products span.woocommerce-Price-amount {
    font-size: 20px;
    font-weight: 700;
}

.mp-woo-tooted img:hover, .attachment-woocommerce_thumbnail img:hover, .mp-related-products .wc-block-components-product-image img:hover {
    transform: scale(1.1);
    transition-duration: .8s;
    
}

.mp-woo-tooted img, .attachment-woocommerce_thumbnail img, .mp-related-products .wc-block-components-product-image img {
   
    transition-duration: .8s;
   
}
.mp-woo-tooted .wc-block-grid__product-image, .mp-woo-tooted .wc-block-grid__product-image:hover, .wc-block-components-product-image a:hover, .wc-block-components-product-image a {
  
    overflow: hidden;
    margin: 0 0 0px !important;
}

.mp-woo-category ul.wc-block-product-categories-list {
   list-style: none;
   padding: 0;
   border: 1px solid #535353;
}

.mp-woo-category ul.wc-block-product-categories-list li {
    padding: 0.2em 0.2em;
    border-bottom: 1px solid #535353;
    background-color: #ececec;
    display: flex;
    justify-content: stretch;
}

.mp-woo-category ul.wc-block-product-categories-list li a {
    color: black;
    font-size: 16px;
    font-family: 'Cabin';
    text-decoration: none;
    padding: 0.5em 0.2em;
    transition-duration: 0.2s;
    width: 85%;
}
.mp-woo-category ul.wc-block-product-categories-list li a:hover {
    padding-left: 10px;
}

.p-woo-category span.wc-block-product-categories-list-item-count {
    width: 15%;
}

.wc-block-product-categories-list li.active-category {
    font-weight: bold;
    background-color: #ffffff !important;
    border-left: 3px solid #000;
}

.wc-block-product-categories-list-item:focus, .wc-block-product-categories-list-item a:focus {
    outline: none;
}

.wc-block-product-gallery-large-image-next-previous-container.wc-block-product-gallery-large-image-next-previous--inside-image {
    top: 45%;
    margin: 0 !important
}

.woocommerce-variation-price .amount {
    font-size: 24px;
    font-family: 'Cabin';
    font-weight: 700;
}

.woocommerce div.product form.cart .variations {
    width: auto !important
}

.woocommerce table.variations tr td select {
    font-size: 16px;
    font-family: 'Cabin';
    padding: 0.5em 0.9em;
    border: 1px solid #7f9370;
    background-color: #f3f4f6;
    color: black;
}

.mp-checkout-button, .mp-checkout-page-button a, .wc-block-components-checkout-place-order-button  {
    font-size: 16px !important;
   font-family: 'Cabin' !important;
   background-color: #587741 !important;
  color: #f9f9f9 !important;
   border: 1px solid #7f9370 !important;
   transition:all .4s ease !important;
}


.mp-checkout-button:hover, .mp-checkout-page-button a:hover, .wc-block-components-checkout-place-order-button:hover {
 background-color: #cfd4d7 !important;
   color: black !important;
   border: 1px solid black !important;
  transition:all .4s ease !important;
}

.mp-cart-button {
        font-size: 16px !important;
   font-family: 'Cabin' !important;
background-color: #f3f4f6 !important;
   color: black !important;
   border: 1px solid #aeb4b7 !important;
   transition:all .4s ease !important;
}

.mp-cart-button:hover {
   background-color: #cfd4d7 !important;
   color: black !important;
   border: 1px solid #aeb4b7 !important;
  transition:all .4s ease !important;
}

#close-filter, #open-filter {
    display: none;
}
@media only screen and (max-width: 768px) {
    .mp-woo-tooted .wc-block-grid__products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 0 !important;
        gap: 10px;

    }
    .mp-woo-tooted .wc-block-grid__product {
        position: relative;
    width: 100% !important;
  border: 0 !important;
    overflow: hidden;
    
    }
    .mp-woo-tooted .wc-block-grid__product-title {
        font-size: 14px !important;
    }

    .wc-block-grid__product div {
        margin-bottom: 5px !important;
    }
    .mp-woo-tooted .ajax_add_to_cart, .add_to_cart_button, .single_add_to_cart_button, .mp-button-inverse a {
        font-size: 14px !important;
        padding: 0.5em 0.9em !important;
    }

    
        #filter-modal {
            position: fixed;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: white;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
            transition: left 0.3s ease-in-out;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
    
        /* Active state - slide in */
        #filter-modal.active {
            left: 0;
        }
    
        /* Modal content */
        .filter-modal-content {
            padding: 20px;
            overflow-y: auto;
            flex-grow: 1;
        }
    
        /* Close button */
        #close-filter {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
        }
    
        /* Style for category links */
        .filter-modal-content a {
            display: block;
            padding: 10px;
            color: black;
            text-decoration: none;
            border-bottom: 1px solid #ddd;
        }
    
        .filter-modal-content a:hover {
            background: #f5f5f5;
        }
    
        /* Button to open filter modal */
        #open-filter {
            display: block;
            width: 100%;
            padding: 10px;
            background-color: #587741;
            color: white;
            text-align: center;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }
        .modal-outer {
            padding-top: 5px;
        }
        .modal-inner {
            padding-top: 25px;
        }

        .wpc-filters-section {
            padding: 0 10px;
        }
        .wc-block-catalog-sorting {
            width: 100%;
        }
        .wc-block-product-template .wp-block-post-title a {
            font-size: 14px !important;
        }
        .wc-block-product-template li div, .wc-block-product-template li h3 {
            margin-bottom: 5px !important;
        }
    
}

.wp-block-query-pagination-numbers a, .wp-block-query-pagination-next, .wp-block-query-pagination-previous, .wp-block-query-pagination-numbers .page-numbers.current, .wp-block-query-pagination-numbers .page-numbers.dots {
    font-size: 16px;
    font-family: 'Cabin';
    padding: 0.5em 0.9em;
    border: 1px solid #7f9370;
    background-color: #f3f4f6;
    color: black;
    transition-duration: 0.2s;
    text-decoration: none;
}

.wp-block-query-pagination-numbers a:hover, .wp-block-query-pagination-next:hover, .wp-block-query-pagination-previous:hover {
    background-color: #587741;
    color: #f9f9f9;
    border: 1px solid #7f9370;
    padding: 0.5em 0.9em;
    transition-duration: 0.2s;
}

.wp-block-query-pagination-numbers .page-numbers.current {
font-weight: bold;
}
/* Lisainfo tabel */
.tg  {border-collapse:collapse;border-color:#ccc;border-spacing:0; width: 50%;}
.tg td{background-color:#fff;border-color:#ccc;border-style:solid;border-width:1px;
    color:#333;
    font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;word-break:normal;}
    
    .tg th{background-color:#f0f0f0;border-color:#ccc;border-style:solid;border-width:1px;color:#333;
        font-family:Arial, sans-serif;font-size:14px;font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
        
        .tg .tg-buh4{background-color:#f9f9f9;text-align:left;vertical-align:top}
        .tg .tg-0lax{text-align:left;vertical-align:top}


/*------------------------------------*\
    #Breadcrumb
\*------------------------------------*/
.custom-breadcrumbs {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

.custom-breadcrumbs a {
    color: #333;
    text-decoration: none;
}

.custom-breadcrumbs a:hover {
    text-decoration: underline;
}

.custom-breadcrumbs .current-breadcrumb {
    font-weight: bold;
    color: #333;
}

/*------------------------------------*\
    #SEARCH (FIBO)
\*------------------------------------*/

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    background: #ffffff03 !important;
}


/*------------------------------------*\
    #FAVORITE CATEGORIES
\*------------------------------------*/



.favorite-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: auto;
    padding: 15px 0;
}

.favorite-category {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Maintain aspect ratio */
    overflow: hidden;
    border-radius: 10px;
}

.favorite-category a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.favorite-category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}

.favorite-category:hover .favorite-category-bg {
    transform: scale(1.05);
}

.favorite-category-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.2);
    padding: 30% 10px;
    border-radius: 5px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}
@media only screen and (max-width: 768px) {
    .favorite-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .favorite-category-title {
        font-size: 20px;
    }
    
}

/*------------------------------------*\
    #Gravity Forms
\*------------------------------------*/

.ginput_container input, .ginput_container textarea {
    background-color: rgb(245, 244, 244) !important;
    font-family: 'Cabin' !important;
    font-size: 16px !important;
    border: 1px solid rgb(209, 213, 219) !important;
    border-radius: 4px;
}

.ginput_container input:focus, .ginput_container textarea:focus {
    background-color: rgb(255, 255, 255) !important;
    border: 1px solid rgb(0, 0, 0) !important;
    outline: none !important;
}

.gform_button {
    font-family: 'Cabin' !important;
    font-size: 16px !important;
    background-color: #587741 !important;
    color: #f9f9f9 !important;
    border: 1px solid #7f9370 !important;
    padding: 0.5em 1.2em !important;
    transition-duration: 0.2s !important;
    border-radius: 4px;
}
.gform_button:hover {
    background-color: #cfd4d7 !important;
    color: black !important;
    border: 1px solid #aeb4b7 !important;
    padding: 0.5em 1.2em !important;
    transition-duration: 0.2s !important;
}
.gform_button:focus {
    outline: none !important;
}

@media only screen and (max-width: 768px) {
    .gform_fields  {
       row-gap: 12px !important;
    }
    
}

/*------------------------------------*\
    #FOOTER
\*------------------------------------*/

.smaily-liituvorm-entry {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.smaily-form-input {
    background-color: rgb(245, 244, 244) !important;
    font-family: 'Cabin' !important;
    font-size: 16px !important;
    border: 1px solid rgb(209, 213, 219) !important;
    line-height: 38px;
    padding: 0 12px;    
    margin-right: 12px;
    border-radius: 4px;
}

.smaily-form-input:focus {
    background-color: rgb(255, 255, 255) !important;
    outline: none !important;
}

.hnd-btn-info {
    font-family: 'Cabin' !important;
    font-size: 16px !important;
    background-color: #f0f0f0 !important;
    color: #636363 !important;
    border: 1px solid #dfdfdf !important;
    padding: 0.5em 1.2em !important;
    transition-duration: 0.2s !important;
    border-radius: 4px;
}
.hnd-btn-info:hover {
    background-color: #f9f9f9 !important;
    color: black !important;
    border: 1px solid #f9f9f9 !important;
    padding: 0.5em 1.2em !important;
    transition-duration: 0.2s !important;
}

@media only screen and (max-width: 768px) {
    .smaily-liituvorm-entry {
        flex-direction: column;
    }
    .smaily-form-input {
        margin-right: 0;
        margin-bottom: 12px;
        width: 90%;
    }

    .hnd-btn-info {
        width: calc(90% + 24px);
    }

    .footer-smaily-container h2 {
        text-align: center;
        font-size: 24px;
    }
    .footer-smaily-container p {
        text-align: center;
    }
}


.custom-category-list {
    list-style: none;
    padding-left: 0;
    width: 100%;
}

.custom-category-list .category-item,
.custom-category-list .subcategory-item {
    border-bottom: 1px solid #ddd;
    padding: 2px 0;
}

.custom-category-list .category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px 5px 0px;
    width: 100%;
}

.custom-category-list .category-title {
    text-decoration: none;
    color: #333;
    flex-grow: 1; /* Push product count & expand icon to the right */
}

.custom-category-list .product-count {
    margin-left: auto;
    padding: 0 10px;
    color: #777;
}

.custom-category-list .expand-icon,
.custom-category-list .expand-placeholder {
    width: 20px; /* Reserve space for expand icon */
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: #555;
}

.custom-category-list .expand-placeholder {
    visibility: hidden; /* Ensures proper alignment when no expand icon */
}

.custom-category-list .current-cat .category-title {
    font-weight: bold;
    color: #0e0707;
}

.subcategories {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.subcategories .subcategory-item {
    padding: 5px 0;
}



#input_4_11 > thead {
    background-color: rgb(245, 244, 244) !important;
}


.tagasiside {
	display: flex;
	column-gap: 20px;
	border: 1px solid #f4f4f4;
	margin-bottom: 10px;
}

.hinnang_rida {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f4;
	width: 80px;
	min-height: 80px;
}

.tagasiside_rating {
	font-size: 20px;
	font-weight: 700;
}

.tagasiside_max {
	transform: translate(0, 5px);
}

.tagasiside_rida {
	position: relative;
	width: 100%;
}

.tagasiside_autor {
	position: absolute;
	bottom: 0;
	display: flex;
	width: 100% !important;
}

.tagasiside_kuupaev {
	margin-left: 0.7em;
}

.autorinimi {
	font-weight: 700;
}

.color_rating9,
.color_rating10 {
	background-color: #228b22 !important;
}

.color_rating8 {
	background-color: #6b8e23 !important;
}

.color_rating7,
.color_rating6 {
	background-color: #20b2aa !important;
}

.color_rating5,
.color_rating4,
.color_rating3 {
	background-color: #ff4500 !important;
}

.color_rating2,
.color_rating1,
.color_rating0 {
	background-color: #ff0000 !important;
}
.tagasiside_detail.sisu {
    margin-bottom: 25px;
}

.aval_tagasiside_tabel {
 display: flex;
    flex-direction: row;
    gap: 10px;
}

.aval_tagasiside {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    width: 33%;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

.aval_tagasiside_detail.aval_sisu {
    margin-bottom: 25px;
}
.aval_tagasiside_autor {
   position: absolute;
    bottom: 10px;
    display: flex;
    width: 100% !important;
    font-weight: 600;
}

.poe_teade {
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #5a7644;
    padding: 8px 0 8px 0;
    text-align: center;
}