/*
Theme Name: Woodmart Child
Template: woodmart
*/

/* ========== بخش عمومی ========== */

/* فرم‌های contact */
div.wpcf7 input[type="submit"] {
  width: 100% !important;
}

#a547523 label { border-radius: 10px !important; }

.social-instagram { --wd-social-brand-color: red !important; }

.scrollToTop { display: none !important; }

/* آیکون‌های داشبورد در موبایل دو ستونه */
.wd-my-account-links[class*="wd-grid"] {
    --wd-col-lg: 3;
    --wd-col-md: 2;
    --wd-col-sm: 2;
    --wd-gap-lg: 20px;
    margin-top: 30px;
}
@media (max-width: 576px) {
    .wd-my-account-links[class*="wd-grid"] {
        --wd-col-xs: 2;
        --wd-gap-xs: 15px;
    }
}

/* دکمه‌ها و ظاهر کلی */
/* .cooldown { background: #f5f5f5 !important; border-color:#ddd !important; color:#666 !important; cursor:not-allowed; */ }
.fancy-btn, .save-btn { margin-top:20px !important; width:140px !important; }
:is(.btn,.button,button,[type=submit],[type=button]):hover { color:#00000 !important; }
.single_add_to_cart_button { border-radius:5px !important; }
.product_title { font-weight:900 !important; }
.account-link { color:#595ee0 !important; text-decoration: none !important; }
address { font-style: none !important; }

.ue-title { text-align:center !important; }
.wd-entities-title { font-weight:bold !important; }

.wd-sub-menu li>a img, .wd-nav-img { max-height: var(--nav-img-height, 28px) !important; }
.wd-nav[class*="wd-style-"]>li>a { color:#dfe0e0 !important; }
.wd-nav[class*="wd-style-"]>li:hover>a { color:#b4b4b4 !important; }

.fr-row label { margin:30px 0 20px 0 !important; text-align:center; }

/* ========== استایل wishlist در my-account ========== */

.woocommerce-MyAccount-content .wd-wishlist {
    max-width: 750px;
    margin: 0 auto !important;
    padding: 20px 0;
}

.woocommerce-MyAccount-content .wd-wishlist h4 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
}

.woocommerce-MyAccount-content .wd-wishlist .wd-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 25px !important;
    justify-items: center;
}

.woocommerce-MyAccount-content .wd-wishlist .product-grid-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    max-width: 180px;
}

.woocommerce-MyAccount-content .wd-wishlist .product-grid-item img {
    border-radius: 12px;
}

.woocommerce-MyAccount-content .wd-wishlist .product-remove {
    top: 7px !important;
    left: 7px !important;
}












/* ================================
   مخفی‌سازی هدر و فوتر و همه بخش‌های اضافی
   فقط در پنل کاربری و صفحه ویش‌لیست
   ================================ */

/* صفحه پنل کاربری (my-account) */
body.woocommerce-account .site-header,
body.woocommerce-account .whb-header,
body.woocommerce-account .site-footer,
body.woocommerce-account .whb-footer,
body.woocommerce-account .footer-container,
body.woocommerce-account .page-title,
body.woocommerce-account .breadcrumbs,
body.woocommerce-account .whb-top-bar,
body.woocommerce-account .whb-navigation,
body.woocommerce-account .main-sidebar,
body.woocommerce-account .widget-area,
body.woocommerce-account .page-heading {
    display: none !important;
}

/* کشیدن عرض محتوای پنل */
body.woocommerce-account .site-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* صفحه ویش‌لیست — ID = 8468 */
.page-id-8468 .site-header,
.page-id-8468 .whb-header,
.page-id-8468 .site-footer,
.page-id-8468 .whb-footer,
.page-id-8468 .footer-container,
.page-id-8468 .page-title,
.page-id-8468 .breadcrumbs,
.page-id-8468 .whb-top-bar,
.page-id-8468 .whb-navigation,
.page-id-8468 .main-sidebar,
.page-id-8468 .widget-area,
.page-id-8468 .page-heading {
    display: none !important;
    
}


/* مخفی کردن استیکی سوشال فقط در مای‌اکانت و فرم ورود و ویش‌لیست */

body.woocommerce-account .wd-sticky-social,
body.page-id-8468 .wd-sticky-social,
body.woocommerce-account .wd-sticky-social-icons,
body.page-id-8468 .wd-sticky-social-icons {
    display: none !important;
}




/* ویش‌لیست تمام عرض */
.page-id-8468 .site-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}






















/* ============================
   وسط چین کردن محتوای اصلی
   ============================ */

/* پنل کاربری */
body.woocommerce-account .woocommerce {
    max-width: 1222px;
    margin: 0 auto !important; /* وسط چین */
    padding-top: 40px !important;
}

