

/**
 * Theme Name:     Blocksy Child for AiElectroMart
 * Author:         CreativeThemes
 * Template:       blocksy
 * Text Domain:	   blocksy-child-for-aielectromart
 * Description:    Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
 */
 
 
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input{background-color: #f6f6f6}

p.woocommerce-store-notice.demo_store {
    text-align: center;
    padding: 0;
}

/*SIDEBAR CATEGORY MENU STYLES*/

.wp-block-woocommerce-product-categories {
    background: #f6f6f6;
    border-radius: 8px;
    overflow: hidden;
}

.wc-block-product-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-block-product-categories-list-item {
    position: relative;
    border-bottom: 1px solid #ddd;
}

.wc-block-product-categories-list-item > a {
    display: block;
    padding: 9px 45px 9px 18px;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.wc-block-product-categories-list-item > a:hover {
    background: #fff;
   
}

.wc-block-product-categories-list-item-count {
    display: none;
}

/* Hide subcategories by default */
.wc-block-product-categories-list-item > ul {
    display: none;
    background: #fff;
}

/* Show opened subcategories */
.wc-block-product-categories-list-item.open > ul {
    display: block;
}

/* Subcategory links */
.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item > a {
    padding-left: 20px;
    font-weight: 400;
}

/* Toggle button */
.cat-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 43px;
    border: 0;
    background: #eee;
    cursor: pointer;
    font-size: 22px;
}

.cat-toggle::before {
    content: "+";
}

.wc-block-product-categories-list-item.open > .cat-toggle::before {
    content: "−";
}

/*CATEGORY GRID*/

.aem-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.aem-category-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    text-align: center;
    padding: 22px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.aem-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.aem-category-card a {
    text-decoration: none;
    color: #111;
}

.aem-category-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.aem-category-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.aem-category-card h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 10px;
}

.aem-category-card h3::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #1559ed;
    margin: 10px auto 0;
}

.aem-see-more {
    display: inline-block;
    margin-top: 10px;
    background: #2872fa;
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
}

.aem-see-more:hover {
    background: #1559ed;
}

/* Responsive */
@media (max-width: 1024px) {
    .aem-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .aem-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .aem-category-image {
        height: 110px;
    }

    .aem-category-card h3 {
        font-size: 14px;
    }
}

/*CATEGORY SCROLL START*/

.aiem-whatsapp {

    position: fixed;

    bottom: 25px;

    right: 25px;

    width: 60px;

    height: 60px;

    background: #25D366;

    color: #fff;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 6px 18px rgba(0,0,0,.2);

    z-index: 9999;

    transition: .25s ease;
}

.aiem-whatsapp:hover {

    transform: scale(1.08);
}

@media (max-width:768px){

    .aiem-whatsapp{

        width:56px;

        height:56px;

        bottom:20px;

        right:20px;
    }
}
