body::before {
    background: #000;    
}

/*header structure */
#header-wrapper.header-style-ecommerce {
    background: #000 !important;
}

#header-wrapper.header-style-ecommerce #topmenu-mobile {
    display: block !important;
}
#header-wrapper.header-style-ecommerce .topmenu-mobile {
    height: auto;
}

#header-search .header-search-input {
    margin-right: -7px;
    padding-left: 20px !important;
    background: #FFF;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    min-width: 80%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
#header-search .header-search-btn {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    height: 40px;
    width: 60px;
    padding: 0px;
}

#header-cart-count {
    font-size: 12px;
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 7px;
}
.header-style-ecommerce.top-btn-enabled .top-btn {
    display: block; 
}
@media ( min-width: 992px ) {
    #header-wrapper.header-style-ecommerce #topmenu-mobile {
        min-width: 250px;
        text-align: right;
    } 
}
@media ( min-width: 800px ) {
    #header-search .header-search-input {
        min-width: 400px;
    }
}
@media ( max-width: 991px) {
    .header-style-ecommerce #header-inner {
        padding-bottom: 50px;
    }
    .header-style-ecommerce .top-btn {
        position: absolute;
        bottom: 1px;
    }
    .header-style-ecommerce .top-btn span {
        background: #FFF;
    }

    .header-style-ecommerce #header-search {
        position: absolute;
        bottom: 12px;
        left: 60px;
        right: 10px;
    }

    #header-search .header-search-input {
        height: 35px !important;
        line-height: 35px;
    }

    #header-search .header-search-btn {
        height: 35px !important;
        font-size: 23px;
    }
}

/* dropdown header menu */

#dropmenu-dashify-categories .item-inner {
    padding: 15px;
}

#dropmenu-dashify-categories .dashify-inventory-categories .inventory-category-list {
    display: flex;
    flex-wrap: wrap;
    /* allow wrapping to next row */
    gap: 10px;
    /* set the gap between items */
    padding: 0;
    margin: 0;
    list-style: none;
}
#dropmenu-dashify-categories .dashify-inventory-categories .inventory-category-list li {
    flex: 1 1 calc(15% - 10px);
    max-width: 15%;
    /* 25% width minus the gap */
    box-sizing: border-box;
    font-size: 12px;
}


/*inventory */

.inventory-section-sidebar {
    display: none;
}

.inventory-section-products {
    width: 100%;
}

@media ( min-width: 992px ) {
    .inventory-section-sidebar {
        width: 300px;
        overflow: hidden;
        min-width: 300px;
        display: block;
    }

    .inventory-sidmenu-categories li a {
        font-size: 16px;
        color: #000;
        line-height: 20px;
        display: block;
        line-height: 30px;
        border-bottom: 1px dashed #EEE;
    }

    .inventory-sidmenu-categories ul ul li a {
        font-size: 14px;
        opacity: 0.8;
    }

    .inventory-filter .inventory-category-item {
        cursor: pointer;
    }
}


/* items  - generic*/


.product-status-soldout {
    position: relative;
}

.product-status-soldout .product-notification {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    /* enable flexbox */
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent black */
    color: #FFF;
    font-weight: bold;
    font-size: 1.2rem;
    /* optional, make text bigger */
    z-index: 10;
    /* ensure it’s above the image */
}

.products-item .products-item-inner {
    padding: 1rem;
    border: 1px solid #f2f3f2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 4px;
    height: 100%;
    width: 100%;
}

.products-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.products-item .products-footer {
    opacity: 0.7;
}

.woocommerce span.onsale {
    border-radius: 6px;
    line-height: 20px;
    padding: 0px 10px 0px;
    min-height: auto;
    background: red;
    right: 10px;
    left: auto;
    top: 15px;
    font-size: 12px;
}

@media (max-width: 575px) {

    .products-meta {
        margin-bottom: 5px;
    }
    .product-short-description {
        font-size: 12px;
        line-height: 18px;
    }
    .product-short-description p {
        margin-bottom: 10px; 
    }
}
.products-grid .products-item {
    max-width: 300px;
    min-width: 300px;
}

