/*
Theme Name: قالب حیات سالم
Theme URI: https://example.com
Author: شما
Author URI: https://example.com
Description: یک قالب ساده و زیبا با پشتیبانی کامل از المنتور - آماده برای توسعه تدریجی
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: behin-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor, rtl-language-support
*/

/* ==========================================================================
   استایل‌های پایه
   ========================================================================== */
global {
    --primary-color: #C7191E;
    --secondary-color: #6E6F74;
    --text-color: #333;
    --background-color: #fff;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   کانتینر اصلی
   ========================================================================== */

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   هدر و فوتر - بدون استایل پیش‌فرض
   توسط Elementor Theme Builder مدیریت می‌شود
   ========================================================================== */

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

.site-content {
    padding: 40px 0;
    min-height: 60vh;
}

.content-area {
    width: 100%;
}

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

article {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.entry-content {
    line-height: 1.8;
    color: #555;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}


/* ==========================================================================
   دکمه‌ها
   ========================================================================== */

.btn,
button,
input[type="submit"] {
    background-color: #3498db;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   فرم‌ها
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    /* font-family: inherit; */
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* ==========================================================================
   ریسپانسیو
   ========================================================================== */

@media (max-width: 768px) {
    .entry-title {
        font-size: 24px;
    }

    article {
        padding: 20px;
    }
}

/* ==========================================================================
   پشتیبانی از المنتور
   ========================================================================== */

.elementor-page .site-content {
    padding: 0;
}

.elementor-page .content-area {
    width: 100%;
    max-width: 100%;
}



/* استایل‌های پایه */
.single-product-widget {
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-product-widget:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    /* margin-bottom: 15px; */
}

.product-image img {
    max-width: 80%;
    height: auto;
    border-radius: 4px;
}

.product-title {
    margin: 10px 0;
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
}

.product-button {
    display: inline-block;
    padding: 8px 12px;
    background: #C7191E;
    color: white;
    width: 100%;
    /* text-decoration: none; */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* .product-button:hover {
    background-color: #005a87;
    color: white;
} */
/* استایل‌های پایه برای ویجت‌های ووکامرس */
.wc-single-product-widget {
    text-align: center;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.wc-single-product-widget:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.wc-single-product-widget .product-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.wc-single-product-widget .product-image img {
    width: 80%;
    height: auto;
    transition: transform 0.3s ease;
}

.wc-single-product-widget:hover .product-image img {
    transform: scale(1.05);
}

.wc-single-product-widget .product-title {
    margin: 15px 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.wc-single-product-widget .product-price {
    margin: 10px 0 15px;
    font-size: 16px;
    font-weight: 700;
    color: #d33;
}

.wc-single-product-widget .product-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #C7191E;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wc-single-product-widget .product-button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

/* استایل گرید محصولات */
.wc-product-grid-container {
    width: 100%;
}

.wc-product-grid {
    display: grid;
    gap: 30px;
}

.wc-product-grid.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.wc-product-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wc-product-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wc-product-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wc-product-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.wc-product-grid .product-item {
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wc-product-grid .product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.wc-product-grid .product-image {
    /* margin-bottom: 15px; */
    overflow: hidden;
    border-radius: 6px;
}

.wc-product-grid .product-image img {
    width: 70%;
    height: auto;
    transition: transform 0.3s ease;
}

.wc-product-grid .product-item:hover .product-image img {
    transform: scale(1.05);
}

.wc-product-grid .product-title {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wc-product-grid .product-title a {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.wc-product-grid .product-title a:hover {
    color: #C7191E;
}

.wc-product-grid .product-price {
    margin: 10px 0 15px;
    font-size: 15px;
    font-weight: 700;
    color: #d33;
}

.wc-product-grid .product-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wc-product-grid .product-button:hover {
    background-color: #005a87;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .wc-product-grid.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {

    .wc-product-grid.columns-4,
    .wc-product-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .wc-product-grid.columns-3,
    .wc-product-grid.columns-4,
    .wc-product-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wc-product-grid {
        gap: 20px;
    }
}

@media (max-width: 576px) {

    .wc-product-grid.columns-2,
    .wc-product-grid.columns-3,
    .wc-product-grid.columns-4,
    .wc-product-grid.columns-6 {
        grid-template-columns: repeat(1, 1fr);
    }

    .wc-single-product-widget,
    .wc-product-grid .product-item {
        padding: 15px;
    }
}

/* ویجت اسلایدر نظرات مشتریان */
.customer-reviews-slider-widget {
    position: relative;
    width: 100%;
}

/* Row اصلی - دو container افقی */
.customer-reviews-slider-widget .review-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

/* Container 1: پروفایل (عکس + نام + سمت) عمودی */
.customer-reviews-slider-widget .profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    text-align: center;
}

.customer-reviews-slider-widget .profile-image {
    margin-bottom: 15px;
}

.customer-reviews-slider-widget .profile-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.customer-reviews-slider-widget .customer-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.customer-reviews-slider-widget .customer-role {
    margin: 0;
    font-size: 16px;
    color: #777;
}

/* Container 2: متن نظر */
.customer-reviews-slider-widget .review-container {
    flex: 1;
    padding: 30px 35px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.customer-reviews-slider-widget .review-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: right;
}

/* استایل Swiper */
.customer-reviews-slider-widget .swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
}

.customer-reviews-slider-widget .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.customer-reviews-slider-widget .swiper-button-next,
.customer-reviews-slider-widget .swiper-button-prev {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.customer-reviews-slider-widget .swiper-button-next:after,
.customer-reviews-slider-widget .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.customer-reviews-slider-widget .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.customer-reviews-slider-widget .swiper-pagination-bullet-active {
    background: #333;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .customer-reviews-slider-widget .review-row {
        gap: 30px;
    }

    .customer-reviews-slider-widget .profile-image img {
        width: 80px;
        height: 80px;
    }

    .customer-reviews-slider-widget .customer-name {
        font-size: 18px;
    }

    .customer-reviews-slider-widget .customer-role {
        font-size: 14px;
    }

    .customer-reviews-slider-widget .review-container {
        padding: 25px 30px;
    }

    .customer-reviews-slider-widget .review-text {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .customer-reviews-slider-widget .review-row {
        flex-direction: column;
        gap: 25px;
    }

    .customer-reviews-slider-widget .profile-image img {
        width: 70px;
        height: 70px;
    }

    .customer-reviews-slider-widget .customer-name {
        font-size: 16px;
    }

    .customer-reviews-slider-widget .customer-role {
        font-size: 13px;
    }

    .customer-reviews-slider-widget .review-container {
        padding: 20px 25px;
    }

    .customer-reviews-slider-widget .swiper-button-next,
    .customer-reviews-slider-widget .swiper-button-prev {
        display: none;
    }
}


/* صفحه فاکتور */
.invoice-page-container {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
}

.invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.invoice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* دکمه چاپ مخفی در پرینت */
@media print {

    .invoice-actions,
    .useful-links,
    .order-guide {
        display: none !important;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .invoice-actions {
        flex-direction: column;
        align-items: center;
    }

    .invoice-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin-bottom: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
    }
}