/*
Theme Name: M_E_shop1
Theme URI: https://m_e_shop1.com
Author: M_E_shop1 Team
Author URI: https://m_e_shop1.com
Description: قالب فروشگاهی حرفه‌ای - Core-first
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: m_e_shop1
*/

/* ============================================================
   تابع ۱: ریست و پایه
   ============================================================ */

/* بخش A: ریست کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}




@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}




/* بخش B: بادی */
body {
    direction: rtl;
    background: #f5f3ef;
    color: #2b2b2b;
    font-family: 'Vazirmatn', tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    overflow-x: hidden;
}


.section-title {
    font-weight: 700;
}

.mes-btn,
.mes-btn-all,
button,
input[type="submit"] {
    font-weight: 600;
}

.mes-faq-question,
.home-faq h3,
.home-faq p {
    font-weight: 500;
}


/* بخش C: تصاویر */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* بخش D: لینک‌ها */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* بخش E: لیست‌ها */
ul {
    list-style: none;
}

/* بخش F: دکمه‌ها */
button {
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

/* بخش G: ورودی‌ها */
input,
textarea,
select {
    outline: none;
    font-family: inherit;
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0d7377;
}

/* بخش H: تیترها */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.5;
}

/* بخش I: پاراگراف */
p {
    line-height: 2;
}

/* ============================================================
   تابع 2: کانتینر
   ============================================================ */
.mes-container {
    width: 98%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 0;
}

/* ============================================================
   تابع 3: هدر - ردیف اول
   ============================================================ */

/* بخش A: ردیف اول */
.mes-header-top {
    background: #ffffff;
    padding: 2px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 50px;
}

.mes-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}




/* فاصله بالا پایین هدر ارتفاع اون */

.mes-header-top .mes-container {
    padding-top: 5px;
    padding-bottom: 5px;

}



/* خط گرادیانت بین هدر بالا */

.mes-header-name {
    position: relative;
    padding: 0 25px;
}
.mes-header-name::before,
.mes-header-name::after {
    content: "";
    position: absolute;
    top: 10%;
    width: 2px;
    height: 80%;
    background: linear-gradient(180deg, transparent, #26c6da, transparent);
}
.mes-header-name::before { right: 0; }
.mes-header-name::after { left: 0; }







/* بخش B: لوگو */
.mes-header-logo {
    width: 150px;
    flex-shrink: 0;
    text-align: right;
   
}

.mes-header-logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 12px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(13, 115, 119, .0.15);
    transition: 0.3s;
}

.mes-header-logo img:hover {
    filter: drop-shadow(0 0 35px rgba(13, 115, 119, 0.45));
}

/* بخش C: نام تجاری */
.mes-header-name {
    flex: 2;
    text-align: center;
    min-width: 0;
    word-break: break-word;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mes-header-name h1,
.mes-header-name h2,
.mes-header-name h3,
.mes-header-name strong {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(90deg, #009688, #00bcd4, #009688, #00bcd4, #009688);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mes_teal_flow 4s ease infinite;
    margin: 0;
    line-height: 1.3;
}

@keyframes mes_teal_flow {
    0% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}


.mes-brand-subname {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(90deg, #4a6b5e, #6b9a8b, #4a6b5e, #6b9a8b, #4a6b5e);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mes_teal_flow 4s ease infinite;
    margin: 5px 0 0;
    line-height: 1.5;
}




/* بخش D: شعار */
.mes-header-slogan {
    flex: 1;
    text-align: center;
    min-width: 0;
    max-width: 250px;
}


.mes-header-slogan p {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 2;
    text-align: right;
    white-space: pre-line;
}







/* بخش E: تصویر فروشگاه */
.mes-header-image {
    width: 220px;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: auto;
}

.mes-header-image img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #a8d5e2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    display: block;
}


/* ============================================================
   تابع 4: هدر - ردیف دوم
   ============================================================ */

/* بخش A: ردیف دوم */
.mes-header-bottom {
    background: #0c6e72;
    padding: 0;
    min-height: 53px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    
}

.mes-header-bottom-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: rtl;
    justify-content: flex-start;
    min-height: 50px;

}

.mes-header-bottom .mes-container {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0 !important;
}


/* بخش B: منو */
.mes-header-menu-area {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-start;
    margin-right: 0;
    margin-left: 0;

    
}

.mes-header-menu .menu {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.mes-header-menu .menu li a {
    display: block;
    padding: 5px 8px;
    background: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    color: #000000;
}

.mes-header-menu .menu li a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* بخش C: شبکه‌های اجتماعی */
.mes-social {
    display: flex;
    gap: 4px;
    align-items: center;
}

.mes-social a {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s;
    color: #ffffff;
}



.mes-header-social-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
    
}



.mes-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}








/* بخش D: آیکون‌ها */
.mes-actions,
.mes-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.mes-action-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: 0.3s;
    text-decoration: none;
}

.mes-action-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: 0.3s;
}

.mes-circle-cart {
    border: 2px solid #ff9800;
}

.mes-circle-wishlist {
    border: 2px solid #ff0000;
}

.mes-circle-phone {
    border: 2px solid #4caf50;
}

.mes-action-icon:hover .mes-action-circle {
    transform: scale(1.1);
}

.mes-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid #0c6e72;
}

.mes-badge-cart {
    background: #ff9800;
}

.mes-badge-wishlist {
    background: #ff3d3d;
}

/* ===== منوی تلفن ===== */
.mes-phone-dropdown {
    position: relative;
    display: inline-block;
}

.mes-phone-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mes-phone-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.mes-phone-dropdown:hover .mes-phone-menu {
    display: block;
}

.mes-phone-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333333;
    border-bottom: 1px solid #eeeeee;
    transition: 0.2s;
}

.mes-phone-menu a:last-child {
    border-bottom: none;
}

.mes-phone-menu a:hover {
    background: #e0f2f1;
    color: #0d7377;
}

.mes-phone-menu-label {
    font-size: 13px;
    font-weight: 600;
}

.mes-phone-menu-number {
    font-size: 12px;
    color: #888888;
    direction: ltr;
}








/* بخش E: جستجو */
.mes-header-search {
    width: 160px;
    flex-shrink: 0;
}

.mes-search-form {
    position: relative;
}

.mes-search-form input[type="search"] {
    width: 100%;
    height: 30px;
    padding: 8px 14px 8px 40px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    color: #000000;
    font-size: 13px;
}

.mes-search-form input[type="search"]::placeholder {
    color: #888888;
}

.mes-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}







/* ===== تلفن شناور ===== */
.mes-floating-phone {
    position: fixed;
    bottom: 60px;
    left: 20px;
    z-index: 999;
}

.mes-floating-phone-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #25d366;
    border: 2px solid #ffffff !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.mes-floating-phone-btn:hover {
    background: #1ebe57;
    transform: scale(1.1);
}

.mes-floating-phone-panel {
    position: absolute;
    bottom: 65px;
    left: 0;
    width: 200px;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid #0d7377;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    padding: 5px;
    display: none;
    text-align: center;
}

.mes-floating-phone-panel.active {
    display: block;
}

.mes-floating-phone-panel h3 {
    font-size: 16px;
    color: #25d366;
    margin: 0 0 10px;
}

.mes-floating-phone-panel p {
    font-size: 13px;
    color: #666666;
    margin: 0 0 15px;
    line-height: 1.8;
}

