/*
Theme Name: Kaveh Theme Child
Theme URI: https://baharbarg.ir
Description: قالب فرزند برای قالب کاوه
Author: Bahar Barg
Author URI: https://baharbarg.ir
Template: kavehTheme
Version: 1.0.0
Text Domain: kavehTheme-child
*/

/* کوچک کردن باکس تعداد */
.woocommerce .quantity {
    width: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 4px;
    margin-right: 1px !important;


}

.woocommerce .quantity input.qty {
    width: 10px !important;
    text-align: center !important;
}

.qty-btn-plus, .qty-btn-minus {
    padding: 0px 6px !important;
    border: 1px solid #ccc !important;
    background: #f9f9f9 !important;
    cursor: pointer;
    border-radius: 6px;
}


/*--------------------------------------------------------------------*/


.woocommerce-cart .cart_item .product-name {
    display: flex;
    align-items: center !important; /* وسط‌چین عمودی */
}


/*--------------------------------------------------------------------*/



.woocommerce .cart-collaterals {
    float: left !important;
}



/* باکس تعداد کوچک و مربع و گوشه گرد */
.custom-qty-input {
    width: 25px;         /* عرض دلخواه */
    height: 25px;        /* ارتفاع دلخواه */
    padding: 5px;
    padding-top: 7px;
    border-radius: 6px;  /* گوشه‌های گرد */
    text-align: center;
    font-size: 14px;
}












.woocommerce-cart-form table.shop_table td.product-name,
.woocommerce-cart-form table.shop_table td.product-price {
    padding: 5px 10px; /* کاهش padding سلول ها */
    white-space: normal; /* جلوگیری از گسترش بیش از حد سلول */
}

.woocommerce-cart-form table.shop_table td.product-price {
    text-align: right; /* قیمت سمت راست */
}






/* فقط ستون جمع کل را ببرد سمت چپ */
@media (min-width: 768px) {
    
        .wc-proceed-to-checkout {
    		margin-top: 7px !important;
			padding-top: 7px !important;
    
        }
        
        .row.mt-5.mb-5.d-flex.flex-row-reverse {
    		margin-top: -11px !important;
			padding-top: -11px !important;
    
        }
    
    .row.mt-5.mb-5 {
        display: flex;
    }
    .row.mt-5.mb-5 > .col-lg-4 {
        order: 1; /* ستون جمع کل = چپ */
    }
    .row.mt-5.mb-5 > .col-lg-8 {
        order: 2; /* ستون محصولات = راست */
    }
}











.cart-col-name {
    max-width: 220px !important;
    padding-right: 0 !important;
}









/* فقط دسکتاپ – موبایل بدون تغییر */
@media (min-width: 768px) {

    /* فاصله بین لیبل ها و مقادیر */
    .cart-three-item .cart-col .label {
        display: block;
    }

    .cart-three-item .cart-col .value,
    .cart-three-item .cart-col-image,
    .cart-three-item .cart-col-remove {
        margin-top: 18px !important;
        display: block !important;
    }
    
    .cart-three-item {
    max-width: 800px !important;
    }
}






/* قرار گرفتن نام محصول در پایین تصویر – فقط دسکتاپ */
@media (min-width: 768px) {

    /* ردیف محصول */
    .cart-three-item .d-flex {
        align-items: center !important;
    }

    /* ستون نام محصول */
    .cart-col-name {
        display: flex !important;
        align-items: center !important;
    }

    /* خود نام محصول */
    .product-name {
        display: flex !important;
        align-items: flex-end !important;
    }
}







/* فاصله ۴ پیکسل از سمت راست برای لیبل و باکس تعداد – فقط دسکتاپ */
@media (min-width: 768px) {

    .cart-col .label,
    .cart-col.cart-col-quantity .value {
        margin-right: 15px !important;
    }
}






