/*
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.   ***************/

/* مخفی کردن تب‌های پیش‌فرض */
.woocommerce-tabs,
.wc-tabs-wrapper {
    display: none !important;
}

/* کانتینر اصلی */
.product-linear-content {
    margin-top: 50px;
}

/* بخش‌های محتوا */
.content-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* عنوان بخش‌ها */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    color: #000;
    margin: 0;
}

.heading-text {
    font-size: 22px;
    font-weight: bold;
}

.heading-icon {
    font-size: 24px;
}

/* محتوای بخش‌ها */
.section-body {
    padding: 30px;
}

/* جدول ویژگی‌ها */
.attributes-table {
    width: 100%;
    border-collapse: collapse;
}

.attributes-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: right;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    width: 35%;
}

.attributes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.attributes-table tr:last-child td,
.attributes-table tr:last-child th {
    border-bottom: none;
}

/* خلاصه امتیازات */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.average-score {
    margin-bottom: 10px;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: #ff6b00;
}

.score-max {
    font-size: 16px;
    color: #999;
}

.stars-display .star-rating {
    font-size: 20px;
    margin: 10px 0;
}

.total-reviews {
    font-size: 14px;
    color: #666;
}

/* نمودار امتیازات */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 15px;
}

.bar-label {
    font-size: 14px;
    color: #666;
}

.bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff6b00);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-count {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* لیست نظرات */
.reviews-container {
    margin-top: 30px;
}

.review-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
    transition: transform 0.2s;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.reviewer-name {
    color: #333;
    font-size: 16px;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-stars .star {
    font-size: 16px;
    margin: 0 1px;
}

.review-stars .star.filled {
    color: #ff9800;
}

.review-stars .star.empty {
    color: #ddd;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

/* فرم نظر */
.review-form-container {
    margin-top: 40px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.review-form-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.review-submit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.review-submit-form input,
.review-submit-form select,
.review-submit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

.review-submit-form input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-submit-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

.no-reviews-message {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .section-body {
        padding: 20px 15px;
    }

    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rating-bar-item {
        grid-template-columns: 50px 1fr 30px;
        font-size: 12px;
    }
}

.woocommerce-product-rating
{
    display: none;
}

.myLicense
{
    margin-top: 18px;
    display: flex;
    align-content: center;
    justify-content: center;

}
.myLicense :first-child{
    width: 97px;
    height: 101px
}
.content-area{
    background-color: whitesmoke!important;
}
.row.align-middle.align-center

{
    background: white!important;
    margin-bottom: 20px;
    padding: 20px 10px 0px 10px;
    border-radius: 15px;
}

.product-small.col.has-hover.product.type-product {
    border: 1px solid whitesmoke!important;
}
.section-title-normal span
{
    border-bottom:3px solid #1aa2a0;
    padding-right: 20px;
    padding-left: 25px;
}

.title-wrapper {
    text-align: center;
}
.copyright-footer {
    color: white;
    font-weight: bold;
}
div#top-bar {
    display: none;
}
a.header-cart-link.icon.primary.button.round.is-small {
    background: #1aa2a0;
}
.header-bottom {
    background-color: #042b2a!important;
}
.nav-line-bottom>li>a:before, .nav-line-grow>li>a:before, .nav-line>li>a:before{
    background: #1aa2a0!important;
}
span.section-title-main
{
    color: #042b2a!important;
}
.dashboard-links
{
    flex-flow: row!important;
}
footer#footer {
    background: #042b2a!important;
    color: white!important;
}
.is-divider
{
    opacity: 1;
    background: #1aa2a0;
}
.myclass
{
    background: rgba(0,0,0,0.2)
}
.row.content-row.mb-0 {
    border: 1px solid #f5f5f5;
}
.product-info.summary.col-fit.col.entry-summary.product-summary.text-left.tooltipstered {
    border-right: 1px solid #f5f5f5;
}
nav.woocommerce-breadcrumb.breadcrumbs.uppercase {
    margin-top: 10px;
}
span.woocommerce-Price-amount.amount {
    text-align: left;
}
table.variations {
    border-bottom: 1px solid #f5f5f5;
    border-top: 1px solid #f5f5f5;
}
button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
    width: 100%;
}

.woocommerce-billing-fields__field-wrapper{
    display: flex;
    flex-direction: column;

}
p#billing_city_field{order: 6!important;}
p#billing_first_name_field {
    order: 1;
    width: 100%
}
p#billing_last_name_field {
    order: 2;
    width: 100%
}
p#billing_national_id_field
{
    order: 3;
}
p#billing_phone_field{order: 4;}
p#billing_state_field{order: 5;}
p#billing_address_1_field{order: 7;}
p#billing_postcode_field{order: 8}

p#billing_country_field {
    display: none;
}
li.wc_payment_method.payment_method_WC_ZPal img{
    display: none!important;
}
span.woocommerce-Price-amount.amount {
    text-align: center;
}
.phoneAlaram
{background: red;
    padding: 5px 10px;
    border-radius: 5px;
}
.secondary, .checkout-button, .button.checkout, .button.alt
{
    background: red!important;
}
.flickity-slider {
    text-align: center;
}
.select_option span, .select_option img {
    width: auto;
}
p
{
    color: #000;
}
.newContact * {
    color: #Fff!important;
}