.mes-floating-phone-link {
    display: block;
    background: #25d366;
    color: #ffffff;
    padding: 2px;
    border-radius: 25px;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.mes-floating-phone-link:hover {
    background: #1ebe57;
}







/* ============================================================
   دکمه شناور دسته بندی
   ============================================================ */
/* ===== دکمه شناور دسته‌بندی ===== */
.mes-floating-category {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

/* دکمه */
.mes-floating-cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.mes-floating-cat-btn:hover {
    transform: translateY(-2px);
}

/* کادر باز شده */
.mes-floating-cat-panel {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 980px;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 6px;
    display: none;
    border: 1px solid #ff1500;
}

.mes-floating-cat-panel.active {
    display: block;
}

/* اسکرول نازک قرمز */
.mes-floating-cat-panel::-webkit-scrollbar {
    width: 6px;
}
.mes-floating-cat-panel::-webkit-scrollbar-thumb {
    background: #c0392d;
    border-radius: 3px;
}

/* لیست دسته‌های اصلی - همه تو یه ردیف */
.mes-floating-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.mes-cat-item {
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 6px;
    background: #ffffff;
    transition: 0.2s;
}

.mes-cat-item:hover {
    border-color: #c0392d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* دسته اصلی */
.mes-cat-main {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 1px 5px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    border-bottom: 2px solid #0d7377;
    transition: 0.2s;
    line-height: 1;
    height: auto;
    min-height: 0;
}

.mes-cat-main:hover {
    background: #d0e8ef;
}

.mes-cat-icon {
    font-size: 5px;
}

/* زیردسته‌ها */
.mes-floating-cat-sub {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    
    padding-top: 4px;
}

.mes-cat-sub {
    display: block;
    padding: 2px 4px;
    padding-right: 1px;

    text-decoration: none;
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    transition: 0.2s;
}

.mes-cat-sub:hover {
    color: #c0392d;
    background: #f9f9f9;
    border-radius: 3px;
}









/* ============================================================
   دکمه شناور _ بازگشت به بالا 
   ============================================================ */
.mes-back-to-top {
    position: fixed;
    bottom: 60px;
    left: 90px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0d7377;
    border: 2px solid #ffffff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: 0.3s;
    z-index: 998;
}

.mes-back-to-top.show {
    display: flex;
}

.mes-back-to-top:hover {
    background: #0a5f62;
    transform: translateY(-3px);
}












/* ============================================================
   دکمه مشترک — ادامه نوشته
   ============================================================ */

   .mes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    box-sizing: border-box;
    padding: 7px 16px;
    background: #0d7377;
    color: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.mes-btn:hover,
.mes-btn:focus {
    background: #0d7377;
    color: #ffffff;
    border-color: #0d7377;
    box-shadow: 0 4px 15px rgba(13, 115, 119, .25);
    transform: translateY(-1px);
}

.mes-btn:active {
    transform: translateY(0);
}


/* ============================================================
   دکمه مشترک — مشاهده همه
   ============================================================ */

.mes-btn-all {
    background: #ff9800;
    color: #ffffff;
    border: 1px solid #ff9800;
}

.mes-btn-all:hover,
.mes-btn-all:focus {
    background: #ff9800;
    color: #ffffff;
    border-color: #ff9800;
    box-shadow: 0 4px 15px rgba(255, 152, 0, .25);
    transform: translateY(-1px);
}






/* ============================================================
   -خط دور و ... مسترک مشترک — همه بخش‌ها صفحه اصلی
   ============================================================ */

/* ===== ۱. تنظیمات کلی بخش‌ها ===== */

.services-section,
.content-two-column-wrapper,
.mes-blog-section,
.home-three-col,
.testimonials-section,
.home-gallery,
.team-section,
.home-cta,
.home-sale,
.home-empty {
    max-width: 1400px;
    width: 100%;
    margin: 20px 0 10px auto;
    padding: 15px 10px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* ===== ۲. چیدمان گرید ===== */

.services-wrapper,
.mes-blog-grid,
.team-wrapper,
.mes-testimonial-cols,
.mes-gallery-frames,
.mes-random-products ul.products {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    row-gap: 50px;
}

/* ===== ۳. کارت‌ها ===== */

.mes-service-item,
.mes-blog-card,
.mes-team-card,
.mes-testimonial-col,
.mes-frame {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    position: relative;
}

/* ===== ۴. عنوان بخش‌ها ===== */

.services-section .section-title,
.content-two-column-wrapper .section-title,
.mes-blog-section .section-title,
.home-three-col .section-title,
.team-section .section-title,
.testimonials-section .section-title,
.home-gallery .section-title,
.home-cta .section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0d7377;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

/* ===== ۵. خط زیر عنوان‌ها ===== */

.services-section .section-title::after,
.content-two-column-wrapper .section-title::after,
.mes-blog-section .section-title::after,
.home-three-col .section-title::after,
.team-section .section-title::after,
.testimonials-section .section-title::after,
.home-gallery .section-title::after,
.home-cta .section-title::after,
.home-sale .section-title::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    margin: 8px auto 0;
    background: #8edbd5;
    border-radius: 10px;
}

/* ===== ۶. افکت Hover مشترک ===== */

.mes-service-item:hover,
.mes-blog-card:hover,
.mes-team-card:hover,
.mes-testimonial-col:hover,
.mes-frame:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== ۷. عکس‌ها ===== */

.mes-service-icon img,
.mes-blog-thumb img,
.mes-team-photo img,
.mes-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== ۸. توضیحات ===== */

.mes-service-desc-bar,
.mes-blog-content p,
.mes-team-desc p {
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    color: #555555;
}















/* ============================================================
   شکل هندسی — چهار طرف بخش ها - دایره - خط اویزان - و لللللل)
   ============================================================ */


/* ===== سمت چپ پایین : دایره های بزرگ و کوچیک ===== */
   .services-section::after,
   .content-two-column-wrapper::after,
   .mes-blog-section::after,
   .home-three-col::after,
   .team-section::after,
   .testimonials-section::after,
   .home-gallery::after,
   .home-cta::after,
   .home-sale::after,
   .home-empty::after {
       content: "";
       position: absolute;
       bottom: 5px;
       left: 5px;
       width: 10px;
       height: 10px;
       background: #0d7377;
       border-radius: 50%;
       opacity: 0.9;
       box-shadow:
           18px 4px 0 rgba(13, 115, 119, 0.75),
           36px -3px 0 rgba(13, 115, 119, 0.55),
           54px 5px 0 rgba(13, 115, 119, 0.35),
           72px -2px 0 rgba(13, 115, 119, 0.2),
           90px 6px 0 rgba(13, 115, 119, 0.1),
           108px 0 0 rgba(13, 115, 119, 0.05);
       pointer-events: none;
       z-index: 0;
   }
   


   
   


.services-section,
.content-two-column-wrapper,
.mes-blog-section,
.home-three-col,
.team-section,
.testimonials-section,
.home-gallery,
.home-cta,
.home-sale,
.home-empty {
    background-image:
        /* خطوط چپ */
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        /* نمودار پایین راست */
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377);
    background-repeat: no-repeat;
    background-size:
        5px 50px,
        5px 40px,
        5px 30px,
        5px 20px,
        5px 12px,
        5px 6px,
        5px 15px,
        5px 25px,
        5px 20px,
        30px 3px;
    background-position:
        10px 0,
        23px 0,
        36px 0,
        49px 0,
        62px 0,
        75px 0,
        calc(100% - 40px) calc(100% - 20px),
        calc(100% - 30px) calc(100% - 30px),
        calc(100% - 20px) calc(100% - 25px),
        calc(100% - 40px) calc(100% - 5px);
}



/* ===== سمت چپ بالا : شش خط اویزان ===== */
   .services-section,
   .content-two-column-wrapper,
   .mes-blog-section,
   .home-three-col,
   .team-section,
   .testimonials-section,
   .home-gallery,
   .home-cta,
   .home-sale,
   .home-empty {
       background-color: #ffffff;
       background-image:
           linear-gradient(#0d7377, #0d7377),
           linear-gradient(#0d7377, #0d7377),
           linear-gradient(#0d7377, #0d7377),
           linear-gradient(#0d7377, #0d7377),
           linear-gradient(#0d7377, #0d7377),
           linear-gradient(#0d7377, #0d7377);
       background-repeat: no-repeat;
       background-size:
           5px 50px,
           5px 40px,
           5px 30px,
           5px 20px,
           5px 12px,
           5px 6px;
       background-position:
           10px 0,
           28px 0,
           41px 0,
           54px 0,
           67px 0,
           80px 0;
   }
   
   
   
   


/* ===== سمت راست بالا : شش خط اویزان ===== */
   .services-section::before,
.content-two-column-wrapper::before,
.mes-blog-section::before,
.home-three-col::before,
.team-section::before,
.testimonials-section::before,
.home-gallery::before,
.home-cta::before,
.home-sale::before,
.home-empty::before {
    content: "";
    position: absolute;
    top: 0;
    right: 10px;
    width: 70px;
    height: 50px;
    background-image:
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377),
        linear-gradient(#0d7377, #0d7377);
    background-repeat: no-repeat;
    background-size:
        5px 50px,
        5px 40px,
        5px 30px,
        5px 20px,
        5px 12px,
        5px 6px;
    background-position:
        65px 0,
        48px 0,
        35px 0,
        22px 0,
        10px 0,
        -1px 0;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}





/* =========================================================
   تابع خدمات تخصصی
   ========================================================= */

/* بخش کارت */

.mes-service-item {
    min-height: 280px;
    background: #ffffff;
    border: 2px solid rgba(13, 115, 119, 0.22);
    border-radius: 18px;
    overflow: visible;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* بخش محتوای کارت */

.mes-service-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* بخش عکس یا ایموجی */

.mes-service-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1fbfa;
    border: 2px solid rgba(13, 115, 119, 0.25);
    border-radius: 14px;
    font-size: 42px;
    line-height: 1;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, border-color .3s ease;
}

/* بخش عکس */

.mes-service-icon img {
    border-radius: 12px;
}

/* بخش عنوان */

.mes-service-title {
    width: 100%;
    min-height: 40px;
    padding: 8px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(13, 115, 119, 0.18);
    border-radius: 9px;
    color: #0d7377;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* بخش توضیحات */

.mes-service-desc-bar {
    width: 100%;
    height: 145px;
    min-height: 145px;
    padding: 8px 7px;
    background: #e0f8f5;
    border: 1px solid rgba(13, 115, 119, 0.14);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    word-break: normal;
    overflow-wrap: break-word;
    margin: 0;
    display: block;
    overflow: hidden;
}

/* بخش افکت Hover */

.mes-service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 115, 119, 0.55);
    box-shadow: 0 15px 30px rgba(13, 115, 119, 0.10);
}

/* بخش افکت عکس */

.mes-service-item:hover .mes-service-icon {
    border-color: rgba(13, 115, 119, 0.50);
    transform: translateY(-2px);
}

/* پیچش بالای کارت */

.services-wrapper .mes-service-item::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffffff 45%, #0d7377 45%, #0d7377 55%, transparent 55%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 30;
    transform: rotate(0deg);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, .15));
}

/* پیچش پایین کارت */

.services-wrapper .mes-service-item::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: -2px;
    width: calc(100% + 4px);
    height: 58px;
    background: linear-gradient(180deg, #0d7377 0, #5fbeb9 13%, #8edbd5 30%, #ffffff 48%, #8edbd5 64%, #0d7377 80%, #084f52 100%);
    border: 1px solid #0d7377;
    box-shadow: 0 11px 12px rgba(0, 0, 0, .22);
    clip-path: path("M 0 22 C 20 39 42 47 70 43 C 110 37 155 21 200 20 C 250 19 305 29 350 44 L 350 57 C 305 48 250 38 200 38 C 155 39 110 52 70 57 C 42 60 17 51 0 35 Z");
    z-index: 20;
    transform: rotate(1deg);
}






/* =========================================================
   آشنایی با ما | عکس و متن
   ========================================================= */

/* بخش ردیف عکس و متن */

.mes-about-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid #0d7377;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
}

/* حالت معکوس */

.mes-about-row.reverse {
    flex-direction: row-reverse;
}

/* بخش عکس */

.mes-about-image {
    width: calc(50% - 10px);
    width: 50%;
    min-height: 300px;
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #0d7377;
    padding: 5px;
    flex-shrink: 0;
    box-sizing: border-box;

    
}

/* خود عکس */

.mes-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
    background: #f4fbfa;
    border-radius: 18px;
    box-shadow: none;
}

/* جایگزین عکس */

.mes-about-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f4fbfa;
    border: 1px solid rgba(13, 115, 119, 0.15);
    border-radius: 18px;
    color: #888888;
    font-size: 18px;
    font-weight: 700;
}

/* بخش متن */

.mes-about-text {
    width: calc(50% - 10px);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3px 20px;
    box-sizing: border-box;
    background: #f8fcfb;
    border: 1px solid rgba(13, 115, 119, 0.18);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;

}

/* عنوان */

.mes-about-text h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #0d7377;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.6;
}

