/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/

.site-content{
    padding-top: 0px !important;
}

.woocommerce-badges:not(.woocommerce-badges--single).sold-out--center .woocommerce-badge.sold-out{
    text-align: center !important;
    font-size: 12px !important;
    background-color: #00000000 !important;
}

.woo-megamenu-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding: 15px;
    background: #fff;
}

.megamenu-main-categories {
    flex: 0 0 75%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.megamenu-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #29235c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.megamenu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.megamenu-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.megamenu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.megamenu-card:hover .megamenu-card-image img {
    transform: scale(1.1);
}

.megamenu-card-title {
    padding: 8px 10px;
    text-align: center;
    background: #29235c;
}

.megamenu-card-title div {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.megamenu-categories-list {
    flex: 0 0 25%;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.megamenu-categories-list div {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.megamenu-categories-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu-categories-list li {
    margin-bottom: 6px;
}

.megamenu-categories-list a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.megamenu-categories-list a:hover {
    background: #fff;
    color: #000;
    padding-left: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .woo-megamenu-container {
        flex-direction: column;
    }
    
    .megamenu-main-categories,
    .megamenu-categories-list {
        flex: 1 1 100%;
    }
    
    .megamenu-main-categories {
        grid-template-columns: 1fr;
    }
}

.products-filter__filter-name.filter-name{
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

#wpcf7-f7897-p206-o1 > form > p.privacy-row{
    display: flex !important;
}

#wpcf7-f7897-p206-o1 > form > p.privacy-row > a{
    padding-left: 5px !important;
}

#wpcf7-f7897-p206-o1 > form > p.privacy-row > span > span{
    margin-right: -10px !important;
}

.wpcf7-form-control.wpcf7-submit.has-spinner{
    background-color: var( --e-global-color-671dd35 );
}

#cart-panel > div.panel__container > div.panel__content > div > div > p.woocommerce-mini-cart__buttons.buttons > a:nth-child(1){
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.woocommerce.wocommerce-wishlist.wcboost-wishlist{
    margin-top: 40px !important;
}

@media (max-width: 768px) {
    .woocommerce.wocommerce-wishlist.wcboost-wishlist{
        margin-top: 20px !important;
    }
}

#post-6375 > div > div.checkout-form-cols > div{
    margin-top: 20px;
}

.cf7-product-form .wpcf7-form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 10px !important;
}

#tab-additional_information{
    display: none !important;
}

/* Dropdown filtro ceramiche artigianali */
.ceramiche-filter-dropdown {
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 20px;
}

.ceramiche-filter-dropdown .filter-title {
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    color: black;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.filter-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.category-icon {
    font-size: 12px;
    color: #666;
}

.filter-checkboxes {
    display: block;
    padding-left: 20px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-checkbox-item:hover {
    background: #f9f9f9;
}

.filter-checkbox-item input[type="checkbox"] {
    margin: 0;
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.filter-checkbox-item input[type="checkbox"]:checked + .checkbox-label {
    font-weight: 600;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .ceramiche-filter-dropdown {
        max-width: 100%;
    }
}

/* Card categorie ceramiche artigianali */
.ceramiche-category-cards {
    display: grid;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.ceramiche-category-cards[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ceramiche-category-cards[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.ceramiche-category-cards[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Carosello mobile */
@media (max-width: 768px) {
    .ceramiche-category-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 15px;
        padding: 0 20px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }
    
    .ceramiche-category-cards:active {
        cursor: grabbing;
    }
    
    /* Nascondi scrollbar ma mantieni funzionalità */
    .ceramiche-category-cards::-webkit-scrollbar {
        display: none;
    }
    
    .ceramiche-category-cards {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

.category-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.4s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
}

.category-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 30px;
    z-index: 2;
    transition: padding 0.4s ease;
}

.category-card:hover .category-card-overlay {
    padding-bottom: 40px;
}

.category-card-content {
    text-align: left;
}

.category-card-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-title {
    transform: translateY(-5px);
}

.category-card-button {
    display: inline-block;
    padding: 12px 30px;
    background: #28347d;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.category-card-button:hover {
    background: #fff;
    color: #28347d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* Responsive per card */
@media (max-width: 1024px) {
    .ceramiche-category-cards[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    /* Card nel carosello */
    .category-card {
        flex: 0 0 85%;
        max-width: 85%;
        height: 360px;
        scroll-snap-align: center;
    }
    
    .category-card-overlay {
        padding: 25px 20px;
    }
    
    .category-card-title {
        font-size: 24px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    /* Card più larghe su mobile piccolo */
    .category-card {
        flex: 0 0 90%;
        max-width: 90%;
        height: 320px;
    }
    
    .category-card-title {
        font-size: 22px;
    }
    
    .category-card-overlay {
        padding: 20px 18px;
    }
}

.cf7-product-form {
    max-width: 900px;
    margin: 0 auto;
}

.cf7-product-form .cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px !important;
    row-gap: 0px !important;
}

.cf7-product-form .cf7-field.cf7-full {
    grid-column: 1 / -1;
}

.cf7-product-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #273c8f;
    margin-bottom: 8px;
}

.cf7-product-form input,
.cf7-product-form textarea {
    width: 100%;
    border: 1px solid #d9deea;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.4;
    color: #1f2a44;
    box-sizing: border-box;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(39, 60, 143, 0.05);
}

.cf7-product-form input::placeholder,
.cf7-product-form textarea::placeholder {
    color: #8c95ad;
}

.cf7-product-form input:focus,
.cf7-product-form textarea:focus {
    outline: none;
    border-color: #273c8f;
    box-shadow: 0 0 0 4px rgba(39, 60, 143, 0.12);
}

.cf7-product-form textarea {
    min-height: 160px;
    resize: vertical;
}

.cf7-product-form .cf7-submit-wrap {
    margin-top: 22px;
}

.cf7-product-form input[type="submit"] {
    background: #273c8f;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: auto;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(39, 60, 143, 0.18);
}

.cf7-product-form input[type="submit"]:hover {
    transform: translateY(-1px);
    background: #1f327b;
}

.cf7-hidden-field {
    display: none;
}

.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
}

.wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 6px;
    color: #d93025;
}

@media (max-width: 767px) {
    .cf7-product-form .cf7-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cf7-product-form input,
    .cf7-product-form textarea {
        padding: 13px 16px;
    }
    
    .cf7-product-form input[type="submit"] {
        width: 100%;
    }
}

.grecaptcha-badge { 
    visibility: hidden !important;
}

.cky-btn-revisit-wrapper.cky-revisit-bottom-left{
    opacity: 0 !important;
}