﻿
/* ======================================
   SAJMEH NOGHRE — LUXURY SILVER HEADER
   ====================================== */

:root {
    --sn-teal: #176B68;
    --sn-deep: #102F35;
    --sn-silver: #E1E7EB;
    --sn-metal: #A8B7BF;
    --sn-white: #FFFFFF;
}

.wrapper-header {
    position: relative;
    z-index: 100;
    direction: rtl;
    min-height: 118px;
    margin-top: 58px;
    padding: 25px 30px 20px;
    overflow: visible;

    background:
        radial-gradient(ellipse at 50% 0%, #FFFFFF 0%, transparent 68%),
        linear-gradient(180deg, #FFFFFF 0%, #F5F8F9 72%, #E1E7EB 100%);

    border: 1px solid rgba(168,183,191,.65);
    border-top: 3px solid #176B68;
    border-radius: 0 0 24px 24px;

    box-shadow:
        0 14px 35px rgba(16,47,53,.10),
        0 3px 8px rgba(16,47,53,.05),
        inset 0 1px 0 #FFFFFF;
}

/* نوار خدمات بالایی */
.wrapper-header::before {
    content: "✦  خرید مطمئن ساچمه نقره 　|　 تضمین اصالت کالا 　|　 پشتیبانی خرید  ✦";
    position: absolute;
    top: -43px;
    right: -1px;
    left: -1px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #F5FAFB;
    background: linear-gradient(
        105deg,
        #102F35 0%,
        #174B4C 35%,
        #176B68 52%,
        #174B4C 75%,
        #102F35 100%
    );

    border: 1px solid rgba(225,231,235,.22);
    border-bottom: 1px solid rgba(225,231,235,.55);
    border-radius: 13px 13px 0 0;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: .25px;
    box-shadow: 0 4px 12px rgba(16,47,53,.12);
}

/* نوار فلزی و نور ظریف پایین */
.wrapper-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 5%;
    left: 5%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #A8B7BF 14%,
        #FFFFFF 30%,
        #176B68 50%,
        #FFFFFF 70%,
        #A8B7BF 86%,
        transparent
    );

    box-shadow: 0 0 10px rgba(23,107,104,.22);
    pointer-events: none;
}

/* لوگو */
.wrapper-header .logo-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px 17px;
}

.wrapper-header .logo-header img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(16,47,53,.08));
}

/* قوس اختصاصی زیر لوگو */
.wrapper-header .logo-header::after {
    content: "";
    position: absolute;
    right: 5%;
    bottom: 2px;
    width: 90%;
    height: 14px;
    border-bottom: 2px solid #176B68;
    border-radius: 0 0 50% 50%;
}

.wrapper-header .logo-header::before {
    content: "✦";
    position: absolute;
    left: 0;
    bottom: -4px;
    z-index: 2;
    color: #A8B7BF;
    font-size: 13px;
    text-shadow: 0 0 7px rgba(23,107,104,.3);
}

/* منو */
.wrapper-header .box-nav-ul {
    gap: 5px !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrapper-header .box-nav-ul .item-link {
    position: relative;
}

.wrapper-header .box-nav-ul .item-link > a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-width: 88px;
    padding: 8px 11px 13px;

    color: #102F35;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;

    transition: color .25s ease, transform .25s ease;
}

/* آیکون‌های منو */
.wrapper-header .box-nav-ul .item-link > a::before {
    display: block;
    color: #176B68;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 22px;
    transition: color .25s ease, transform .25s ease;
}

.wrapper-header .box-nav-ul .item-link:nth-child(1) > a::before {
    content: "⌂";
}

.wrapper-header .box-nav-ul .item-link:nth-child(2) > a::before {
    content: "▦";
}

.wrapper-header .box-nav-ul .item-link:nth-child(3) > a::before {
    content: "◈";
}

.wrapper-header .box-nav-ul .item-link:nth-child(4) > a::before {
    content: "ⓘ";
}

.wrapper-header .box-nav-ul .item-link:nth-child(5) > a::before {
    content: "◎";
}

/* خط فعال زیر هر گزینه */
.wrapper-header .box-nav-ul .item-link > a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    right: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #176B68, #A8B7BF);
    border-radius: 5px;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.wrapper-header .box-nav-ul .item-link > a:hover {
    color: #176B68;
    transform: translateY(-2px);
}