/* خط زیر عنوان */

.mes-about-text h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    margin-top: 8px;
    background: #8edbd5;
    border-radius: 10px;
}

/* توضیحات */

.mes-about-text p {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: #444444;
    font-size: 14px;
    line-height: 2;
    display: block;
    max-height: none;
    overflow: visible;
}

/* ایموجی بزرگ */

.mes-about-emoji {
    font-size: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    line-height: 1;
    border-radius: 15px;
    padding: 10px;
}



.mes-blog-section .mes-blog-thumb {
    width: 10%;
    height: var(--blog-paper-height);
    flex-shrink: 0;
}


/* ============================================================
   تابع: نوشته‌های تازه
   ============================================================ */

/* ===== بخش الف: متغیرهای نوشته ===== */

.mes-blog-section {
    --blog-rotate: -15deg;
    --blog-paper-height: 235px;
    --blog-photo-height: 190px;
    overflow: hidden;
}

/* ===== بخش ب: چیدمان کارت‌ها ===== */

.mes-blog-section .mes-blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2px;
    row-gap: 50px;
    align-items: stretch;
    justify-content: center;
    padding: 2px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 10px;
}

/* ===== بخش پ: تعداد کارت‌ها ===== */

.mes-blog-section .mes-blog-grid:has(.mes-blog-card:nth-child(1):last-child) { grid-template-columns: 1fr; }
.mes-blog-section .mes-blog-grid:has(.mes-blog-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mes-blog-section .mes-blog-grid:has(.mes-blog-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mes-blog-section .mes-blog-grid:has(.mes-blog-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== بخش ت: کارت ===== */

.mes-blog-section .mes-blog-card {
    padding-left: 2px;
    padding-right: 8px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    position: relative;
    transform-origin: center center;
    transition: none;
    height: 100%;

}

/* ===== بخش ث: هاور کارت ===== */

.mes-blog-section .mes-blog-card:hover {
    transform: none;
    border: none;
    box-shadow: none;
}

/* ===== بخش ج: محتوای کارت ===== */

.mes-blog-section .mes-blog-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* ===== بخش ح: قاب عکس ===== */

.mes-blog-section .mes-blog-thumb {
    width: 100%;
    height: var(--blog-photo-height);
    aspect-ratio: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e67e22, #f5cba7 18%, #ffffff 50%, #f5cba7 82%, #e67e22);
    padding: 7px;
    border: 1px solid #e67e22;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 8;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .65);
    transform: perspective(1000px) rotateY(var(--blog-rotate));
}

/* ===== بخش خ: لبه بالای قاب عکس ===== */

.mes-blog-section .mes-blog-thumb::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 7%;
    width: 86%;
    height: 6px;
    background: #f5cba7;
    border: 1px solid #e67e22;
    border-radius: 50%;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .15);
    z-index: 2;
}

/* ===== بخش د: لبه پایین قاب عکس ===== */

.mes-blog-section .mes-blog-thumb::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 8%;
    width: 84%;
    height: 7px;
    background: #e67e22;
    border: 1px solid #d35400;
    border-radius: 50%;
    box-shadow: 0 3px 4px rgba(0, 0, 0, .18);
    z-index: 2;
}

/* ===== بخش ذ: تصویر ===== */

.mes-blog-section .mes-blog-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #fdf2e9;
    box-sizing: border-box;
}

/* ===== بخش ر: عنوان ===== */

.mes-blog-section .mes-blog-content h3 {
    width: 97%;
    margin: 10px 0 0 -2.5%;
    padding: 8px 10px;
    background: linear-gradient(180deg, #fdf2e9, #ffffff 50%, #f5cba7);
    color: #e67e22;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #e67e22;
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 8px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .9);
    transform: perspective(1000px) rotateY(var(--blog-rotate));
    text-shadow: 0 1px rgba(255, 255, 255, .8);
    word-break: break-word;
}

/* ===== بخش ز: لینک عنوان ===== */

.mes-blog-section .mes-blog-content h3 a {
    color: #e67e22;
    text-decoration: none;
}

/* ===== بخش س: لبه چپ عنوان ===== */

.mes-blog-section .mes-blog-content h3::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    width: 7px;
    height: calc(100% - 6px);
    background: #e67e22;
    transform: skewY(-8deg);
    z-index: -1;
}

/* ===== بخش ش: لبه راست عنوان ===== */

.mes-blog-section .mes-blog-content h3::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 3px;
    width: 7px;
    height: calc(100% - 6px);
    background: #e67e22;
    transform: skewY(8deg);
    z-index: -1;
}

/* ===== بخش ص: توضیحات ===== */

