/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* @font-face { 
font-family: hasti; font-style: normal; font-weight: normal; 
src: url('fonts/Vazir-Regular-FD-UI.woff') format('woff'), 
     url('fonts/Vazir-Regular-FD-UI.woff') format('woff');
 }
 body, a, p, div, h1, h2, h3, h4, h5, h6 {
 font-family: Vazir; /* نام فونت شما */ } */
@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/Vazir-Black-FD-UI.eot');
    src: url('fonts/Vazir-Black-FD-UI.eot?#iefix') format('embedded-opentype'),
         url('fonts/Vazir-Black-FD-UI.woff2') format('woff2'),
         url('fonts/Vazir-Black-FD-UI.woff') format('woff'),
         url('fonts/Vazir-Black-FD-UI.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: bold;
    src: url('fonts/Vazir-Bold-FD-UI.eot');
    src: url('fonts/Vazir-Bold-FD-UI.eot?#iefix') format('embedded-opentype'),
         url('fonts/Vazir-Bold-FD-UI.woff2') format('woff2'),
         url('fonts/Vazir-Bold-FD-UI.woff') format('woff'),
         url('fonts/Vazir-Bold-FD-UI.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/Vazir-Light-FD-UI.eot');
    src: url('fonts/Vazir-Light-FD-UI.eot?#iefix') format('embedded-opentype'),
         url('fonts/Vazir-Light-FD-UI.woff2') format('woff2'),
         url('fonts/Vazir-Light-FD-UI.woff') format('woff'),
         url('fonts/Vazir-Light-FD-UI.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/Vazir-Medium-FD-UI.eot');
    src: url('fonts/Vazir-Medium-FD-UI.eot?#iefix') format('embedded-opentype'),
         url('fonts/Vazir-Medium-FD-UI.woff2') format('woff2'),
         url('fonts/Vazir-Medium-FD-UI.woff') format('woff'),
         url('fonts/Vazir-Medium-FD-UI.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: normal;
    src: url('fonts/Vazir-Regular-FD-UI.eot');
    src: url('fonts/Vazir-Regular-FD-UI.eot?#iefix') format('embedded-opentype'),
         url('fonts/Vazir-Regular-FD-UI.woff2') format('woff2'),
         url('fonts/Vazir-Regular-FD-UI.woff') format('woff'),
         url('fonts/Vazir-Regular-FD-UI.ttf') format('truetype');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 100;
    src: url('fonts/Vazir-Thin-FD-UI.eot');
    src: url('fonts/Vazir-Thin-FD-UI.eot?#iefix') format('embedded-opentype'),
         url('fonts/Vazir-Thin-FD-UI.woff2') format('woff2'),
         url('fonts/Vazir-Thin-FD-UI.woff') format('woff'),
         url('fonts/Vazir-Thin-FD-UI.ttf') format('truetype');
}

/* استفاده از فونت در کل قالب */
body, p, h1, h2, h3, h4, h5, h6, .site-title, .entry-title, button, input, textarea {
    font-family: 'Vazir', 'tahoma', 'verdana', sans-serif;
}



/* استایل کلی صفحه سفارشات */
.woocommerce-MyAccount-content {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

/* کارت اطلاعات سفارش */
.woocommerce-MyAccount-content > p {
    background: linear-gradient(135deg, #66eac5 0%, #1b3929 100%);
    padding: 20px 25px;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.woocommerce-MyAccount-content > p mark {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 3px;
}

.order-status {
    font-weight: bold;
}

/* تایم‌لاین بروزرسانی‌ها (بخش تاریخچه سفارش) */
.woocommerce-OrderUpdates {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 35px;
    list-style: none;
    border: 1px solid #e9ecef;
}

.woocommerce-OrderUpdates h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #2c3e50;
    border-right: 4px solid #667eea;
    padding-right: 15px;
}

.woocommerce-OrderUpdate {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.woocommerce-OrderUpdate:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.woocommerce-OrderUpdate-meta {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 5px;
}

.woocommerce-OrderUpdate-description {
    color: #495057;
    line-height: 1.6;
}

/* جزییات سفارش - جدول محصولات */
.woocommerce-order-details {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.woocommerce-order-details__title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-right: 4px solid #667eea;
    padding-right: 15px;
}

.order_details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
}

.order_details thead tr {
    background: linear-gradient(135deg, #66eac5 0%, #1b3929 100%);
    color: white;
}

.order_details th {
    padding: 15px;
    font-weight: 600;
}

.order_details td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.order_details tbody tr:hover {
    background-color: #f8f9fa;
}

.order_details tfoot tr:last-child td,
.order_details tfoot tr:last-child th {
    border-bottom: none;
}

.order_details tfoot th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.order_details .product-quantity {
    font-size: 12px;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 20px;
    margin-right: 8px;
}

/* دکمه سفارش دوباره */
.order-again {
    margin-top: 25px;
    text-align: left;
}

.order-again .button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.order-again .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

/* بخش آدرس‌ها */
.woocommerce-customer-details {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.addresses {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
}

.woocommerce-column--billing-address:hover,
.woocommerce-column--shipping-address:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.woocommerce-column__title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    border-right: 3px solid #667eea;
    padding-right: 12px;
}

address {
    font-style: normal;
    line-height: 1.8;
    color: #495057;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content > p {
        font-size: 14px;
        padding: 15px;
    }
    
    .order_details,
    .order_details tbody,
    .order_details tr,
    .order_details td {
        display: block;
        width: 100%;
    }
    
    .order_details thead {
        display: none;
    }
    
    .order_details tr {
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 10px;
    }
    
    .order_details td {
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .order_details td:before {
        content: attr(data-title);
        font-weight: bold;
        margin-left: 10px;
    }
    
    .addresses {
        flex-direction: column;
    }
}


body, .woocommerce-MyAccount-content, p, h2, td, th, address {
    font-family: 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;
}