/* ویش‌لیست (شورت‌کد) */
.page-id-8468 .site-content .container > div {
    max-width: 1100px !important;
    margin: 0 auto !important;   /* وسط چین */
    padding-top: 40px !important;
}

/* ============================
   حذف فاصله‌های بالای صفحه
   ============================ */

.woocommerce-account .site-content,
.page-id-8468 .site-content {
    padding-top: 0 !important;
}

/* ============================
   جلوگیری از رنگ خاکستری پایین
   ============================ */

body.woocommerce-account .main-page-wrapper,
.page-id-8468 .main-page-wrapper {
    background: #000 !important;
    min-height: 100vh !important;
}




/* دسکتاپ — حذف اسکرول */
body.woocommerce-account,
body.page-id-8468,
body.page-id-8463 { /* اگر آیدی صفحه لاگین هم داری اضافه کن */
    overflow: hidden !important;
    /*height: 100vh !important;*/
}

/* موبایل — فعال شدن دوباره اسکرول */
@media (max-width: 768px) {
    body.woocommerce-account,
    body.page-id-8468,
    body.page-id-8463 {
        overflow: auto !important;
    }
}



.custom-dashboard-message {
   background: none !important;
}


#post-8468 {
   margin-top: 200px !important;
}

.woocommerce-my-account-wrapper {
   margin-top: 150px !important;
}

@media (max-width: 768px) {
    .woocommerce-my-account-wrapper {
        margin-top: 0 !important;
    }
}



#billing_country_field, 
#billing_company_field {
   display: none !important;
}







/* منوی افقی حساب کاربری مخصوص همه صفحات my-account در موبایل */
@media (max-width: 768px) {

    /* کانتینر منو روی همه صفحات */
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* خود لیست تب‌ها */
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 12px !important;
        padding: 12px !important;
        background: transparent !important;
        border: none !important;
    }

    /* آیتم‌های لیست */
    body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
        display: inline-block !important;
        margin: 0 !important;
    }

    /* لینک‌های داخل آیتم‌ها */
    body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        display: block !important;
        padding: 10px 18px !important;
        border-radius: 10px !important;
        background: #111 !important;
        border: 1px solid #333 !important;
        color: #fff !important;
        font-size: 14px !important;
    }

    /* حالت فعال – تمام صفحات */
    body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        background: #595ee0 !important;
        border-color: #595ee0 !important;
        color: #fff !important;
    }

    /* یکسان‌سازی بخش محتوا */
    body.woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        margin-top: 15px !important;
        padding: 20px !important;
    }

    /* جلوگیری از شکستن یا سایدبار اضافی */
    body.woocommerce-account .woocommerce {
        display: block !important;
    }






/* ----------------------------- */
/* منوی افقی Wishlist دقیقاً شبیه my-account */
/* ----------------------------- */

body.page-id-8468 .woocommerce-MyAccount-navigation {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* لیست منوی wishlist */
body.page-id-8468 .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 12px !important;
    padding: 12px !important;
    background: transparent !important;
    border: none !important;
}

/* آیتم‌ها */
body.page-id-8468 .woocommerce-MyAccount-navigation ul li {
    display: inline-block !important;
    margin: 0 !important;
}

/* لینک‌ها */
body.page-id-8468 .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    background: #111 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

/* حالت فعال */
body.page-id-8468 .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #595ee0 !important;
    border-color: #595ee0 !important;
    color: #fff !important;
}

/* محتوا */
body.page-id-8468 .woocommerce-MyAccount-content {
    width: 100% !important;
    margin-top: 15px !important;
    padding: 20px !important;
}

/* جلوگیری از بهم‌ریختگی ساختار */
body.page-id-8468 .woocommerce {
    display: block !important;
}


}


.woocommerce-Address-title .edit {
    color: #4262d9e6 !important;
}



/* تبدیل آدرس صورتحساب و حمل‌ونقل از 2 ستونی به 1 ستونی */
.woocommerce-Addresses.col2-set.addresses {
    display: block !important;
}

.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 30px !important; /* فاصله بین دو باکس */
}














/* تبدیل ستون‌های آدرس در صفحه مشاهده سفارش به حالت زیر هم */
.woocommerce-columns.woocommerce-columns--2.woocommerce-columns--addresses.col2-set.addresses {
    display: block !important;
}

.woocommerce-columns--addresses .woocommerce-column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-bottom: 40px !important;
}