.mes-blog-section .mes-blog-content p {
    width: 98%;
    margin: 20px 0 0 -2.5%;
    min-height: var(--blog-paper-height);
    padding: 38px 10px 55px;
    box-sizing: border-box;
    background: linear-gradient(180deg, transparent 0, transparent 89%, rgba(230, 126, 34, .04) 89%, rgba(230, 126, 34, .10) 94%, transparent 100%), linear-gradient(90deg, rgba(230, 126, 34, .08), transparent 10%, rgba(255, 255, 255, .8) 25%, transparent 52%, rgba(255, 255, 255, .7) 80%, rgba(230, 126, 34, .08)), #ffffff;
    border: 1px solid #e67e22;
    position: relative;
    z-index: 4;
    box-shadow: -14px 16px 22px rgba(0, 0, 0, .15), inset 7px 0 10px rgba(230, 126, 34, .08), inset -7px 0 10px rgba(230, 126, 34, .08);
    transform: perspective(1000px) rotateY(var(--blog-rotate));
    transform-origin: center center;
    font-size: 12px;
    color: #7d4a1a;
    line-height: 1.9;
    text-align: justify;
    word-spacing: 1px;
    text-shadow: 0 1px rgba(255, 255, 255, .8);
}

/* ===== بخش ض: پیچش بالای توضیحات ===== */

.mes-blog-section .mes-blog-content p::before {
    content: "";
    position: absolute;
    top: -27px;
    left: -2px;
    width: calc(100% + 4px);
    height: 48px;
    background: linear-gradient(180deg, #e67e22 0, #f0a55a 15%, #f5cba7 35%, #ffffff 52%, #f5cba7 72%, #e67e22 100%);
    border: 1px solid #e67e22;
    box-shadow: 0 6px 8px rgba(0, 0, 0, .18);
    clip-path: path("M 0 22 C 20 4 45 4 70 13 C 110 27 170 29 220 18 C 265 8 310 4 350 18 L 350 35 C 310 47 265 46 220 38 C 170 29 110 28 70 39 C 42 47 18 43 0 32 Z");
    z-index: 7;
    transform: rotate(-1deg);
}

/* ===== بخش ط: پیچش پایین توضیحات ===== */

.mes-blog-section .mes-blog-content p::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -2px;
    width: calc(100% + 4px);
    height: 58px;
    background: linear-gradient(180deg, #e67e22 0, #f0a55a 13%, #f5cba7 30%, #ffffff 48%, #f5cba7 64%, #e67e22 80%, #b84c00 100%);
    border: 1px solid #e67e22;
    box-shadow: 0 11px 12px rgba(0, 0, 0, .22);
    clip-path: path("M 0 22 C 20 39 42 47 70 43 C 110 37 155 21 200 20 C 250 19 305 29 350 44 L 350 57 C 305 48 250 38 200 38 C 155 39 110 52 70 57 C 42 60 17 51 0 35 Z");
    z-index: 7;
    transform: rotate(1deg);
}

/* ===== بخش ظ: دکمه ===== */

.mes-blog-section .mes-blog-btn-wrap {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    padding-top: 0;
    position: relative;
    z-index: 6;
}

/* ===== بخش ع: دکمه همه ===== */

.mes-blog-section .mes-blog-all {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

/* ===== بخش غ: زاویه کارت‌ها ===== */

.mes-blog-section .mes-blog-card:nth-child(1) { --blog-rotate: -10deg; }
.mes-blog-section .mes-blog-card:nth-child(2) { --blog-rotate: -12deg; }
.mes-blog-section .mes-blog-card:nth-child(3) { --blog-rotate: -11deg; }
.mes-blog-section .mes-blog-card:nth-child(4) { --blog-rotate: -13deg; }




/* ============================================================
   تابع عنوان صفحه نوشته ها: استایل عنوان در صفحه کلا کادر های نوشته ها
   ============================================================ */


   .mes-page-title {
    font-size: 28px;
    color: #0d7377;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0d7377;
}



/* ============================================================
   تابع: بخش سه‌ستونه
   ============================================================ */

/* ===== بخش A: کادر اصلی سه‌ستونه ===== */

.home-three-col {
    display: flex;
    gap: 5px;
}

/* ===== بخش B: ستون‌ها ===== */

.home-sidebar,
.home-process,
.home-faq {
    flex: 1 1 0;
    min-width: 0;
    max-width: 33.333%;
    background: #ffffff;
    border: 2px solid #e0f2f1;
    border-radius: 12px;
    padding: 15px 10px;
    min-height: 400px;
}

/* ===== بخش C: عنوان ستون‌ها ===== */

.home-sidebar .section-title,
.home-process .section-title,
.home-faq .section-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

/* ===== بخش D: جداکننده بین ویجت‌ها ===== */

.home-sidebar .mes-widget,
.home-sidebar .mes-sidebar-box {
    border-bottom: 1.5px solid #0d7377;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.home-sidebar .mes-widget:last-child,
.home-sidebar .mes-sidebar-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ===== بخش E: فرآیند تولید ===== */

.home-process {
    padding: 15px 8px;
}

.mes-process-steps {
    display: flex;
    flex-direction: column;
}

.mes-step {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    position: relative;
    min-width: 0;
    padding: 10px 0;
}

/* ===== بخش F: خط اتصال مراحل ===== */

.mes-step:not(:last-child)::after {
    content: "";
    position: absolute;
    width: 3px;
    top: 60px;
    bottom: -15px;
    right: 30px;
    transform: translateX(-50%);
    background: #0d7377;
    z-index: 1;
}

/* ===== بخش G: عکس مرحله ===== */

.mes-step-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: #ffffff;
    border: 2px solid #0d7377;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #ffffff;
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 2;
    position: relative;
}

.mes-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    border-radius: 50%;
    display: block;
}

/* ===== بخش H: محتوای مرحله ===== */

.mes-step-content {
    flex: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mes-step-content h4 {
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    color: #0d7377;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    word-break: break-word;
}

.mes-step-content p {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    color: #333333;
    background: #e0f2f1;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
    word-break: break-word;
    line-height: 1.6;
}

/* ===== بخش I: سوالات متداول ===== */

.home-faq {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.mes-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.mes-faq-question {
    padding: 14px 10px;
    background: #118a8f;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    user-select: none;
    
}

.mes-faq-number {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.mes-faq-text {
    flex: 1;
    text-align: right;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 11px;
}

.mes-faq-icon {
    color: #ffd54f;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.mes-faq-question::after {
    content: '▼';
    font-size: 12px;
    transition: 0.3s;
}

.mes-faq-item.active .mes-faq-question::after {
    transform: rotate(180deg);
}

.mes-faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #e0f2f1;
    transition: 0.4s;
    padding: 0 18px;
    font-size: 12px;
}

.mes-faq-item.active .mes-faq-answer {
    max-height: 300px;
    padding: 15px 18px;
}




.mes-faq-question,
.mes-faq-question p,
.home-faq p {
    font-style: normal !important;
}




/* ============================================================
   تابع: گالری تلپورت
   ============================================================ */

/* ===== بخش A: کادر اصلی گالری ===== */

.home-gallery {
    padding: 10px;
}


.mes-gallery-teleport {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
}


/* ===== بخش B: چیدمان قاب‌ها ===== */

.mes-gallery-frames {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    z-index: 2;
}

/* ===== بخش C: هر قاب ===== */

.mes-frame {
    height: 200px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #0d7377;
}

/* ===== بخش D: عکس ثابت داخل قاب ===== */

.mes-frame-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== بخش E: عکس متحرک ===== */


.mes-moving-image {
    position: absolute;
    width: 18%;
    height: 195px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    z-index: 5;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}









/* ============================================================
   تابع: نظرات مشتریان
   ============================================================ */

/* ===== بخش A: چیدمان ستون‌ها ===== */

.mes-testimonial-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
}

/* ===== بخش B: هر ستون ===== */

.mes-testimonial-col {
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 12px;
    padding: 15px;
}

/* ===== بخش C: عنوان ستون ===== */

.mes-col-title {
    color: #0d7377;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d7377;
}

/* ===== بخش D: هر نظر ===== */

.mes-testimonial {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #0d7377;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-right: 3px solid #0d7377;
}

/* ===== بخش E: ستاره‌ها ===== */

.mes-testimonial-stars {
    font-size: 13px;
    margin-bottom: 6px;
}

/* ===== بخش F: متن نظر ===== */

.mes-testimonial-text {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 6px;
    font-style: italic;
    color: #333333;
}

/* ===== بخش G: نام مشتری ===== */

.mes-testimonial-author {
    display: block;
    font-weight: bold;
    color: #0d7377;
    font-size: 12px;
    margin-top: 5px;
}


.mes-testimonial-date {
    display: block;
    font-size: 10px;
    color: #999999;
    margin-top: 5px;

}

















/* ============================================================
   تابع: تیم و پرسنل
   ============================================================ */

/* ===== بخش الف: متغیرهای تیم ===== */

.team-section {
    --team-rotate: -15deg;
    --team-paper-height: 235px;
    --team-photo-height: 190px;
    overflow: hidden;
}

/* ===== بخش ب: چیدمان کارت‌ها ===== */

.team-section .team-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 50px;
    align-items: start;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ===== بخش پ: تعداد کارت‌ها ===== */

.team-section .team-wrapper:has(.mes-team-card:nth-child(1):last-child) { grid-template-columns: 1fr; }
.team-section .team-wrapper:has(.mes-team-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-section .team-wrapper:has(.mes-team-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-section .team-wrapper:has(.mes-team-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== بخش ت: کارت ===== */

.team-section .mes-team-card {
    width: 105%;
    margin-left: -2.5%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    position: relative;
    transform-origin: center center;
    border: none;
}

/* ===== بخش ث: قاب عکس ===== */

.team-section .mes-team-photo {
    width: 100%;
    height: var(--team-photo-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d7377, #8edbd5 18%, #ffffff 50%, #8edbd5 82%, #0d7377);
    padding: 7px;
    border: 1px solid #0d7377;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 8;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .65);
    transform: perspective(1000px) rotateY(var(--team-rotate));
}

/* ===== بخش ج: لبه بالای قاب ===== */

.team-section .mes-team-photo::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 7%;
    width: 86%;
    height: 6px;
    background: #8edbd5;
    border: 1px solid #0d7377;
    border-radius: 50%;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .15);
    z-index: 2;
}

/* ===== بخش ح: لبه پایین قاب ===== */

.team-section .mes-team-photo::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 8%;
    width: 84%;
    height: 7px;
    background: #0d7377;
    border: 1px solid #0a5f62;
    border-radius: 50%;
    box-shadow: 0 3px 4px rgba(0, 0, 0, .18);
    z-index: 2;
}

/* ===== بخش خ: تصویر ===== */

.team-section .mes-team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #e0f8f5;
    box-sizing: border-box;
}

/* ===== بخش د: بدون عکس ===== */

.team-section .mes-team-no-photo {
    font-size: 50px;
    opacity: .2;
}

/* ===== بخش ذ: عنوان ===== */

.team-section .mes-team-card h4 {
    width: 97%;
    margin: 10px 0 0 -2.5%;
    padding: 8px 10px;
    background: linear-gradient(180deg, #e0f8f5, #ffffff 50%, #8edbd5);
    color: #0d7377;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #0d7377;
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 8px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .9);
    transform: perspective(1000px) rotateY(var(--team-rotate));
    text-shadow: 0 1px rgba(255, 255, 255, .8);
}

/* ===== بخش ر: لبه چپ عنوان ===== */

.team-section .mes-team-card h4::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    width: 7px;
    height: calc(100% - 6px);
    background: #0d7377;
    transform: skewY(-8deg);
    z-index: -1;
}

/* ===== بخش ز: لبه راست عنوان ===== */

.team-section .mes-team-card h4::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 3px;
    width: 7px;
    height: calc(100% - 6px);
    background: #0d7377;
    transform: skewY(8deg);
    z-index: -1;
}