.products-grid .products-img {
    flex: 0 0 100%;
    margin: 0 auto 15px;
    padding: 0px;
    max-height: 250px;
    position: relative;
}
.products-grid .products-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
}

.products-grid .products-body {
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0px;
    padding: 0px;
}
.products-grid .products-title {
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
    color: #222;
    letter-spacing: 0.3px;
}
.products-grid .products-footer {
    border-top: 1px solid rgb(242, 243, 242);
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    padding-top: 15px;
}

@media ( max-width: 575px ) {
    .products-grid .dashify-products-list {
        justify-content: space-between !important;
    }
    .products-grid .products-item {
        min-width: calc(50% - 0.5rem);
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    .products-grid .products-img {
        max-width: 100px;
        position: static;
    }
    .products-grid .products-title {
        font-size: 12px;
        margin-top: 10px;
    }
    .products-grid .products-footer {
        margin-bottom: 0px;
        padding-top: 10px;
        font-size: 11px;
    }
}


.products-list .products-img {
    max-width: 150px;
    max-height: 150px;
    text-align: center;
}
.products-list .products-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.products-list .products-title {
    padding-right: 80px;
}
.products-list .price {
    position: absolute;
    top: 20px;
    right: 20px;
}

.woocommerce .products-list span.onsale {
    top: 20px;
    right: auto;
    left: 15px;
} 

/* Flex container for the form */
.archive-add-to-cart-form {
    padding-top: 15px;
    border-top: 1px solid #EEE;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.products-list .archive-add-to-cart-form>.quantity {
    margin-left: auto; 
}
.products-list .archive-add-to-cart-form>button {
    max-width: 150px !important; 
}
/* All direct children (variation, quantity, button) */
.products-list .archive-add-to-cart-form > .quantity,
.products-list .archive-add-to-cart-form > button,
.products-list .archive-add-to-cart-form > .variation {
    flex: 0 1 31%;  
    /* allow shrinking but max 100px */
    max-width: 31%;
    /* enforce max width */
    min-width: 0;
    /* for inner alignment */
    align-items: center;
    white-space: nowrap;
    /* vertical center inside column */
}
 
/* Quantity buttons inline inside their column */
.archive-add-to-cart-form .quantity {
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
}
.archive-add-to-cart-form .variation {
    display: flex;
    width: 100%;
    align-items: center;
}

.archive-add-to-cart-form > .variation select {
    font-size: 13px;
    height: 30px;
    line-height: 30px;
    padding: 0px 10px;
}

/* Button fills its column */
.archive-add-to-cart-form > button {
    width: 100%;
    white-space: nowrap;
    margin-top: 0;
}

/* archive view for add to cart */
.woocommerce .list-products .quantity button {
    height: 30px;
    width: 100%;
    border: none;
    background: none;
    font-weight: bold;
    text-transform: uppercase;
}

.woocommerce .list-products .quantity .qty {
    height: 30px;
    min-width: 40px;
    border-radius: 0px;
    border: none;
    font-size: 18px;
    font-weight: bold;
}

/* product view */
.woocommerce.single-product .quantity .qty {
    height: 45px;
    border-radius: 0px;
    border: none;
    font-size: 20px;
    font-weight: bold;
}

.woocommerce.single-product div.product form.cart .button {
    margin-top: 20px;
    height: 45px;
    width: 100%;
    text-transform: uppercase;
}

@media ( max-width: 991px ) {
    .products-list .products-img {
        width: 100px;
    }
}
@media ( max-width: 575px ) {
    .products-list .products-img {
        width: 70px;
    }

    .woocommerce .list-products .quantity .qty {
        font-size: 14px;
        min-width: 30px;
    }
}
 
/* woo */

.archive-add-to-cart-wrapper div.quantity,  
.woocommerce div.product form.cart div.quantity { 
    float: none;
    display: flex;
    align-items: center; 
    gap: 6px;
    justify-content: flex-end !important; 
    max-width: 140px;
}

.woocommerce div.product form.cart div.quantity {
    justify-content: space-between !important;
    max-width: 100%;  
}

.woocommerce div.product form.cart .qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.woocommerce div.product form.cart .qty-btn:hover {
    background: #eee;
}


