/*
Theme Name: My Theme
Author: Your Name
Version: 1.0
*/
@font-face {
    font-family: 'Yekan Bakh';
    src: url('assets/fonts/YekanBakh-Regular.woff2') format('woff2'),
         url('assets/fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* برای بهبود عملکرد بارگذاری فونت */
}

/* برای وزن‌های مختلف */
@font-face {
    font-family: 'Yekan Bakh';
    src: url('assets/fonts/YekanBakh-Bold.woff2') format('woff2'),
         url('assets/fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    color: #333;
    direction: rtl; /* جهت‌دهی راست به چپ */
}

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

/* -------------------------------------------
   استایل‌های هدر
   ------------------------------------------- */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.site-header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header img {
    max-height: 50px;
}

.site-header .site-title a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #0073aa;
}

/* -------------------------------------------
   استایل‌های فوتر
   ------------------------------------------- */
.site-footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

.social-links a {
    font-size: 20px;
    margin: 0 10px;
}

/* -------------------------------------------
   استایل‌های دینامیک از پنل تنظیمات
   ------------------------------------------- */

/* استفاده از متغیرهای CSS */
.main-navigation ul li a:hover {
    color: var(--primary-color);
}

.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
}

.site-header {
    background-color: var(--header-bg-color);
}

/* استایل ووکامرس */
/* Custom CSS for My Account Layout */

/* Main Container for two columns */
.myaccount-container {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    gap: 30px;
    padding: 30px 0;
}

/* My Account Navigation (Right Column) */
.myaccount-navigation {
    flex-basis: 250px;
    flex-shrink: 0;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
}

.myaccount-navigation .user-profile-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.myaccount-navigation .user-profile-info h4 {
    margin: 10px 0 5px;
}
.myaccount-navigation .user-profile-info p {
    font-size: 14px;
    color: #666;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 5px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #007bff;
    color: #fff;
}

/* My Account Content (Left Column) */
.myaccount-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* RTL Specific Styles (for better RTL alignment) */
html[dir="rtl"] .myaccount-navigation {
    float: right;
}

html[dir="rtl"] .myaccount-content {
    float: left;
}

/* Custom CSS for Single Product Page (Dark Theme) */

/* Product Container */
.single-product .site-main {
    background-color: #1a1a1a;
    padding: 40px 0;
}
.woocommerce-product-gallery__wrapper {
    background-color: #2c2c2c;
    border-radius: 10px;
}

/* Product Image and Summary Layout */
.single-product .product {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.single-product .woocommerce-product-gallery {
    flex: 1 1 45%;
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-product .summary.entry-summary {
    flex: 1 1 45%;
    padding: 30px;
    background-color: #2c2c2c;
    border-radius: 10px;
    color: #e0e0e0;
}

/* Product Title */
.single-product .product_title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

/* Price */
.single-product .price {
    font-size: 2rem;
    color: #8ab4f8;
    margin-bottom: 20px;
}
.single-product .price del {
    color: #aaa;
    font-size: 0.8em;
}

/* Add to Cart form */
.single-product .cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.single-product .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-weight: bold;
}
.single-product .quantity input {
    background-color: #3c3c3c;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 60px;
    text-align: center;
}
.single-product .single_add_to_cart_button {
    background-color: #4a90e2;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.single-product .single_add_to_cart_button:hover {
    background-color: #3b7ad1;
}

/* Product Tabs */
.woocommerce-tabs {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    color: #ccc;
}
.woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
    justify-content: flex-end; /* RTL fix */
}
.woocommerce-tabs ul.tabs li {
    margin: 0 10px;
}
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #888;
    transition: color 0.3s;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #fff;
    border-bottom: 2px solid #8ab4f8;
}

/* Responsive */
@media (max-width: 768px) {
    .single-product .product {
        flex-direction: column;
    }
}

/* Custom CSS for Single Product Page (Dark Theme) */

/* Main Product Wrapper */
.single-product .site-main {
    background-color: #1a1a1a;
    padding: 40px 0;
}

/* Two-Column Layout */
.woocommerce-product-main-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Gallery Section */
.single-product .woocommerce-product-gallery {
    flex: 1 1 45%;
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
}

/* Summary Section */
.single-product .summary.entry-summary {
    flex: 1 1 45%;
    padding: 30px;
    background-color: #2c2c2c;
    border-radius: 10px;
    color: #e0e0e0;
}

/* Product Title */
.single-product .product_title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-align: right;
}

/* Price */
.single-product .price {
    font-size: 2rem;
    color: #8ab4f8;
    margin-bottom: 20px;
    text-align: right;
}
.single-product .price del {
    color: #aaa;
    font-size: 0.8em;
}

/* Add to Cart form */
.single-product .cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.single-product .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-weight: bold;
    justify-content: flex-end;
}
.single-product .quantity input {
    background-color: #3c3c3c;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 60px;
    text-align: center;
}
.single-product .single_add_to_cart_button {
    background-color: #4a90e2;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.single-product .single_add_to_cart_button:hover {
    background-color: #3b7ad1;
}

/* Product Tabs & Related Products */
.woocommerce-tabs, .related.products {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    color: #ccc;
    max-width: 1200px;
    margin: 30px auto;
}
.woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
    justify-content: flex-end;
}
.woocommerce-tabs ul.tabs li {
    margin: 0 10px;
}
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #888;
    transition: color 0.3s;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #fff;
    border-bottom: 2px solid #8ab4f8;
}
.woocommerce-tabs .panel {
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-product-main-section {
        flex-direction: column;
    }
}