/* ===== بخش س: توضیحات ===== */

.team-section .mes-team-desc {
    width: 98%;
    margin: 20px 0 0 -2.5%;
    min-height: var(--team-paper-height);
    padding: 38px 10px 55px;
    box-sizing: border-box;
    background: linear-gradient(180deg, transparent 0, transparent 89%, rgba(13, 115, 119, .04) 89%, rgba(13, 115, 119, .10) 94%, transparent 100%), linear-gradient(90deg, rgba(13, 115, 119, .08), transparent 10%, rgba(255, 255, 255, .8) 25%, transparent 52%, rgba(255, 255, 255, .7) 80%, rgba(13, 115, 119, .08)), #ffffff;
    border: 1px solid #0d7377;
    position: relative;
    z-index: 4;
    box-shadow: -14px 16px 22px rgba(0, 0, 0, .15), inset 7px 0 10px rgba(13, 115, 119, .08), inset -7px 0 10px rgba(13, 115, 119, .08);
    transform: perspective(1000px) rotateY(var(--team-rotate));
    transform-origin: center center;
}

/* ===== بخش ش: پیچش بالای توضیحات ===== */

.team-section .mes-team-desc::before {
    content: "";
    position: absolute;
    top: -27px;
    left: -2px;
    width: calc(100% + 4px);
    height: 48px;
    background: linear-gradient(180deg, #0d7377 0, #5fbeb9 15%, #8edbd5 35%, #ffffff 52%, #8edbd5 72%, #0d7377 100%);
    border: 1px solid #0d7377;
    box-shadow: 0 6px 8px rgba(0, 0, 0, .18);
    clip-path: path("M 0 22 C 20 4 45 4 70 13 C 110 27 170 29 220 18 C 265 8 310 4 350 18 L 350 35 C 310 47 265 46 220 38 C 170 29 110 28 70 39 C 42 47 18 43 0 32 Z");
    z-index: 7;
    transform: rotate(-1deg);
}

/* ===== بخش ص: پیچش پایین توضیحات ===== */

.team-section .mes-team-desc::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -2px;
    width: calc(100% + 4px);
    height: 58px;
    background: linear-gradient(180deg, #0d7377 0, #5fbeb9 13%, #8edbd5 30%, #ffffff 48%, #8edbd5 64%, #0d7377 80%, #084f52 100%);
    border: 1px solid #0d7377;
    box-shadow: 0 11px 12px rgba(0, 0, 0, .22);
    clip-path: path("M 0 22 C 20 39 42 47 70 43 C 110 37 155 21 200 20 C 250 19 305 29 350 44 L 350 57 C 305 48 250 38 200 38 C 155 39 110 52 70 57 C 42 60 17 51 0 35 Z");
    z-index: 7;
    transform: rotate(1deg);
}

/* ===== بخش ض: متن توضیحات ===== */

.team-section .mes-team-desc p {
    font-size: 12px;
    color: #245b5d;
    line-height: 1.9;
    text-align: justify;
    word-spacing: 1px;
    margin: 0;
    position: relative;
    z-index: 8;
    text-shadow: 0 1px rgba(255, 255, 255, .8);
}

/* ===== بخش ط: زاویه کارت‌ها ===== */

.team-section .mes-team-card:nth-child(1) { --team-rotate: -10deg; }
.team-section .mes-team-card:nth-child(2) { --team-rotate: -12deg; }
.team-section .mes-team-card:nth-child(3) { --team-rotate: -11deg; }
.team-section .mes-team-card:nth-child(4) { --team-rotate: -13deg; }







/* ============================================================
   تابع: پیشنهاد لحظه‌ای
   ============================================================ */

/* ===== بخش A: کادر اصلی ===== */

.home-cta {
    text-align: center;
}

/* ===== بخش B: عنوان بخش ===== */

.home-cta .section-title {
    text-align: center;
    background: #0d7377;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: block;
    width: auto;
    max-width: 200px;
    margin: 0 auto 10px;
}

/* ===== بخش C: شعار ===== */

.mes-slogan {
    display: inline-block;
    background: #e0f2f1;
    color: #0d7377;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 auto 20px;
    font-size: 14px;
}













/* ============================================================
   تابع: تخفیف لحظه‌ای
   ============================================================ */

/* ===== بخش A: کادر اصلی ===== */

.home-sale {
    text-align: center;
    position: relative;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
    margin: 10px auto;
    max-width: 100%;
}

/* ===== بخش B: ردیف عنوان ===== */

.mes-sale-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    position: relative;
}

/* ===== بخش C: عنوان ===== */

.home-sale .section-title {
    text-align: center;
    background: #b80a0a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto 10px;

}



   
/* ===== بخش D: روبان فرصت محدود ===== */

.mes-sale-ribbon {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 15px;
    background: #0d7377;
    border-radius: 25px;
    border: 2px solid #e0f2f1;
}

/* ===== بخش E: شعار ===== */

