/* =====================================================
   WooCommerce Single Product Custom Style
   Color Palette Based on User Request
   #47331B  -> رنگ قهوه ای اصلی
   #88571C  -> رنگ قهوه ای گرم برای دکمه ها
   #241708  -> رنگ بسیار تیره برای متن های قوی
   Gradient -> بکگراند کرم کلاسیک
===================================================== */

/* ================================
   باکس اصلی محصول
================================ */
.single-product div.product{
    background:white;
    border-radius:15px 0px 15px 15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.4);
    padding:40px;
    margin-top:-14px;
}

/* Tablet */
@media (max-width:1024px){
.single-product div.product{
    padding:30px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product div.product{
    padding:20px;
    border-radius:10px 0px 10px 10px;
    margin-top:-13px!important;
}
}


/* =========================================
   باکس Breadcrumb
========================================= */
.single-product .woocommerce-breadcrumb{
    background:#FBEED5;
    padding:10px;
    border-radius:15px 15px 0px 0px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    font-size:14px;
    color:#47331B;
    margin-top:15px;
}

.single-product .woocommerce-breadcrumb a{
    color:#88571C;
    text-decoration:none;
    font-weight:500;
}

.single-product .woocommerce-breadcrumb a:hover{
    color:#241708;
}

.single-product .woocommerce-breadcrumb{
    display:inline-block;
}

/* Tablet */
@media (max-width:1024px){
.single-product .woocommerce-breadcrumb{
    font-size:13px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .woocommerce-breadcrumb{
    font-size:12px;
    padding:8px;
    margin-top:40px!important;
}
}


/* ================================
   عنوان محصول
================================ */
.single-product .product_title{
    color:#241708!important;
    font-size:33px;
    font-weight:700;
    margin-bottom:15px;
}

/* Tablet */
@media (max-width:1024px){
.single-product .product_title{
    font-size:28px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .product_title{
    font-size:22px;
    text-align:center;
}
}


/* ================================
   قیمت محصول
================================ */
.single-product .price{
    color:#88571C!important;
    font-size:26px;
    font-weight:700;
    margin-bottom:20px;
    text-align:center;
}

/* Tablet */
@media (max-width:1024px){
.single-product .price{
    font-size:22px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .price{
    font-size:20px;
}
}


/* ================================
   توضیحات کوتاه
================================ */
.single-product .woocommerce-product-details__short-description{
    color:#47331B!important;
    line-height:1.9;
    font-size:16px;
    margin-bottom:25px;
}

/* Tablet */
@media (max-width:1024px){
.single-product .woocommerce-product-details__short-description{
    font-size:15px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .woocommerce-product-details__short-description{
    font-size:14px;
}
}


/* ================================
   بخش دکمه و تعداد
================================ */
.single-product form.cart .woocommerce-variation-add-to-cart{
    display:flex;
    align-items:center;
    gap:10px;
}

/* ================================
   quantity
================================ */
.single-product .quantity{
    flex:0 0 auto;
}

.single-product .quantity input.qty{
    border:2px solid #88571C;
    border-radius:8px;
    padding:10px;
    width:70px;
    text-align:center;
    height:40px;
}

/* Tablet */
@media (max-width:1024px){
.single-product .quantity input.qty{
    width:80px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .quantity input.qty{
    width:90px;
}
}


/* ================================
   دکمه افزودن به سبد
================================ */
.single-product button.single_add_to_cart_button{
    background:#88571C!important;
    color:white;
    border:none;
    border-radius:10px;
    padding:14px 30px;
    font-size:16px;
    font-weight:600;
    height:40px;
    flex:1;
}

.single-product button.single_add_to_cart_button:hover{
    background:#47331B!important;
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(0,0,0,0.3);
}
.woocommerce a.added_to_cart {
    color: #88571C;
}
/* Tablet */
@media (max-width:1024px){
.single-product button.single_add_to_cart_button{
    font-size:15px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product button.single_add_to_cart_button{
    font-size:14px;
}
}



/* =========================================
   متای محصول
========================================= */
.single-product .product_meta{
    margin-top:20px;
    padding:15px 20px;
    background:#FBEED5;
    border-radius:10px;
    font-size:14px;
    color:#47331B;
    text-align:center!important;
}

.single-product .product_meta > span{
    display:inline-block;
    margin-left:8px;
    color:#47331B;
}

.single-product .product_meta a{
    color:#88571C;
    font-weight:600;
    text-decoration:none;
}

.single-product .product_meta a:hover{
    color:#241708;
}

/* Tablet */
@media (max-width:1024px){
.single-product .product_meta{
    font-size:13px;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .product_meta{
    font-size:12px;
}
}


/* ================================
   تصویر محصول
================================ */
.single-product div.images img{
    border-radius:10px;
    box-shadow:0 8px 25px rgba(0,0,0,0.15);
}
.woocommerce div.product div.images .flex-control-thumbs li {
    margin: 10px 5px 0px 5px;
}
/* Mobile */
@media (max-width:768px){
.single-product div.images img{
    width:100%;
    height:auto;
}
}


/* ================================
   تب ها
================================ */
.woocommerce-tabs ul.tabs li{
    background:#FBEED5!important;
    border-radius:8px 8px 0 0;
    margin-left:5px;
}

.woocommerce-tabs ul.tabs li.active{
    background:#88571C!important;
}

.woocommerce-tabs ul.tabs li a{
    color:#241708!important;
    font-weight:600;
}

.woocommerce-tabs ul.tabs li.active a{
    color:white!important;
}

/* Mobile */
@media (max-width:768px){
.woocommerce-tabs ul.tabs{
    display:flex;
    flex-wrap:wrap;
}
}


/* ================================
   پنل تب
================================ */
.woocommerce-tabs .panel{
    border:2px solid #47331B!important;
    border-radius:5px;
    padding:15px!important;
    background:white;
}

/* Mobile */
@media (max-width:768px){
.woocommerce-tabs .panel{
    padding:12px!important;
}
}


/* =========================================
   جدول مشخصات
========================================= */
.single-product .woocommerce-product-attributes{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#FBEED5;
    border-radius:12px;
    overflow:hidden;
    margin-top:10px;
}

.single-product .woocommerce-product-attributes tr{
    background:white;
}

.single-product .woocommerce-product-attributes tr:nth-child(even){
    background:#FAF3E8;
}

.single-product .woocommerce-product-attributes th{
    width:30%;
    padding:20px 16px!important;
    background:#88571C;
    color:white;
    font-weight:600;
    text-align:center;
}

.single-product .woocommerce-product-attributes td{
    padding:14px 36px!important;
    text-align:center;
    color:#47331B;
    font-size:15px;
}
.woocommerce table.shop_attributes td p{
    padding:5px 5px 0px 5px!important;
}

/* Tablet */
@media (max-width:1024px){
.single-product .woocommerce-product-attributes td{
    font-size:14px;
    padding:12px 20px!important;
}
}

/* Mobile */
@media (max-width:768px){
.single-product .woocommerce-product-attributes td,
.single-product .woocommerce-product-attributes th{
    font-size:13px;
    padding:15px 5px 0px 5px!important;
}
.woocommerce table.shop_attributes td p{
    padding:0px 5px 15px 5px!important;
}
}


/* =================================================
   استایل کامل بخش محصولات مشابه ووکامرس
   دسکتاپ: 4 ستون
   تبلت: 2 ستون + اسکرول افقی
   موبایل: 1 ستون + اسکرول افقی
================================================= */


/* =================================================
   ریست کامل استایل پیشفرض ووکامرس
================================================= */

.single-product .related.products ul.products{
list-style:none;
margin:0;
padding:0;
display:flex;
gap:20px;
overflow:hidden;
}

.single-product .related.products li.product{
float:none !important;
margin:0 !important;
flex-shrink:0;
background:#FBEED5;
border-radius:18px;
padding:18px;
box-sizing:border-box;
display:flex;
flex-direction:column;
transition:all .3s ease;
}

/* افکت hover کارت محصول */

.single-product .related.products li.product:hover{
transform:translateY(-4px);
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}


/* =================================================
   استایل تصویر محصول
================================================= */

.single-product .related.products li.product img{
width:100%;
height:auto;
border-radius:12px;
margin-bottom:14px;
}


/* =================================================
   استایل عنوان محصول
================================================= */

.single-product .related.products li.product .woocommerce-loop-product__title{

font-size:15px;
font-weight:600;
line-height:1.6;
color:#3D2B1F;
margin-bottom:10px;
min-height:48px; /* باعث میشه ارتفاع کارت ها هماهنگ باشه */

}


/* =================================================
   استایل قیمت
================================================= */

.single-product .related.products li.product .price{

color:#88571C;
font-size:16px;
font-weight:700;
margin-bottom:14px;

}


/* =================================================
   استایل دکمه افزودن به سبد
================================================= */

.single-product .related.products li.product .button{

margin-top:auto; /* دکمه همیشه پایین کارت قرار میگیرد */

background:#88571C;
color:#fff;
border:none;
border-radius:10px;
padding:10px 14px;
font-size:14px;
font-weight:600;
text-align:center;
transition:all .25s ease;

}

.single-product .related.products li.product .button:hover{

background:#6F4516;
color:#fff;

}


/* =================================================
محصولات مشابه
================================================= */

.single-product .related.products ul.products{
overflow:hidden;
gap:10px
}

.single-product .related.products li.product{
flex:0 0 calc(25% - 15px);
}
.single-product .related.products li.product .woocommerce-loop-product__title{
    text-align:center;
}


/* =================================================
   تبلت
   2 محصول + اسکرول افقی
================================================= */

@media (max-width:1024px){

.single-product .related.products ul.products{

overflow-x:auto;
scroll-snap-type:x mandatory;
padding-bottom:10px;

}

/* استایل اسکرول بار */

.single-product .related.products ul.products::-webkit-scrollbar{
height:6px;
}

.single-product .related.products ul.products::-webkit-scrollbar-thumb{
background:#88571C;
border-radius:10px;
}

/* عرض کارت */

.single-product .related.products li.product{

flex:0 0 45%;
scroll-snap-align:start;

}

}


/* =================================================
   موبایل
   1 محصول + اسکرول افقی
================================================= */

@media (max-width:768px){

.single-product .related.products ul.products{

overflow-x:auto;
scroll-snap-type:x mandatory;
gap:15px;

}

.single-product .related.products li.product{

flex:0 0 85%;
scroll-snap-align:start;

}

/* کمی بزرگتر شدن متن در موبایل */

.single-product .related.products li.product .woocommerce-loop-product__title{
font-size:16px;
}

.single-product .related.products li.product .price{
font-size:17px;
}

}


/* =========================================
   استایل سوییچ متغیر 
========================================= */
.xt_woovs-single-product .xt_woovs-swatches .swatch.swatch-image figcaption {
    font-size: 17px!important;
    font-weight: bold!important;
}
a.reset_variations.xt_woovs-reset-visible {
    display:inline-block!important;
    background:#88571C!important;
    color:white;
    border-radius:10px;
    padding:5px 50px;
    font-size:16px;
    font-weight:600;
}
@media (max-width:1024px){
.xt_woovs-single-product .xt_woovs-swatches-wrap.xt_woovs-align-center .xt_woovs-swatches{
    margin:0;
}
}
/* =========================================
   توضیحات ایتم های ویژگی زیر نام ایتم 
========================================= */
.swatch-desc{
    font-size:12px;
    color:#88571C;
    text-align:center;
    margin-top:4px;
}

/* =========================================
   عنوان ویژگی 
========================================= */
td.label{
    text-align:center;
    vertical-align:middle;
}

td.label label{
    display:block;
    text-align:center;
    margin-bottom:0px;
}

td.label .xt_woovs-attribute-value{
    display:block;
    text-align:center;
    font-size:13px;
    color:#88571C;
}
/* ======================================================
نمایش زمان آماده سازی محصول
====================================================== */
.product-prep-time{
background:#FBEED5;
border:2px solid #88571C;
color:#47331B;
padding:12px 18px;
border-radius:10px;
margin-bottom:15px;
text-align:center;
font-size:14px;
}