.puiw_orders_invoice_btn_container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.puiw_orders_invoice_btn_container .button {
    margin: 0 !important;
}
/* فقط موبایل */
@media (max-width: 768px) {
    th.order-actions--heading + td {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    th.order-actions--heading + td a.button {
        flex: 1 1 auto;
        text-align: center;
        margin: 0 !important;
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 5px;
    }
}















.woocommerce-MyAccount-content>*:not(:last-child) {
   text-align: center !important; 
}

.puiw_orders_invoice_btn_container {
   display: none !important;
}












p.form-row.validate-required:has(#terms) label {
 
    text-align: center !important;
}




.woocommerce-terms-and-conditions-checkbox-text {
  color: red !important;
}




.woocommerce-terms-and-conditions-link {
  color: #ffff important;
}

.shop_table tr :is(td,th):first-child {
  white-space: nowrap !important;
}

.woocommerce-cart-form>.cart .cart-actions>.button {
  background-color: #5c5c5c !important;
}










/* فقط موبایل – جمع کردن عنوان روش حمل‌ونقل در یک خط و انداختن مبلغ زیر آن */
@media (max-width: 768px) {
    .woocommerce-checkout .shipping .woocommerce-shipping-methods li label {
        white-space: nowrap !important;   /* جلوگیری از شکستن عنوان */
        display: flex !important;
        flex-direction: column !important; /* مبلغ بیاد زیر */
        align-items: flex-end !important;
        line-height: 1.4 !important;
    }

    /* مبلغ به خط جدید بره */
    .woocommerce-checkout .shipping .woocommerce-shipping-methods li label .amount {
        margin-top: 4px !important;
        display: block !important;
    }
    .woocommerce-shipping-methods label {
        margin-bottom: 20px !important;
    }
}


@media (max-width: 768px) {
    .woocommerce-checkout .shipping .woocommerce-shipping-methods li {
        margin-bottom: 8px !important; /* کم کردن فاصله بین گزینه‌ها */
    }

    .woocommerce-checkout .shipping .woocommerce-shipping-methods li label {
        margin-top: -4px !important; /* متن رو کمی می‌کشه بالا کنار رادیوباتن */
        line-height: 1.3 !important;
    }
}




.yith-ywot-tracking-info-container , .ywot_order_details {
        background-color: rgb(246 246 246 / 0%) !important;

};

.yith-ywot-tracking-info-header {
    display: none !important;
}


.ywot_order_details {
    font-size: 18px important;
}


/* فقط دکمه Track در صفحه سفارش */
.woocommerce-order-details .order-actions--heading + td a.track-button {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 5px !important;
    vertical-align: middle !important;
}

/* جلوگیری از شکستن خط برای دکمه‌ها */
.woocommerce-order-details .order-actions--heading + td {
    white-space: nowrap !important;
}















.wc-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    list-style: none !important;
    margin-top: 5px !important;
    padding: 0 !important;
}

.wc-item-meta li {
    display: flex;
    align-items: center;
    gap: 5px;
  
    padding: 0 !important;
}



.wc-item-meta li>* {
    margin-top: 5px !important;
}


/* دکمه‌های عملیات را فلکس می‌کنیم */
.order-actions--heading + td {
    display: flex !important;
    gap: 10px;
    
}

/* دکمه‌ها را در ترتیب دلخواه می‌چینیم */
.order-actions--heading + td a.button.track-button {
    order: 1; /* دکمه Track بیاد اول */
}

.order-actions--heading + td a.button.order-again {
    order: 2; /* دکمه سفارش دوباره بیاد دوم */
}

/* بقیه دکمه‌ها بدون تغییر */
.order-actions--heading + td a.pepro-ultimate-invoice_html { order: 3; }
.order-actions--heading + td a.pepro-ultimate-invoice_pdf { order: 4; }

















/* دو ستونه کردن دکمه‌های بخش عملیات سفارش در موبایل */
@media (max-width: 768px) {
    
    /* تبدیل سطر عملیات به گرید */
    td.woocommerce-orders-table__cell-order-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding-top: 40px !important; /* برای جا دادن عنوان */
        position: relative;
    }

    /* عنوان عملیات‌ها در یک سطر جدا */
    td.woocommerce-orders-table__cell-order-actions::before {
        content: "عملیات‌ها";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        text-align: right;
        font-weight: bold;
        margin-bottom: 10px;
        display: block;
    }

    /* استایل دکمه‌ها داخل گرید */
    td.woocommerce-orders-table__cell-order-actions a {
        width: 100% !important;
        height: 48px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
    }



.woocommerce-MyAccount-content>*:not(:last-child) {
         line-height: 1.8 !important;
    }








}



.yith-ywot-tracking-info-container .ywot_order_details {
            margin-top: -30px !important;
    }




.woocommerce-account div.yith-ywot-tracking-info-container p.yith-ywot-tracking-info-header {
    display: none !important;
}

div.yith-ywot-tracking-info-container > div > p > a 
{
color: rgb(89,94,224) !important;
}


form#customer_login {
    display: none !important;
}



.woocommerce-customer-details--email {
     display: none !important;
}