.mes-sale-slogan {
    display: block;
    text-align: center;
    background: #fdedec;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 auto 20px;
    font-size: 14px;
    width: fit-content;
}





/* ============================================================
   ناحیه های خالی 5 بخش دلبخواهی -جای خالی‌های انعطاف‌پذیر بین بخش های قالب 
   ============================================================ */
    
/* ===== بخش الف: کادر اصلی ===== */

.home-empty {
    max-width: 100%;
    width: 100%;
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* ===== بخش ب: محتوای داخل ===== */

.home-empty .mes-slot-widget {
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    border-radius: 15px;
    border: 1px solid #0d7377;
}

/* ===== بخش پ: عنوان ===== */

.home-empty .section-title {
    text-align: center;
    background: #0d7377;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto 15px;
    font-size: 18px;
    font-weight: 800;
}

/* ===== بخش ت: خط زیر عنوان ===== */

.home-empty .section-title::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    margin: 8px auto 0;
    background: #8edbd5;
    border-radius: 10px;
}

/* ===== بخش ث: متن ===== */

.home-empty p {
    font-size: 14px;
    line-height: 1.9;
    color: #333333;
    margin: 0 0 15px;
    text-align: justify;
}

/* ===== بخش ج: تصویر ===== */

.home-empty img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}






















/* ============================================================
   تابع ۱۸: فوتر
   ============================================================ */
   .mes-footer {
    background: #0d7377;
    color: #ffffff;
    margin-top: 5px;
    padding: 15px 10px 20px;
}

.mes-footer .mes-container {
    width: 100%;
    padding: 0 10px;
}

.mes-footer-titles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mes-footer-title {
    flex: 1;
    min-width: 200px;
    font-size: 13px;
    padding: 3px 8px;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mes-footer-title-icon {
    font-size: 18px;
}

.mes-footer-columns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mes-footer-column {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(25% - 5px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.mes-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mes-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mes-footer-link:hover {
    color: #8edbd5;
}

.mes-footer-link-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.mes-footer-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
}



.mes-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mes-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.mes-contact-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.mes-contact-label {
    color: #8edbd5;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 11px;
}

.mes-contact-value {
    margin-right: auto;
    color: #ffffff;
    direction: ltr;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.6;
}

.mes-footer-copyright {
    display: flex;
    justify-content: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 25px;
    font-size: 12px;
}



.mes-footer-copyright {
    text-align: center;
}

.mes-copyright-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}




/* ============================================================
   تابع ۱۹: صفحه تکی  نوشته و برگه
   ============================================================ */
.mes-single-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.mes-single-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    padding: 40px;
    margin-bottom: 40px;
}

.mes-single-title {
    font-size: 28px;
    color: #0d7377;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0d7377;
}

.mes-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888888;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eeeeee;
}

.mes-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mes-meta-separator {
    color: #cccccc;
}

.mes-single-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.mes-single-text {
    flex: 1.6;
    font-size: 16px;
    line-height: 2.2;
    color: #333333;
}

.mes-single-image {
    flex: 1;
    max-width: 35%;
}

.mes-single-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #0d7377;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.2);
}

.mes-single-full {
    font-size: 16px;
    line-height: 2.2;
    color: #333333;
}

.mes-single-tags {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.mes-single-tags a {
    display: inline-block;
    background: #e0f2f1;
    color: #0d7377;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 6px;
}








/* ============================================================
   کد انکار کردن الان دادی.تداخل کد داره فکر کنم با بالایی
   ============================================================ */

.mes-comments-wrapper {
    display: block;
    width: 100%;
    margin-top: 40px;
    clear: both;
}




/* ============================================================
   تابع ۲۰: فرم تماس
   ============================================================ */
.mes-contact-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.mes-contact-title {
    font-size: 22px;
    color: #0d7377;
    margin-bottom: 8px;
}

.mes-contact-subtitle {
    font-size: 14px;
    color: #888888;
    margin-bottom: 25px;
}

.mes-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.mes-form-row input {
    flex: 1;
}

.mes-contact-form input,
.mes-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
    margin-bottom: 15px;
}

.mes-contact-form input:focus,
.mes-contact-form textarea:focus {
    border-color: #0d7377;
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.mes-btn-submit {
    margin-bottom: 0;
    font-weight: 700;
}

.mes-form-success {
    color: #2e7d32;
    margin-top: 15px;
    font-weight: 600;
}

.mes-form-error {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: 600;
}

/* ============================================================
   تابع ۲۱: صفحه ۴۰۴
   ============================================================ */
.mes-404 {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.mes-404 h1 {
    font-size: 100px;
    font-weight: 900;
    color: #0d7377;
    margin: 0 0 10px;
    line-height: 1;
}

.mes-404 h2 {
    font-size: 22px;
    color: #333333;
    margin: 0 0 15px;
}

.mes-404 p {
    font-size: 15px;
    color: #666666;
    line-height: 2;
    margin-bottom: 25px;
}

.mes-404-search {
    margin-bottom: 25px;
}

.mes-404-search input[type="search"] {
    width: 100%;
    max-width: 350px;
    padding: 10px 16px;
    border: 2px solid #0d7377;
    border-radius: 30px;
    font-size: 14px;
}

.mes-404-search input[type="submit"] {
    background: #0d7377;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.mes-404-home a {
    display: inline-block;
    background: #0d7377;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
}

/* ============================================================
   تابع ۲۲: جدول
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #e5e5e5;
}

table th {
    background: #0d7377;
    color: #ffffff;
}

/* ============================================================
   تابع ۲۳: اسکرول‌بار
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0d7377;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #ececec;
}





/* ============================================================
   تابع ۲۴: ریسپانسیو
   ============================================================ */
@media (max-width: 1100px) {
    .mes-header-top-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .mes-header-top-inner,
    .mes-header-bottom-inner {
        flex-direction: column;
        align-items: center;
    }
    
    .mes-header-menu-area {
        justify-content: center;
    }
    
    .mes-header-search {
        width: 120px;
    }
    
    .mes-three-col {
        flex-direction: column;
    }
    
    .mes-blog-grid,
    .mes-gallery {
        grid-template-columns: 1fr;
    }
    
    .mes-single-body,
    .mes-about-row,
    .mes-about-row.reverse {
        flex-direction: column;
    }
    
    .mes-about-image,
    .mes-about-text,
    .mes-single-image {
        width: 100%;
        max-width: 100%;
    }
    
    .mes-single-image img {
        height: 200px;
    }
    
    .mes-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mes-footer-columns,
    .mes-footer-titles {
        flex-direction: column;
    }
}











/* ===== کادر پیگیری مرسوله ===== */
.mes-tracking-box {
    background: #ffffff;
    border: 2px solid #0d7377;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.mes-tracking-box h3 {
    color: #0d7377;
    margin-bottom: 15px;
}

.mes-tracking-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mes-tracking-form input {
    max-width: 300px;
    padding: 12px;
    border: 1px solid #0d7377;
    border-radius: 8px;
    font-family: inherit;
}



















/* =====  آمار بازدید ===== */


.mes-stats-table{width:100%}
.mes-stats-table table{width:100%;border-collapse:collapse;border:1px solid #d1e0df;border-radius:10px;overflow:hidden}
.mes-stats-table td{padding:8px 10px;border-bottom:1px solid #e8f0ef;font-size:12px}
.mes-stats-table tr:last-child td{border-bottom:none}
.stats-icon{font-size:16px;width:30px;text-align:center}
.stats-label{color:#555;font-weight:600}
.stats-value{color:#0d7377;font-weight:800;direction:ltr;text-align:left}














/* ============================================================
   تابع: صفحه فروشگاه
   ============================================================ */

/* ===== بخش الف: کادر اصلی ===== */

#mes-shop {
    width: 98%;
    max-width: 1400px;
    margin: 15px auto 0;
}



/* ===== بخش ب: هدر فروشگاه ===== */

.mes-shop-topbar {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 5px;
}

.mes-shop-title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 5px;
    background: linear-gradient(135deg, #0d7377, #009688);
    border-radius: 10px;
    color: #ffffff;
    min-width: 130px;
    text-align: center;
    flex-shrink: 0;
}

.mes-shop-title-box h1 {
    font-size: 13px;
    margin: 0 0 2px;
    font-weight: 800;
    color: #ffffff;
}

.mes-shop-title-box .mes-shop-count {
    font-size: 10px;
    opacity: 0.9;
    margin: 0;
    color: #ffffff;
}

.mes-shop-toolbar {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}






/* ===== بخش پ: نوار ابزار ===== */

.mes-shop-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mes-shop-filter select {
    width: 180px;
    padding: 8px 12px;
    border: 2px solid #0d7377;
    border-radius: 30px;
    font-size: 13px;
    background: #ffffff;
    outline: 0;
}

.mes-shop-search {
    flex: 0 0 180px;
}

.mes-shop-search input {
    width: 100%;
    padding: 8px 14px;
    border: 2px solid #0d7377;
    border-radius: 30px;
    font-size: 12px;
    outline: 0;
    box-sizing: border-box;
}

.mes-shop-sort {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 6px 14px;
    border-radius: 30px;
}

.mes-shop-sort span {
    font-size: 12px;
    color: #666666;
}

.mes-sort-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-decoration: none;
    background: #f0f0f0;
    color: #555555;
    white-space: nowrap;
    transition: 0.3s;
}

.mes-sort-btn.active,
.mes-sort-btn:hover {
    background: #0d7377;
    color: #ffffff;
}

.mes-print-btn {
    background: #0d7377;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== بخش ت: دسته‌بندی ===== */

.mes-shop-category {
    margin-bottom: 20px;
}



.mes-shop-cat-header {
    background: #0d7377;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.mes-shop-cat-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    background: #e0f2f1;
    padding: 5px 15px;
    border-radius: 10px;
    display: block;
    text-align: right;
    color: #0d7377;
}

.mes-cat-icon {
    font-size: 25px;
}

.mes-shop-cat-count {
    font-size: 16px;
    font-weight: 700;
    background: #e0f2f1;
    color: #0d7377;
    padding: 6px 20px;
    border-radius: 20px;
}

/* ===== بخش ث: زیردسته ===== */

.mes-sub-cat-wrapper {
    background: #e0f2f1;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 15px;
    border: 1px dashed #555555;
}

.mes-sub-cat-wrapper .mes-sub-cat-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
}

.mes-sub-cat-title {
    font-size: 18px;
    color: #0d7377;
    font-weight: 700;
    margin: 0 0 12px;
    padding-right: 10px;
    border-right: 4px solid #0d7377;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mes-sub-cat-count {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 700;
    background: #fde8e8;
    padding: 2px 12px;
    border-radius: 20px;
}

.mes-no-products {
    padding: 20px;
    text-align: center;
    color: #888888;
}

/* ===== بخش ج: چیدمان کارت‌ها ===== */

.mes-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 15px;
}

/* ============================================================
   تابع: کارت محصول
   ============================================================ */

/* ===== بخش الف: کارت ===== */

.mes-product-card {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #bdbdbd;
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 5px;
}

.mes-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(13, 115, 119, 0.15);
}

.mes-product-card.hidden {
    display: none;
}

/* ===== بخش ب: روبان تخفیف (گوشه راست بالا، کج) ===== */

.mes-product-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: #e74c3c;
    color: #ffffff;
    padding: 6px 35px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== بخش پ: عکس ===== */

.mes-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mes-product-thumb {
    height: 180px;
    overflow: hidden;
    background: #f9f9f9;

}

.mes-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 15px;


}

.mes-product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 50px;
    color: #dddddd;
}

