/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 2.0.0
*/

h1,h2,h3,h4,h5,h6,p,span,a, 
.elementor-widget-woocommerce-cart .woocommerce,
.elementor-widget-woocommerce-checkout-page{
    font-family: "iranSanse", Sans-serif !important;
}

/* Styling for the related posts widget */
.related-posts-with-thumbnails {
    list-style: none; /* Removes the default bullet points */
    padding: 0;
    margin: 0;
}

.related-posts-with-thumbnails li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-posts-with-thumbnails li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-posts-with-thumbnails li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.related-posts-with-thumbnails li a:hover .post-title {
    color: #1E87F0;
}

.related-posts-with-thumbnails li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related-posts-with-thumbnails li .post-title {
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.3s ease-in-out;
}

/* Styling for the related products widget */
.related-product-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--brdcolor-gray-300);
}

.related-product-item a {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.related-product-item img {
    width: 4rem;
}

.related-product-item .product-title {
    font-family: inherit;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px){
    #goftino_w{
        scale: 0.8;
        bottom: 80px !important;
        right: 0 !important;
    }
}

.product-labels {
    top: 30px !important;
    inset-inline-start: -5px !important;
}

.product-labels .product-label {
    border-radius: 12px 0 0 12px !important;
}

.e-woo-select2-wrapper .select2-results__option {
	color: #444444;
}



.custom-accordion .accordion-title{
    width:100%;
    text-align:center;
    font-size: 1.4rem;
    font-weight: 500;
    color: var( --e-global-color-primary );
}

.custom-accordion .accordion-item {
    margin-bottom: 5px;
}

.custom-accordion .accordion-header {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #545454;
    border-radius: 15px 15px 15px 15px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    line-height: 1;
    cursor: pointer;
    outline: none;
}

.custom-accordion .accordion-item.is-active .accordion-header{
    color: #1e87f0;
	border-color: #59a6f4;
}

.custom-accordion .accordion-content {
    padding: 15px;
    background: transparent;
    display: none;
	color: #fff;
    border-radius: 6px;
    font-size: 16px;
}

.custom-accordion .accordion-content p {
    margin: 0;
}

/* START  product loop item image swap */
.el-product-image-swap .image-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    /* Aspect ratio helps prevent layout shifts, adjust as needed */
    aspect-ratio: 1 / 1; 
}

/* Ensure images fill the space */
.el-product-image-swap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps images cropped nicely */
    display: block;
    transition: opacity 0.4s ease-in-out;
}

/* Setup the Hover Image (Hidden by default) */
.el-product-image-swap .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

/* The Main Image */
.el-product-image-swap .img-main {
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* Trigger Hover Effect */
.el-product-image-swap:hover .img-hover {
    opacity: 1;
}
/* END product loop item image swap */

/* START: Category Listing */
	.m-product-categories {
		list-style-type: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-flow: column;
	}

	.m-product-categories li {
		margin-bottom: 5px;
		width: 100%;
		position: relative;
		display: flex;
		flex-flow: column;
	}
	
	.m-product-categories > li:last-child{
		border:none;
	}

	.m-product-categories .category-link {
		padding: 5px 0 5px 10px;
		text-decoration: none;
		color: #c8c8c8;
		flex-grow: 1;
	}
	
	.m-product-categories .parent-with-arrow{
		width: 100%;
		display: flex;
		flex-flow: row;
		flex-grow: 1;
	}
	
	.m-product-categories .parent-category:has(div.parent-with-arrow) .category-link{
		border:none;
	}
	
	.m-product-categories .parent-category:has(.parent-with-arrow .category-arrow.rotate){
		border:none;
	}

	.m-product-categories .category-link:hover {
		color: #E85E3A;
	}

	.m-product-categories .category-arrow {
		cursor: pointer;
		padding: 5px 10px 0;
		font-size: 1.2em;
		transition: transform 0.3s ease;
	}

	.m-product-categories .category-arrow svg{
		width: 13px;
		color: #c8c8c8;
	}
	
	.m-product-categories .selected-category > .parent-with-arrow .category-link,
	.m-product-categories .selected-category > .category-link {
		color: #E85E3A;
		border-color: #0071a1;
	}

	.m-product-categories .selected-category > .category-link:hover {
		color: #E85E3A;
	}

	.m-product-categories .child-categories {
		margin-right: 5px;
		padding-right: 5px;
	}

	.m-product-categories .child-categories li {
		position: relative;
		margin-bottom: 5px;
		font-size: 0.85rem;
		background: rgba(0, 0, 0, 0.13);
	}
	
	.m-product-categories .child-categories li a {
		padding: 5px;
	}
	
/* 	.m-product-categories .child-categories li:before{
		content: '';
		position: absolute;
		height: 100%;
		width: 1px;
		background-color: red;
		right: 0;
	} */
	
	.m-product-categories .rotate {
    	transform: rotate(180deg);
	}
/* END: Category Listing */