@media (min-width: 768px) {

    /* استایل مشترک: وسط‌چین عمودی + فاصله طرفین */
    .cart-col.cart-col-price,
    .cart-col.cart-col-subtotal,
    .cart-col.cart-col-quantity {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-right: 6px !important;  /* فاصله از راست و چپ */
        padding-left: 6px !important;
    }
    

    

}































@media (max-width: 768px) {
    
    


    .col-lg-7.pt-3 .detail {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }

    /* عنوان */
    .col-lg-7.pt-3 .detail .name {
        text-align: center !important;
        width: 100%;
    }

    /* مخفی کردن دسته‌بندی */
    .col-lg-7.pt-3 .full-info li:nth-child(2) {
        display: none !important;
    }

    /* لیست اطلاعات */
    .col-lg-7.pt-3 .full-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
    }

    .col-lg-7.pt-3 .full-info li {
        text-align: center !important;
        width: 100%;
        margin: 4px 0;
    }

    /* توضیحات */
    .col-lg-7.pt-3 .options,
    .col-lg-7.pt-3 .options .title,
    .col-lg-7.pt-3 .options .tozi {
        text-align: center !important;
        width: 100%;
    }

    /* فرم و دکمه */
    .col-lg-7.pt-3 form.cart {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        width: 100%;
    }

    /* دکمه — بزرگتر و زیباتر */
    .col-lg-7.pt-3 .single_add_to_cart_button {
        margin: 12px auto !important;
        display: block !important;
        padding: 15px 37.5px !important;   /* بزرگ‌تر */
        font-size: 1.2rem !important;    /* فونت بزرگ‌تر */
        border-radius: 35px !important;   /* گوشه‌های نرم */
    }

    /* قیمت */
    .col-lg-7.pt-3 p.price {
        text-align: center !important;
        width: 100%;
        margin-top: 10px;
    }
}
























/* دکمه — بزرگتر و زیباتر */
.col-lg-7.pt-3 .single_add_to_cart_button {
    margin: 1px auto !important;
    display: block !important;
    padding: 15px 34.7px !important;   /* بزرگ‌تر */
    font-size: 1rem !important;    /* فونت بزرگ‌تر */
    border-radius: 35px !important;   /* گوشه‌های نرم */
}



















@media (max-width: 768px) {

    /* ---------- بخش توضیحات ---------- */

    /* والد بخش توضیحات */
    #tab-description,
    #tab-description .detail-product-review,
    #tab-description .detail-product-review-content {
        width: 100%;
    }

    /* حذف کامل آیکون کنار "معرفی محصول" */
    #tab-description .title i,
    #tab-description .title img,
    #tab-description .title svg {
        display: none !important;
    }

    /* تیتر "معرفی محصول" وسط چین و بولد */
    #tab-description .title h2 {
        font-weight: bold !important;
        text-align: center !important;  /* وسط چین */
        direction: ltr !important;      /* جهت متن چپ به راست برای وسط چین واقعی */
        margin: 0 auto;                 /* مطمئن شدن از وسط قرار گرفتن */
    }


    #tab-description .detail-product-review-content p,
    #tab-description .detail-product-review-content strong {
        margin-right: 7px !important;
        margin-left: 7px !important;
        text-align: justify !important;
        font-size: 14px !important;
        font-weight: normal !important;
        line-height: 1.9;
    }


    /* دکمه بیشتر/کمتر وسط قرار گیرد */
    #tab-description button {
        margin: 15px auto 0 !important;
        display: block !important;
    }
}











#tab-description .title i {
    display: none !important;
}

















@media (max-width: 768px) {

    /* والد لیست مشخصات */
    #tab-additional_information li {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        margin-bottom: 10px;
        flex-wrap: nowrap !important;
    }

    /* لیبل اول کوچک‌تر و راست‌چین */
    #tab-additional_information li > span:first-child {
        flex: 0 0 35%;  /* اشغال 35% فضا */
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        text-align: right;
    }

    /* مقدار بزرگ‌تر و چپ‌چین */
    #tab-additional_information li > span:last-child {
        flex: 1 0 65%;   /* اشغال باقی‌مانده فضا */
        font-size: 15px;
        text-align: left;
        display: flex;
        justify-content: flex-start;
    }

    /* حذف margin اضافی داخل p */
    #tab-additional_information li span p {
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }
}





	.order-success-text .line-101,
    .line-102 {
	    display: block;
    }

    .order-success-text .line-102 {
	    margin-top: -15px; /* فاصله بین دو خط */
    }