/* ===== بخش ت: عنوان ===== */

.mes-product-title {
    font-size: 12px;
    color: #333333;
    margin: 10px 2px 8px;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.5;
}

/* ===== بخش ث: ویژگی‌ها ===== */

.mes-product-sizes {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 2px;
    margin-bottom: 6px;
}

.mes-product-sizes span {
    font-size: 11px;
    background: #f0f0f0;
    padding: 3px 5px;
    border-radius: 10px;
    color: #555555;
    white-space: nowrap;
}

/* ===== بخش ج: قیمت ===== */

.mes-product-price {
    font-size: 12px;
    font-weight: 700;
    color: #0d7377;
    margin: 4px 2px;
    text-align: center;
}

.mes-product-price del {
    color: #999999;
    font-size: 13px;
}

.mes-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* ===== بخش ح: تاریخ بروزرسانی ===== */

.mes-product-date {
    font-size: 10px;
    color: #888888;
    margin-bottom: 8px;
}

/* ===== بخش خ: دکمه‌ها ===== */

.mes-product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 2px;
    flex-wrap: nowrap;
}

.mes-product-actions .mes-btn {
    padding: 6px 10px;
    font-size: 10px;
}

.mes-cart-btn,
.mes-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #0d7377;
    background: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
}

.mes-cart-btn {
    border-color: #ff9800;
}

.mes-wishlist-btn {
    border-color: #c0392d;
}

.mes-cart-btn:hover,
.mes-wishlist-btn:hover {
    transform: scale(1.1);
}

.mes-wishlist-btn.active {
    background: #fff5f5;
    border-color: #e74c3c;
}

/* ===== بخش د: روبان تاریخ و ساعت (پایین کارت) ===== */

.mes-product-sale-ribbon {
    background: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 2px;
    margin-top: 2px;
    border-radius: 0 0 15px 15px;
    line-height: 1.6;
}

.mes-ribbon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mes-ribbon-label {
    opacity: 0.9;
}

.mes-ribbon-value {
    font-weight: 800;
}

.mes-ribbon-time {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 9px;
    direction: ltr;
}





/* ============================================================
   چاپ
   ============================================================ */

@media print {

    #wpadminbar,
    header,
    footer,
    .mes-shop-toolbar,
    .mes-shop-header,
    .mes-product-actions {
        display: none !important;
    }

    #mes-shop {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    .mes-product-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }

    .mes-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }

    .mes-product-thumb {
        height: 140px !important;
    }
}






/* ============================================================
   سبد خرید در کارت
   ============================================================ */

   .mes-cart-btn.added {
    background: #f99800;
    border-color: #ff9800;
    color: #ffffff;
}

.mes-cart-btn.added .mes-cart-icon {
    color: #ffffff;
}

.added_to_cart {
    display: none !important;
}




/* ============================================================
   علاقه مندی ت
   ============================================================ */
.mes-badge-wishlist {
    display: none;
}







/* ============================================================
   دکمه مشاهده همه در صفحه محصولات :وسط چین کردن و بزرگتر کردن
   ============================================================ */
.mes-category-more-button {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}


.mes-category-more-button .mes-btn-all {
    padding: 10px 28px;
    font-size: 15px;
}




/* ============================================================
   تابع: صفحه تک محصول
   ============================================================ */

/* ===== بخش الف: کانتینر اصلی ===== */

#mes-single-product {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
}

#mes-single-product .mes-single-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ===== بخش ب: کادر عکس ===== */

.mes-single-gallery {
    width: 50%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 400px;
}

.mes-single-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.mes-single-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    font-size: 80px;
    color: #dddddd;
}

.mes-single-gallery .mes-product-sale-ribbon {
    position: relative;
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    width: 100%;
    font-size: 14px;
    padding: 10px 15px;
    
}

/* ===== بخش پ: کادر توضیحات ===== */

.mes-single-details {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.mes-single-details .mes-product-ribbon {
    position: absolute;
    margin-top: 12px;
    right: -30px;
    transform: rotate(45deg);
    z-index: 10;
}

.mes-single-title {
    font-size: 24px;
    color: #0d7377;
    margin: 0;
    font-weight: 800;
    padding-left: 80px;
}

.mes-single-short-desc {
    font-size: 13px;
    color: #555555;
    line-height: 1.9;
}

.mes-single-price {
    font-size: 22px;
    font-weight: 800;
    color: #0d7377;
    margin: 0;
}

.mes-single-price del {
    color: #999999;
    font-size: 16px;
    margin-left: 8px;
}

.mes-single-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.mes-single-date {
    font-size: 12px;
    color: #888888;
}

/* ===== بخش ت: ابعاد ===== */

.mes-single-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mes-single-sizes span {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #555555;
}

/* ===== بخش ث: دکمه‌ها ===== */

.mes-single-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.mes-single-actions .mes-cart-btn,
.mes-single-actions .mes-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #0d7377;
    background: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}

.mes-single-actions .mes-cart-btn {
    border-color: #ff9800;
}

.mes-single-actions .mes-wishlist-btn {
    border-color: #c0392d;
}

.mes-single-actions .mes-cart-btn:hover,
.mes-single-actions .mes-wishlist-btn:hover {
    transform: scale(1.1);
}