.wrapper-header .box-nav-ul .item-link > a:hover::before {
    color: #102F35;
    transform: translateY(-2px);
}

.wrapper-header .box-nav-ul .item-link > a:hover::after {
    transform: scaleX(1);
}

/* ابزارهای سمت چپ */
.wrapper-header .nav-icon {
    gap: 11px !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* جست‌وجوی بیضی */
.wrapper-header .nav-icon .nav-search > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 158px;
    height: 45px;
    padding: 0 17px;

    color: #FFFFFF;
    background: linear-gradient(115deg, #176B68, #102F35);
    border: 1px solid rgba(168,183,191,.8);
    border-radius: 30px;

    box-shadow:
        0 5px 13px rgba(16,47,53,.15),
        inset 0 1px 0 rgba(255,255,255,.12);

    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}

.wrapper-header .nav-icon .nav-search > a::before {
    content: "جستجو در محصولات";
    margin-right: 9px;
    color: #FFFFFF;
    font-size: 11px;
    white-space: nowrap;
}

.wrapper-header .nav-icon .nav-search .icon {
    color: #E1E7EB;
    font-size: 18px;
}

.wrapper-header .nav-icon .nav-search > a:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 18px rgba(16,47,53,.2),
        0 0 10px rgba(23,107,104,.16);
}

/* حساب کاربری */
.wrapper-header .nav-icon .nav-account > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: #176B68;
    background: linear-gradient(145deg, #FFFFFF, #E8EEF1);
    border: 1px solid #A8B7BF;
    border-radius: 50%;

    box-shadow: 0 3px 9px rgba(16,47,53,.07);
    text-decoration: none;
    transition: .25s ease;
}

.wrapper-header .nav-icon .nav-account > a:hover {
    color: #FFFFFF;
    background: #176B68;
    border-color: #176B68;
    box-shadow: 0 0 13px rgba(23,107,104,.22);
}