.lable-101 {
    display: block;
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
}


.woocommerce-order-downloads__title {
    text-align: center;
    
}

@media (max-width: 768px) {
	.lable-101 {
        display: block;
        text-align: center;
        font-size: 14px;
    }	
}



.woocommerce-column__title {
    text-align: center;
    margin-left: 18px !important;
}

.address-name1 {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
}

.address-name2 {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
}

.woocommerce-customer-details--phone {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
}


/* مخفی شدن هدر مراحل پرداخت فقط در صفحات ووکامرس مشخص */
body.woocommerce-cart .checkout-two-header,
body.woocommerce-checkout .checkout-two-header,
body.woocommerce-order-received .checkout-two-header {
	display: none !important;
}







/* ساختار اصلی محتوا */
.product-eight .content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* فاصله آیتم‌ها در دسکتاپ */
.product-eight .content > * {
	margin-bottom: 8px;
}

/* قیمت + دکمه خرید */
.product-eight .content .d-flex {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* عنوان محصول */
.product-eight .product-name {
	margin-bottom: 4px;
}

/* قیمت */
.product-eight .price {
	margin-bottom: 4px;
	text-align: center;
}

/* دکمه خرید */
.product-eight .single_add_to_cart_button {
	padding: 10px 28px;   /* طول بیشتر دکمه */
	font-size: 14px;
}

/* حذف علامت + از دکمه */
.product-eight .single_add_to_cart_button span::before {
	content: "";
}

/* فقط متن خرید باقی بماند */
.product-eight .single_add_to_cart_button span {
	white-space: nowrap;
}

/* ================= موبایل ================= */
@media (max-width: 768px) {

	/* کاهش فاصله کلی */
	.product-eight .content > * {
		margin-bottom: 4px;
	}

	/* فاصله عنوان و قیمت */
	.product-eight .product-name {
		margin-bottom: 2px;
	}

	.product-eight .price {
		margin-bottom: 2px;
	}

	/* دکمه در موبایل کمی جمع‌وجور ولی کشیده */
	.product-eight .single_add_to_cart_button {
		padding: 9px 24px;
		font-size: 13px;
	}
}






/* حذف + و جایگزینی با خرید */
.product-eight .single_add_to_cart_button span {
	font-size: 0;
}

.product-eight .single_add_to_cart_button span::after {
	content: "خرید";
	font-size: 14px;
}

/* وسط‌چین متن دکمه */
.product-eight .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 32px;
}

/* موبایل */
@media (max-width: 768px) {
	.product-eight .content .d-flex {
		flex-direction: column !important;
		align-items: center !important;
	}

	.product-eight .product-name {
		margin-bottom: 2px !important;
		padding-bottom: 0px !important;
	}
}













/* مخفی کردن دکمه مشاهده محصول */
.product-eight a.btn.btn-secondary.rounded-pill {
	display: none !important; /* عدد را برای فاصله دلخواه تنظیم کن */

}








/* وسط چین کردن دکمه دانلود فاکتور */
p > a.button {
    display: inline-block; /* اجازه وسط چین شدن */
    margin: 0 auto;        /* وسط چین افقی */
}

p {
    text-align: center;    /* متن و المان‌های داخل p وسط چین شوند */
}











/* مخفی کردن متن اصلی */
.woocommerce-table--order-downloads thead th span {
    display: none;
}

/* لیبل‌های جدید */
.woocommerce-table--order-downloads th.download-product::after {
    content: "نام محصول";

    font-family: 'yekanbakh';

    font-weight: normal;
}