.fantareal-login-box {
    border: 2px dashed #ffff;
    padding: 35px 25px;
    margin: 30px auto;
    border-radius: 12px;
    text-align: center;
    background: #0f0f0f;
}

.fantareal-login-box p {
    font-size: 17px;
    color: #e1e1e1;
    margin-bottom: 25px;
}

.fantareal-login-btn {
    background: #ffffff;
    color: #000;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.fantareal-login-btn:hover {
    background: #cfcfcf;
    color: #000;
}





div > div.woocommerce-MyAccount-content > div.wd-my-account-links.wd-grid-g > div.telegram-support-link > a:before {
    content: "\f179" !important;
}

div > div.woocommerce-MyAccount-content > div.wd-my-account-links.wd-grid-g > div.track-orders-link > a:before {
    content: "\f102" !important;
}

div > div.woocommerce-MyAccount-content > div.wd-my-account-links.wd-grid-g > div.back_to_shop-link > a:before {
    content: "\f105" !important;
}





.save-btn {
   margin-top: 20px !important;
}


.woocommerce-account a.track-button span.ywot-icon-delivery:before {
   display: none !important;
}








div > div.woocommerce-MyAccount-content > section.woocommerce-order-details > div.responsive-table > table > tfoot:nth-child(4) > tr:nth-child(2) > td
{
max-width: 100%  !important;
    width: 100%  !important;
}

.woocommerce-order-details tfoot tr:nth-child(2) td {
    display: block !important;
}

.woocommerce-order-details tfoot tr:nth-child(2) td .woocommerce-Price-amount {
    display: block;
    margin-bottom: 4px;
}

.woocommerce-order-details tfoot tr:nth-child(2) td .shipped_via {
    display: block;
}









/* td را فلکس می‌کنیم فقط برای این ردیف */
.woocommerce-order-details tfoot tr:nth-child(2) td {
    display: flex !important;
   justify-content: flex-end;
    gap: 10px; /* فاصله بین دو آیتم */
}

/* ترتیب برعکس شود: اول shipped_via بعد amount */
.woocommerce-order-details tfoot tr:nth-child(2) td .shipped_via {
    order: 1;
}

.woocommerce-order-details tfoot tr:nth-child(2) td .woocommerce-Price-amount {
    order: 2;
}


table > tfoot:nth-child(4) > tr:nth-child(2) > td > small {

  font-size: 100% !important;
}



table > tfoot > tr:nth-child(2) > td > small {
  font-size: 100% !important;
}




table > tfoot > tr:nth-child(2) > td {
    max-width: 100% !important;
    width: 100% !important;
}


#fr-edit-account-form label {
    text-align: right !important;
    margin-right: 5px !important;
    margin-bottom: 10px !important;
}

.woocommerce-EditAccountForm input {
    text-align: right !important;
}











/* والد اصلی که همه سکشن‌ها داخل آن هستند */
.woocommerce-order {
    display: flex;
    flex-direction: column;
}

/* متن تشکر */
.woocommerce-notice.woocommerce-thankyou-order-received {
    order: 1;
}

/* اطلاعات سفارش */
.woocommerce-order-overview.woocommerce-thankyou-order-details {
    order: 2;
}

/* جزئیات سفارش */
.woocommerce-order-details {
    order: 3;
}

/* کل سکشن آدرس‌ها که باید آخر باشد */
.woocommerce-customer-details {
    order: 4;
}






:is(.btn,.button,button,[type=submit],[type=button]):hover {
  border-color: #3B82F6 !important;
}



p#terms_description {
    text-align: center;
}

#payment > div > div > div > p {
   color: #bab9b9;
}

#shipping_country_field , #shipping_company_field {
   display: none !important;
}










#customer_details > div.woocommerce-account-fields > p > label {
  display: none !important;
}

#billing_phone {
 direction: rtl;
}








/* ----------- ردیف استان + شهر ----------- */
#billing_state_field,
#billing_city_field {
    width: 48% !important;
    float: right !important;
    clear: none !important;
}

#billing_city_field {
    margin-right: 4% !important; /* فاصله بین استان و شهر */
}

/* ----------- ردیف خیابان 1 + خیابان 2 ----------- */
#billing_address_1_field,
#billing_address_2_field {
    width: 48% !important;
    float: right !important;
    clear: none !important;
}

/* فیلد خیابان 2 از سمت راست فاصله داشته باشد تا کنار خیابان 1 قرار بگیرد */
#billing_address_2_field {
    margin-right: 4% !important;
}

/* جلوگیری از بهم‌زدن استایل توسط قالب Woodmart */
.woocommerce-billing-fields .form-row {
    display: block !important;
}


#billing_address_2 {
    margin-top: 28px !important;
}