/* واکنش‌گرایی تبلت */
@media (max-width: 1199px) {
    .wrapper-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .wrapper-header .box-nav-ul {
        gap: 0 !important;
    }

    .wrapper-header .box-nav-ul .item-link > a {
        min-width: 68px;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 12px;
    }

    .wrapper-header .nav-icon .nav-search > a {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    .wrapper-header .nav-icon .nav-search > a::before {
        display: none;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .wrapper-header {
        min-height: 76px;
        margin-top: 48px;
        padding: 11px 8px 13px;
        border-radius: 0 0 15px 15px;
    }

    .wrapper-header::before {
        top: -36px;
        height: 36px;
        font-size: 10px;
    }

    .wrapper-header .logo-header {
        padding: 4px 5px 11px;
    }

    .wrapper-header .logo-header img {
        max-height: 47px;
    }

    .wrapper-header .logo-header::after {
        height: 10px;
    }

    .wrapper-header .nav-icon {
        gap: 7px !important;
    }

    .wrapper-header .nav-icon .nav-search > a,
    .wrapper-header .nav-icon .nav-account > a {
        width: 37px;
        height: 37px;
    }

    .wrapper-header .nav-icon .nav-search .icon {
        font-size: 16px;
    }
}

/* =========================================
   SAJMEH NOGHRE — CONTENT TYPOGRAPHY
   Articles / News / Products / Categories
   ========================================= */

:root {
    --sn-content-teal: #176B68;
    --sn-content-deep: #102F35;
    --sn-content-silver: #A8B7BF;
    --sn-content-light: #E1E7EB;
    --sn-content-bg: #F5F8F9;
    --sn-content-text: #34464C;
}

/* تنظیم پایه محتوای صفحات */
body {
    color: var(--sn-content-text);
}

main,
.main-content,
.site-content {
    direction: rtl;
}

/* =========================================
   1. ARTICLE & NEWS TYPOGRAPHY
   ========================================= */

.blog-content,
.article-content,
.news-content,
.blog-detail,
.news-detail,
.single-post article,
.single-news article,
main article {
    direction: rtl;
    text-align: justify;
    line-height: 2.15;
    color: var(--sn-content-text);
    font-size: 15px;
}

/* تیتر اصلی مقاله و خبر */
.blog-content h1,
.article-content h1,
.news-content h1,
.blog-detail h1,
.news-detail h1,
.single-post article h1,
.single-news article h1,
main article h1 {
    color: var(--sn-content-deep);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.8;
    margin: 25px 0 22px;
}

/* تیترهای سطح دوم */
.blog-content h2,
.article-content h2,
.news-content h2,
.blog-detail h2,
.news-detail h2,
.single-post article h2,
.single-news article h2,
main article h2 {
    color: var(--sn-content-deep);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.9;
    margin: 38px 0 18px;
    padding: 10px 15px 10px 12px;
    border-right: 4px solid var(--sn-content-teal);
    background: linear-gradient(90deg, transparent, #F0F5F6);
    border-radius: 0 7px 7px 0;
}

/* تیترهای سطح سوم */
.blog-content h3,
.article-content h3,
.news-content h3,
.blog-detail h3,
.news-detail h3,
.single-post article h3,
.single-news article h3,
main article h3 {
    color: var(--sn-content-teal);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.9;
    margin: 28px 0 13px;
}

/* تیترهای کوچک‌تر */
.blog-content h4,
.article-content h4,
.news-content h4,
.news-detail h4,
main article h4 {
    color: var(--sn-content-deep);
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 12px;
}

/* پاراگراف‌ها */
.blog-content p,
.article-content p,
.news-content p,
.blog-detail p,
.news-detail p,
.single-post article p,
.single-news article p,
main article p {
    color: var(--sn-content-text);
    font-size: 15px;
    line-height: 2.2;
    margin: 0 0 19px;
}

/* لینک‌های داخل محتوا */
.blog-content a,
.article-content a,
.news-content a,
.blog-detail a,
.news-detail a,
main article a {
    color: var(--sn-content-teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(23,107,104,.25);
    transition: color .2s ease, border-color .2s ease;
}

.blog-content a:hover,
.article-content a:hover,
.news-content a:hover,
.blog-detail a:hover,
.news-detail a:hover,
main article a:hover {
    color: var(--sn-content-deep);
    border-color: var(--sn-content-deep);
}

/* فهرست‌ها */
.blog-content ul,
.blog-content ol,
.article-content ul,
.article-content ol,
.news-content ul,
.news-content ol,
.blog-detail ul,
.blog-detail ol,
.news-detail ul,
.news-detail ol,
main article ul,
main article ol {
    padding-right: 25px;
    margin: 15px 0 25px;
    line-height: 2.15;
}

.blog-content li,
.article-content li,
.news-content li,
.blog-detail li,
.news-detail li,
main article li {
    padding-right: 4px;
    margin-bottom: 8px;
}

/* تصاویر */
.blog-content img,
.article-content img,
.news-content img,
.blog-detail img,
.news-detail img,
main article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* جدول‌های مقاله و خبر */
.blog-content table,
.article-content table,
.news-content table,
.blog-detail table,
.news-detail table,
main article table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    overflow: hidden;
    border: 1px solid var(--sn-content-light);
    border-radius: 10px;
}

.blog-content th,
.article-content th,
.news-content th,
.blog-detail th,
.news-detail th,
main article th {
    background: var(--sn-content-deep);
    color: #FFFFFF;
    padding: 13px 12px;
    font-weight: 700;
    text-align: right;
}

.blog-content td,
.article-content td,
.news-content td,
.blog-detail td,
.news-detail td,
main article td {
    padding: 12px;
    border: 1px solid var(--sn-content-light);
    color: var(--sn-content-text);
    text-align: right;
}

.blog-content tr:nth-child(even),
.article-content tr:nth-child(even),
.news-content tr:nth-child(even),
main article tr:nth-child(even) {
    background: #F5F8F9;
}

/* نقل‌قول */
.blog-content blockquote,
.article-content blockquote,
.news-content blockquote,
main article blockquote {
    margin: 25px 0;
    padding: 18px 20px;
    color: var(--sn-content-deep);
    background: #F0F5F6;
    border-right: 4px solid var(--sn-content-teal);
    border-radius: 0 9px 9px 0;
}

/* =========================================
   2. PRODUCT DETAIL
   ========================================= */

/* عنوان محصول */
body.single-product .product_title,
body.single-product h1.product_title,
body.single-product .entry-title {
    color: var(--sn-content-deep);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* قیمت محصول */
body.single-product .price {
    color: var(--sn-content-teal);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.9;
}

/* تب‌های محصول */
body.single-product .woocommerce-tabs,
body.single-product .product-tabs {
    margin-top: 35px;
}

body.single-product .woocommerce-tabs ul.tabs li a,
body.single-product .product-tabs ul li a {
    color: var(--sn-content-deep);
    font-weight: 700;
}

/* تیتر توضیحات و بخش‌های محصول */
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-tabs h2,
body.single-product .woocommerce-tabs h3,
body.single-product .product-description h2,
body.single-product .product-description h3 {
    color: var(--sn-content-deep);
    font-weight: 750;
    line-height: 1.9;
    margin: 28px 0 15px;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs h2,
body.single-product .product-description h2 {
    font-size: 23px;
    padding: 10px 14px;
    border-right: 4px solid var(--sn-content-teal);
    background: linear-gradient(90deg, transparent, #F0F5F6);
    border-radius: 0 7px 7px 0;
}

body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-tabs h3,
body.single-product .product-description h3 {
    font-size: 19px;
    color: var(--sn-content-teal);
}

/* متن توضیحات محصول */
body.single-product .woocommerce-Tabs-panel p,
body.single-product .woocommerce-tabs p,
body.single-product .product-description p {
    color: var(--sn-content-text);
    font-size: 15px;
    line-height: 2.2;
    text-align: justify;
    margin-bottom: 17px;
}

/* فهرست‌های محصول */
body.single-product .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-Tabs-panel ol,
body.single-product .product-description ul,
body.single-product .product-description ol {
    padding-right: 24px;
    line-height: 2.1;
}

body.single-product .woocommerce-Tabs-panel li,
body.single-product .product-description li {
    margin-bottom: 8px;
}

/* جدول مشخصات */
body.single-product .woocommerce-Tabs-panel table,
body.single-product .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

body.single-product .woocommerce-Tabs-panel th,
body.single-product .woocommerce-Tabs-panel td,
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
    padding: 12px;
    border: 1px solid var(--sn-content-light);
    text-align: right;
    line-height: 1.9;
}

body.single-product .woocommerce-product-attributes th {
    color: var(--sn-content-deep);
    background: #F0F5F6;
}

/* =========================================
   3. PRODUCT CATEGORY
   ========================================= */

/* عنوان دسته‌بندی */
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_cat .page-title,
body.tax-product_cat .entry-title,
body.tax-product_cat h1 {
    color: var(--sn-content-deep);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.8;
    margin: 20px 0 25px;
}

/* توضیحات دسته‌بندی */
body.tax-product_cat .term-description,
body.tax-product_cat .woocommerce-category-description,
body.tax-product_cat .category-description {
    color: var(--sn-content-text);
    font-size: 15px;
    line-height: 2.2;
    text-align: justify;
}

/* تیترهای توضیحات دسته‌بندی */
body.tax-product_cat .term-description h2,
body.tax-product_cat .woocommerce-category-description h2,
body.tax-product_cat .category-description h2 {
    color: var(--sn-content-deep);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.9;
    margin: 30px 0 15px;
    padding: 10px 14px;
    border-right: 4px solid var(--sn-content-teal);
    background: linear-gradient(90deg, transparent, #F0F5F6);
    border-radius: 0 7px 7px 0;
}

body.tax-product_cat .term-description h3,
body.tax-product_cat .woocommerce-category-description h3,
body.tax-product_cat .category-description h3 {
    color: var(--sn-content-teal);
    font-size: 19px;
    font-weight: 700;
    margin: 24px 0 12px;
}

body.tax-product_cat .term-description p,
body.tax-product_cat .woocommerce-category-description p,
body.tax-product_cat .category-description p {
    line-height: 2.2;
    margin-bottom: 17px;
}

/* =========================================
   4. PRODUCT CARDS
   ========================================= */

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.products .product .product-title,
.product-item .product-title {
    color: var(--sn-content-deep);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
    text-align: center;
}

.woocommerce ul.products li.product .price,
.products .product .price,
.product-item .price {
    color: var(--sn-content-teal);
    font-size: 16px;
    font-weight: 800;
}

/* =========================================
   5. NEWS PAGE
   ========================================= */

body.single-news h1,
body.single-news .entry-title,
body.single-news .page-title {
    color: var(--sn-content-deep);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.9;
}

body.single-news .entry-content,
body.single-news .news-content,
body.single-news article {
    color: var(--sn-content-text);
    font-size: 15px;
    line-height: 2.15;
    text-align: justify;
}

body.single-news .entry-content h2,
body.single-news .news-content h2,
body.single-news article h2 {
    color: var(--sn-content-deep);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.9;
    margin: 30px 0 15px;
    padding: 9px 14px;
    border-right: 4px solid var(--sn-content-teal);
    background: #F0F5F6;
    border-radius: 0 7px 7px 0;
}

/* =========================================
   6. RESPONSIVE
   ========================================= */

@media (max-width: 767px) {

    .blog-content,
    .article-content,
    .news-content,
    .blog-detail,
    .news-detail,
    .single-post article,
    .single-news article,
    main article {
        font-size: 14px;
        line-height: 2.05;
    }

    .blog-content h1,
    .article-content h1,
    .news-content h1,
    .blog-detail h1,
    .news-detail h1,
    .single-post article h1,
    .single-news article h1,
    main article h1,
    body.single-product .product_title,
    body.single-product h1.product_title {
        font-size: 22px;
        line-height: 1.85;
    }

    .blog-content h2,
    .article-content h2,
    .news-content h2,
    .blog-detail h2,
    .news-detail h2,
    .single-post article h2,
    .single-news article h2,
    main article h2,
    body.single-product .woocommerce-Tabs-panel h2,
    body.tax-product_cat .term-description h2 {
        font-size: 19px;
        line-height: 1.9;
        margin-top: 25px;
    }

    .blog-content h3,
    .article-content h3,
    .news-content h3,
    .blog-detail h3,
    .news-detail h3,
    main article h3,
    body.single-product .woocommerce-Tabs-panel h3 {
        font-size: 17px;
    }

    .blog-content p,
    .article-content p,
    .news-content p,
    .blog-detail p,
    .news-detail p,
    main article p {
        font-size: 14px;
        line-height: 2.1;
    }

    body.tax-product_cat .woocommerce-products-header__title,
    body.tax-product_cat .page-title,
    body.tax-product_cat .entry-title {
        font-size: 22px;
    }

    .blog-content table,
    .article-content table,
    .news-content table,
    body.single-product .woocommerce-Tabs-panel table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* =========================================
   SAJMEH NOGHRE — PRODUCT INTRO TYPOGRAPHY
   Exact selectors from product HTML
   ========================================= */

/* محدوده اطلاعات محصول */
.tf-product-info-wrap,
.tf-product-info-list {
    direction: rtl;
    text-align: right;
    color: #34464C;
}

/* عنوان محصول */
.tf-product-info-title {
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
}

.tf-product-info-title h1 {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 14px 17px !important;

    color: #102F35 !important;
    font-family: inherit;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.9 !important;

    text-align: right !important;
    background: linear-gradient(90deg, #FFFFFF 0%, #F0F5F6 100%);
    border-right: 4px solid #176B68;
    border-radius: 0 8px 8px 0;

    box-sizing: border-box;
}

/* محدوده قیمت */
.tf-product-info-price {
    margin: 15px 0 25px;
    text-align: right;
}

/* قیمت محصول */
.tf-product-info-price .price-on-sale {
    color: #176B68 !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.9 !important;
    text-align: right;
}

/* بخش دکمه‌ها و ابزار محصول */
.tf-product-info-buy-button {
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    direction: rtl;
}

/* دکمه علاقه‌مندی و مقایسه */
.tf-product-info-buy-button .tf-product-btn-wishlist {
    border: 1px solid #A8B7BF;
    border-radius: 9px;
    transition: all .25s ease;
}

.tf-product-info-buy-button .tf-product-btn-wishlist:hover {
    color: #176B68;
    border-color: #176B68;
    background: #F0F5F6;
}

/* موبایل */
@media (max-width: 767px) {

    .tf-product-info-title {
        margin-bottom: 16px;
    }

    .tf-product-info-title h1 {
        font-size: 21px !important;
        line-height: 1.9 !important;
        padding: 10px 12px !important;
    }

    .tf-product-info-price .price-on-sale {
        font-size: 20px !important;
    }

    .tf-product-info-price {
        margin: 12px 0 20px;
    }
}