.woocommerce-table--order-downloads th.download-remaining::after {
    content: "فرصت دانلود";
    
    font-family: 'yekanbakh';

    font-weight: normal;
}

.woocommerce-table--order-downloads th.download-expires::after {
    content: "انقضاء";

    font-family: 'yekanbakh';

    font-weight: normal;
}

.woocommerce-table--order-downloads th.download-file::after {
    content: "لینک دانلود";

    font-family: 'yekanbakh';

    font-weight: normal;
}








.cart-col .label {
    font-size: 14px !important;
    font-family: 'yekanbakh' !important;
    
}














.woocommerce-table--order-downloads td.download-product a {

    font-family: 'yekanbakh'; 
    font-size: 16px;
}

.woocommerce-table--order-downloads td.download-remaining {

    font-family: 'yekanbakh';
    font-size: 16px;
}

.woocommerce-table--order-downloads td.download-expires {

    font-family: 'yekanbakh';
    font-size: 16px;
}





    /* دکمه دانلود */
.woocommerce-table--order-downloads tbody tr td.download-file a.button {
    font-size: 17px;
    padding-right: 25px !important;
    padding-left: 25px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    margin-top: 8px;
    border-radius: 10px;

}






@media (min-width: 768px) {
    

    .container h5.text-center.order-success-text {
	    margin-bottom: -22px !important;
	    padding-bottom: -22px !important;
	    margin-top: 0px !important;
    }

    .container .text-center p {
	    display: none !important;
    }
    
    
    .woocommerce-table--order-downloads tbody tr td.download-file a.button {
        font-size: 17px;
        padding-right: 25px !important;
        padding-left: 25px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        margin-top: 8px;
        border-radius: 10px;

    }
    
    .container .text-center.mb-4 {
        margin-bottom: 8px !important;
	    padding-top: 6px !important;
    }
    
    .woocommerce-order-downloads__title {
        margin-top: 24px !important;
    }
    
    .summary.entry-summary.detsimple p.price {
        text-align: right;
    }
}















@media (max-width: 768px) {

    /* مخفی کردن هدر جدول */
    .woocommerce-table--order-downloads thead {
        display: none;
    }
    
    .woocommerce-table--order-downloads tbody tr td.download-remaining {
        display: none !important;
    }
    
    .woocommerce-table--order-downloads tbody tr td.download-expires {
        display: none !important;
    }

    /* هر ردیف به صورت کارت ستونی */
    .woocommerce-table--order-downloads tbody tr {
        display: flex;
        flex-direction: column;
        gap: 10px;
        border: 1px solid #eee;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    /* مخفی کردن ستون‌های غیرضروری */
    .woocommerce-table--order-downloads td.download-remaining,
    .woocommerce-table--order-downloads td.download-expires {
        display: none;
    }
    
    
    .woocommerce-table--order-downloads tbody tr td.download-product {
        text-align: center !important;
    }
    


    /* نام محصول */
    .woocommerce-table--order-downloads td.download-product {
        text-align: center;
        font-weight: 600;

    }

    /* دکمه دانلود */
    .woocommerce-table--order-downloads tbody tr td.download-file a.button {
        font-size: 18px;
        padding-right: 26px !important;
        padding-left: 26px !important;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
        margin-top: 6px;
        border-radius: 10px;

    }

    .woocommerce-table--order-downloads tbody tr td.download-file {
        text-align: center !important;
    }

    /* حذف لیبل‌های data-title در موبایل */
    .woocommerce-table--order-downloads td::before {
        display: none !important;
    }
    
    .container h5.text-center.order-success-text {
	    margin-bottom: -6px !important;
	    padding-bottom: -6px !important;
    }

    .container .text-center p {
	    display: none !important;
    }
    
}














@media (max-width: 768px) {
    
    .detail-product .container ul.breadcrumb {
        display: none;
    }
    
}





