/* ===== بخش ج: کادر استعلام ===== */

.mes-single-inquiry {
    background: #fff8e1;
    padding: 15px 15px 15px 70px;
    border-radius: 10px;
    border: 1px solid #ffc107;
    margin-top: 5px;
    position: relative;
    min-height: 90px;
}

.mes-single-inquiry h3 {
    font-size: 15px;
    color: #333333;
    margin: 0 0 5px;
}

.mes-single-inquiry p {
    font-size: 12px;
    color: #666666;
    margin: 0;
    line-height: 1.8;
}

.mes-single-inquiry .mes-floating-phone {
    position: absolute;
    bottom: 15px;
    left: 15px;
    top: auto;
    right: auto;
}

/* ===== بخش چ: دکمه چاپ ===== */

.mes-single-print {
    text-align: center;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mes-single-print .mes-print-btn {
    background: #0d7377;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.mes-single-print .mes-print-btn:hover {
    background: #0a5f62;
}

/* ===== بخش ح: محصولات مشابه ===== */

.mes-single-related {
    margin-top: 40px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
}

.mes-single-related .section-title {
    margin-bottom: 20px;
}

/* ===== بخش خ: پیشنهاد ویژه ===== */

.mes-single-random {
    margin-top: 40px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
}

.mes-single-random .section-title {
    margin-bottom: 20px;
}

/* ===== بخش د: نظرات ===== */

.mes-single-reviews {
    margin-top: 40px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #0d7377;
    border-radius: 15px;
}

.mes-single-reviews .section-title {
    margin-bottom: 20px;
}


.mes-single-details .mes-product-sale-ribbon {
    font-size: 12px;
}

/* ============================================================
   چاپ
   ============================================================ */

@media print {

    header,
    footer,
    .mes-single-actions,
    .mes-single-inquiry,
    .mes-single-print,
    .mes-single-related,
    .mes-single-random,
    .mes-single-reviews {
        display: none !important;
    }

    .mes-single-container {
        box-shadow: none;
        border: 1px solid #cccccc;
    }

}












/* ============================================================
   برگه فاکتور صفحه سبد خرید
   ============================================================ */

/* ---بخش آ: قاب اصلی--- */
.mes-cart-page{max-width:900px;margin:40px auto;direction:rtl}
.mes-cart-page>h1{text-align:right;border-bottom:2px solid #7b2cbf;padding:0 0 12px;margin-bottom:25px;color:#333}
.mes-cart-box{border:1px solid #ddd;border-radius:12px;padding:20px;margin-bottom:25px;background:#fff;box-shadow:0 3px 12px #0000000d}
.mes-cart-box h2{text-align:right;color:#7b2cbf;border-bottom:1px solid #eee;padding-bottom:12px;margin:0 0 20px}

/* ---بخش ب: جدول فاکتور--- */
.mes-cart-box .woocommerce-cart-form{width:100%;overflow-x:visible}
.mes-cart-box .woocommerce-cart-form__contents{width:100%;table-layout:fixed;border-collapse:collapse}
.mes-cart-box .woocommerce-cart-form__contents th,
.mes-cart-box .woocommerce-cart-form__contents td{vertical-align:middle;text-align:center}

/* ---بخش ج: پهنای ستون‌ها--- */
.mes-cart-box .woocommerce-cart-form__contents th.product-remove,
.mes-cart-box .woocommerce-cart-form__contents td.product-remove{width:7%;padding-left:3px;padding-right:3px;white-space:nowrap}
.mes-cart-box .woocommerce-cart-form__contents th.product-thumbnail,
.mes-cart-box .woocommerce-cart-form__contents td.product-thumbnail{width:13%;padding-left:5px;padding-right:5px}
.mes-cart-box .woocommerce-cart-form__contents th.product-name,
.mes-cart-box .woocommerce-cart-form__contents td.product-name{width:31%;padding-left:8px;padding-right:8px}
.mes-cart-box .woocommerce-cart-form__contents th.product-price,
.mes-cart-box .woocommerce-cart-form__contents td.product-price{width:22%;padding-left:4px;padding-right:4px}
.mes-cart-box .woocommerce-cart-form__contents th.product-quantity,
.mes-cart-box .woocommerce-cart-form__contents td.product-quantity{width:10%;padding-left:2px;padding-right:2px}
.mes-cart-box .woocommerce-cart-form__contents th.product-subtotal,
.mes-cart-box .woocommerce-cart-form__contents td.product-subtotal{width:17%;padding-left:4px;padding-right:4px;white-space:nowrap}

/* ---بخش د: عنوان ستون‌ها--- */
.woocommerce-cart-form th.product-subtotal{font-size:0}
.woocommerce-cart-form th.product-subtotal:after{content:"نهایی";font-size:14px}

.woocommerce-cart-form th.product-remove{font-size:0}
.woocommerce-cart-form th.product-remove:after{content:"حذف";font-size:14px}

.woocommerce-cart-form th.product-thumbnail{font-size:0}
.woocommerce-cart-form th.product-thumbnail:after{content:"عکس";font-size:14px}

.woocommerce-cart-form th.product-price{font-size:0}
.woocommerce-cart-form th.product-price:after{content:"قیمت اصلی و تخفیف";font-size:14px}

.woocommerce-cart-form th.product-quantity{font-size:0}
.woocommerce-cart-form th.product-quantity:after{content:"تعداد";font-size:14px}

/* ---بخش هـ: عکس محصول--- */
.woocommerce-cart-form .product-thumbnail img{width:75px!important;height:75px!important;object-fit:cover}

/* ---بخش و: قیمت اصلی و تخفیف--- */
.woocommerce-cart-form .product-price{text-align:center!important}
.mes-cart-old-price{display:block;color:#888;line-height:1;margin-bottom:-10px;white-space:nowrap}
.mes-cart-sale-price{color:#d62828;white-space:nowrap}
.mes-cart-discount-percent{display:inline-block;margin-right:5px;padding:2px 6px;background:#d62828;color:#fff;border-radius:5px;font-size:12px;white-space:nowrap}

/* ---بخش ز: تعداد--- */
.woocommerce-cart-form .quantity{display:flex;justify-content:center;align-items:center;margin:0 auto}
.woocommerce-cart-form .quantity input.qty{width:60px;height:45px;margin:0;padding:0 5px;text-align:center}


/* ---بخش ح: جمع‌بندی فاکتور--- */
.cart_totals{
    width:calc(70% + 20px)!important;
    margin-right:-15px;
    padding:15px 25px!important;
}

.cart_totals .cart-subtotal{display:none}

.cart_totals .mes-original-total th{
    color:#fff!important;
}
.cart_totals .mes-original-total td{
    color:#333!important;
}

.cart_totals .mes-total-discount th{
    color:#fff!important;
}
.cart_totals .mes-total-discount td{
    color:#d62828!important;
    font-weight:700;
}

.cart_totals .order-total{
    background:#7b2cbf!important;
}

.cart_totals .order-total th,
.cart_totals .order-total td{
    background:#7b2cbf!important;
    color:#fff!important;
    vertical-align:middle!important;
    padding:15px!important;
}

.cart_totals .order-total th{
    font-size:0!important;
    font-weight:700!important;
    text-align:center!important;
}

.cart_totals .order-total th:after{
    content:"مجموع پرداختی شما"!important;
    display:block!important;
    width:100%!important;
    font-size:16px!important;
    line-height:1.5!important;
    text-align:center!important;
}

.cart_totals .order-total td{
    font-weight:700!important;
    text-align:center!important;
}















/* ============================================================
   مدیریت قیمت M_E_Shop1
   ============================================================ */

   


   /* =====================================================
   دکمه دسته‌بندی محصولات در منو
   ===================================================== */

.mes-header-menu-area li {
    position: relative;
}

/* زیرمنو - بسته */
.mes-header-menu-area li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 2px solid #c0392d;
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    list-style: none;
    margin: 0;
}

/* باز */
.mes-header-menu-area li.mes-dropdown-open > ul.sub-menu {
    display: block;
}

/* آیتم‌های زیرمنو */
.mes-header-menu-area ul.sub-menu li a {
    display: block;
    padding: 8px 12px;
    color: #0d7377;
    text-decoration: none;
    font-size: 13px;
    border-radius: 5px;
}

.mes-header-menu-area ul.sub-menu li a:hover {
    background: #e0f2f1;
}
