.woocommerce-category-container {
    display: flex;
    /*padding-top: 35px;*/
}

.category-tree {
    width: 300px;
    border-right: 1px solid #ccc;
    padding: 20px;
}

.category-tree h3 {
    margin-top: 0;
    margin-left: 15px;
}

.category-tree .category-list {
    list-style: none;
    padding: 0;
}

.category-tree .category-item {
    cursor: pointer;
    padding: 5px 0;
}

.category-tree .category-row {
    display: flex;
    align-items: center;
}

.category-tree .indent {
    display: inline-block;
    margin-left: 20px;
    position: relative;
}

.category-tree .vertical-line {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 9px;
    width: 1px;
    background-color: #ccc;
}

.category-tree .category-item:first-child .vertical-line {
    display: none;
}

.category-tree .category-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.category-tree .level-0 + .category-link {
    min-width: 45px;
}

.subcategory-list .subcategory-list .category-link {
    font-size: 12px;
    line-height: 1.1em;
    font-weight: bold;
    padding-right: 3px;
}

.category-tree .toggle-icon {
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
    background: #ddd;
    padding: 3px;
    line-height: 8px;
    border-radius: 4px;
}

.category-tree .category-item.has-children > .category-row > .indent::before {
    margin-right: 5px;
	content: "";
    display: inline-block;
    width: 16px; /* Adjust size as needed */
    height: 16px;
    background-image: url('/wp-content/uploads/2025/03/icons8-engine-30-FC4.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    top: 2px;
}

.category-tree .category-item:not(.has-children) > .category-row > .indent::before {
	content: "";
    display: inline-block;
    width: 16px; /* Adjust size as needed */
    height: 16px;
    background-image: url('/wp-content/uploads/2025/03/icons8-engine-30-FC4.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}

.category-tree .category-item.has-children.expanded > .category-row > .indent::before {
    margin-right: 5px;
	content: "";
    display: inline-block;
    width: 16px; /* Adjust size as needed */
    height: 16px;
    background-image: url('/wp-content/uploads/2025/03/icons8-engine-30-FC4.png'); 
    background-size: contain;
    background-repeat: no-repeat;
}

.category-image {
    border-right: 1px solid #ccc;
}

.category-image, .product-list {
    flex: 1;
    padding: 20px;
}

.category-image img {
    max-width: 100%;
    height: auto;
}

.category-tree .category-list, .category-tree .category-list ul, .category-tree .category-list ul li {
    list-style: none;
    padding-left: 0;
}

/* Hide all subcategories by default */
.category-tree .subcategory-list {
    display: none;
}

/* Ensure expanded categories are visible on page load */
.category-tree .category-item.expanded > .subcategory-list {
    display: block;
}

.has-children .subcategory-list {
    border-left: 1px solid #000;
}

.has-children .subcategory-list .category-item .indent {
    margin-left: 10px !important;
}


/* Style the product list */
.category-products {
    list-style: none;
    padding: 0;
}

.category-products .product-description {
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

.product-item {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 0;
}

/* Title on first line */
.product-title {
    font-weight: bold;
    margin-bottom: 0px;
    font-size: 14px;
}

.product-price {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
}

/* Quantity input and button on the same line */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;

}

.cart-controls .quantity {
    width: 95px;
    text-align: center;
}

/* Add to Cart button */
.cart-controls .add_to_cart_button, .button.contact_button {
    background-color: #28a745;
    color: #fff !important;
    border: none;
    padding: 5px 15px !important;
    cursor: pointer;
    font-size: 12px !important;
    width: auto !important;
    min-width: 92px !important;
}

.cart-controls .qty {
    padding: 5px 15px !important;
    min-width: unset !important;
    min-height: unset !important;
    line-height: 25px !important;
}

.cart-controls .plus, .cart-controls .minus {
    top: 0px !important;
}

.add_to_cart_button:hover {
    background-color: #218838;
}

li.current-engine {
    background-color: #ffe2dd;
}

label.ts-screen-reader-text {
    display: none;
}

ul.category-products li {
    list-style-type: none;
}

ul.category-products li:not(:last-child) {
    margin-bottom: 30px;
}

.plus, .minus {
   top: 6px!important;
	border:0!important;
    font-size: 25px;
}
input.input-text.qty.text {
    padding: 6px 0!important;
}
button.button.add_to_cart_button {
    color: #fff!important;
    font-size: 12px!important
}

li.product-item {
    margin: 0;
    padding: 0;
}

.category-tree h3, .category-image h3 , .product-list h3  {
    font-size: 20px!important;
}


#image-container {
    position: relative;
    display: inline-block;
    overflow: scroll;
    width: 750px;
    height: 500px;
    border: 1px solid #ddd;
    cursor: grab;
}

#image-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#zoom-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
}

#category-image {
    max-width: none;
    display: block;
}

#controls {
    margin-top: 10px;
}

button {
    padding: 8px 15px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
}

.image-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.zoom-controls {
    display: flex;
    gap: 5px;
}

.zoom-controls button {
    color: white;
    border: none;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px !important;
    line-height: 10px;
}

.zoom-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

span.mark_no {
    padding: 3px 8px !important;
    background: #ddd;
    line-height: 8px ! IMPORTANT;
    font-size: 12px;
    border-radius: 5px;
    margin-right: 5px;
}

span.packing_qty {
    font-size: 10px;
    color: #555;
    margin-left: 10px;
}

#products-container {
    display: block;
    max-height: calc(100vh - 50px);
    overflow: auto;
    -ms-overflow-style: none;
}

#products-container::-webkit-scrollbar {
    display: none;
}
span.wrapperDiv {
    display: flex;
    width: 100%;
}
@media screen and (max-width:1220px) {
	#image-container {
    position: relative;
    display: inline-block;
    overflow: scroll;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    cursor: grab;
    min-height: 399px;
}
#category-image {
    max-width: 100%;
    display: block;
}
#zoom-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    width: 100%;
}
}
@media screen and (max-width:768px) {
	#image-container {
    height: 300px;
    width: 300px;
   
}
	#category-image {
    max-width: 100%;
    display: block;
    object-fit: cover;
}
	.image-header {
    display: block;

}
	.category-image, .product-list {
    flex: 1;
    padding: 10px;
}
}

@media screen and (max-width:640px) {
  .category-tree{
	padding:5px 0
}
	#category-image {
    max-width: 100%;
    display: block;
    object-fit: cover;
}
	.category-image, .product-list {
    flex: none;
    padding: 5px;
}
#image-container {
    position: relative;
    display: block;
    overflow: scroll;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    cursor: grab;
    min-height: 200px;
}
	#zoom-wrapper {
    position: absolute;

}
	.image-header {
    display: block;

}
.zoom-controls button {

    font-size: 11px;

}
	span.wrapperDiv {
    display: flex;
    width: 100%;
    flex-direction: column;
}
	.category-tree .category-link {
    text-decoration: none;
    color: #333;
    font-size: 12px;
}
	.subcategory-list .subcategory-list .category-link {
    font-size: 9px;

}
	.category-tree h3, .category-image h3, .product-list h3 {
    font-size: 17px!important;
}
}

.alternate-part {
    font-size: 10px !important;
    display: block;
}