/*

Theme Name: VE 2026
Theme URL: http://www.Video-Effects.ir/
Description: Video Effects Web Theme
Author: Hossein Hadipour
Version: 3.0

*/

/* Fonts */

/* Override فونت قدیمی - در ابتدای style.css */
@font-face {
    font-family: "Vazirmatn" !important;
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2') !important,
         url('fonts/Vazirmatn-Medium.woff') format('woff') !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-display: swap !important;
}

/* Font Awesome */
@font-face {
    font-family: 'FontAwesome';
    src: url('fonts/fontawesome-webfont.eot');
    src: url('fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/fontawesome-webfont.woff2') format('woff2'),
         url('fonts/fontawesome-webfont.woff') format('woff'),
         url('fonts/fontawesome-webfont.ttf') format('truetype'),
         url('fonts/fontawesome-webfont.svg#FontAwesome') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* فونت اصلی سایت برای تمام فیلدها */
input, textarea, select, button {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* متن‌ها */
body, p, span, div, li, a, h1, h2, h3, h4, h5, h6, button {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
}

/* آیکن‌ها */
.fa, .fas, .far, .fal, .fab, .icon {
    font-family: 'FontAwesome' !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* Reset کلی */
* {
    margin: 0;
    padding: 0;
}

/* Background */
body {
    margin-top: 0px;
    background: 
        /* گرادیان عمودی */
        linear-gradient(180deg,
            #e8e8e8 0%,
            #f5f0e1 33%,
            #e8f4f8 66%,
            #e8e8e8 100%
        ),
        /* گرادیان افقی */
        linear-gradient(90deg,
            rgba(245, 240, 225, 0.3) 0%,
            rgba(232, 244, 248, 0.3) 100%
        );
    
    background-blend-mode: multiply;
    background-size: 100% 200vh, 100% 100%;
}


a {
    text-decoration: none;
    color: #000;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

.aligncenter {
    width: 100%;
    height: auto;
}

/* Scrollbar */
body::-webkit-scrollbar {
    background-color: #fff;
    width: 7px;
}

body::-webkit-scrollbar-thumb {
    background-color: #20242c;
    border-color: #000;
    border-radius: 5px;
}

/* Container */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
}

/* حتی بهتر برای موبایل */
@media (max-width: 767px) {
    .container {
        padding: 0 5px;
    }
}

/* اطمینان از اینکه اسکرول همیشه سمت راست باشد و فقط یک اسکرول وجود داشته باشد */
html {
    direction: rtl;          /* راست به چپ */
    height: 100%;
    overflow-y: scroll;      /* همیشه اسکرول عمودی */
    scrollbar-gutter: stable; /* جلوگیری از پرش محتوا */
}

body {
    min-height: 100vh;       /* حداقل ارتفاع برابر با صفحه نمایش */
    margin: 0;               /* حذف فاصله پیشفرض */
}

.container {
    min-height: 100vh;       /* فقط ارتفاع کافی برای پر شدن صفحه */
    overflow: visible;       /* جلوگیری از ایجاد اسکرول اضافی */
}

#gallery-1 .gallery-item {
  float: right;
  text-align: center;
  width: 33%;
  padding: 6px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  margin-top: 0px !important;
}

#gallery-1 .gallery-item:hover {
  transform: translateY(-4px);
}

#gallery-1 .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

#gallery-1 .gallery-item:hover img {
  border-color: #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#gallery-1 .gallery-caption {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  padding: 0 2px;
}

#gallery-1:after {
  content: "";
  display: table;
  clear: both;
}

/* ==================== */
/* استایل صفحه Single */
/* ==================== */

/* Layout */
.single-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.single-main-content {
    flex: 1;
    min-width: 0; /* برای جلوگیری از overflow */
}

.single-sidebar {
    flex-shrink: 0;
}

/* هدر پست */
.single-post-header {
    background: #ffffffa1;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-post-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-tag {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-tag:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.single-post-title {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.4;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #7f8c8d;
}

.meta-item i {
    color: #3498db;
}

.meta-label {
    font-weight: 600;
    color: #34495e;
}

/* محتوای پست */
.single-post-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ویدیو */
.post-video-wrapper {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.post-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-progress {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
}

.video-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.video-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* محتوای متنی */
.post-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
}

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

.post-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* تگ‌ها */
.post-tags-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 30px 0;
}

.tags-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    background: #ecf0f1;
    color: #34495e;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* اشتراک‌گذاری */
.social-share {
    margin: 30px 0;
}

.share-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* دسکتاپ: 3 مطلب - موبایل: 2 مطلب */
.single-wrapper .posts-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .single-wrapper .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* سایدبار */
.download-sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.download-header i {
    font-size: 24px;
    color: #3498db;
}

.download-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.download-link:hover {
    background: #e3f2fd;
    transform: translateX(-5px);
    border-color: #3498db;
}

.download-info {
    flex: 1;
}

.download-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.download-desc {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
}

.download-action i {
    color: #3498db;
    font-size: 18px;
}

.sidebar-shop-link {
    margin-top: 20px;
}

.shop-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #2ecc71;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.shop-button:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* ویدجت سایدبار */
.sidebar-widgets {
    margin-bottom: 25px;
}

/* نویسنده */
.author-sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.author-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c3e50;
}

.author-bio {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 10px;
}

.author-posts-link {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    display: inline-block;
}

.author-posts-link:hover {
    text-decoration: underline;
}

/* فقط تنظیمات ضروری برای صفحه فروشگاه */

/* تصاویر مربعی فقط برای صفحه فروشگاه */
.category-row-container[data-source-type="shop"] .post-image-wrapper {
    aspect-ratio: 1/1 !important;
}

.category-row-container[data-source-type="shop"] .post-image-link img {
    object-fit: cover !important;
}

/* ================================= */
/* ===== SHOP PAGE – MOBILE ======== */
/* ================================= */

@media only screen and (max-width: 768px) {

    /* گرید محصولات */
    .category-row-container[data-source-type="shop"] .posts-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 15px 0 !important;
        overflow-x: visible !important;
    }

    /* کارت محصول */
    .category-row-container[data-source-type="shop"] .post-card {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* تصویر */
    .category-row-container[data-source-type="shop"] .post-image-wrapper {
        aspect-ratio: 1 / 1 !important;
        padding: 8px 8px 0 8px !important;
    }

    .category-row-container[data-source-type="shop"] .post-image-link img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    /* محتوا */
    .category-row-container[data-source-type="shop"] .post-content {
        padding: 8px !important;
        box-sizing: border-box !important;
    }

    .category-row-container[data-source-type="shop"] .post-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 0 0 6px 0 !important;
    }

    /* قیمت */
    .category-row-container[data-source-type="shop"] .price-container-desktop {
        display: none !important;
    }

    .category-row-container[data-source-type="shop"] .price-container-mobile {
        display: block !important;
    }

    /* لیوت صفحه */
    .category-row-container[data-source-type="shop"] .shop-layout {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* دکمه دسته‌بندی */
    .category-row-container[data-source-type="shop"] .mobile-category-toggle {
        display: flex !important;
    }

    /* سایدبار دسته‌بندی موبایل */
    .category-row-container[data-source-type="shop"] .shop-categories-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        height: 100vh !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        padding-top: 60px !important;
    }

    .category-row-container[data-source-type="shop"] .shop-categories-sidebar.mobile-visible {
        left: 0 !important;
    }

    /* تب‌های دسکتاپ */
    .category-row-container[data-source-type="shop"] .desktop-tabs {
        display: none !important;
    }

    /* تعداد محصولات */
    .category-row-container[data-source-type="shop"] .desktop-product-count {
        display: none !important;
    }

    /* ================================ */
    /* ===== SORT MENU (MOBILE) ======= */
    /* ================================ */

    /* دکمه مرتب‌سازی */
    .category-row-container[data-source-type="shop"] .mobile-tabs-toggle {
        width: 100%;
    }

    /* زیرمنو عمودی */
    .category-row-container[data-source-type="shop"] .mobile-tabs-menu {
        display: none;
        width: 100%;
        margin-top: 6px;
        flex-direction: column;
    }

    .category-row-container[data-source-type="shop"] .mobile-tabs-menu.active {
        display: flex;
    }

    /* آیتم‌ها */
    .category-row-container[data-source-type="shop"] .mobile-tab {
        width: 100%;
        display: block;
        text-align: right;
    }
}

/* موبایل کوچک */
@media only screen and (max-width: 480px) {
    .category-row-container[data-source-type="shop"] .posts-grid {
        gap: 10px !important;
    }
}

/* دسکتاپ */
@media only screen and (min-width: 769px) {
    /* نمایش قیمت دسکتاپ و مخفی کردن موبایل */
    .category-row-container[data-source-type="shop"] .price-container-desktop {
        display: block !important;
    }
    
    .category-row-container[data-source-type="shop"] .price-container-mobile {
        display: none !important;
    }
    
    /* تعداد محصول در دسکتاپ نمایش داده شود */
    .category-row-container[data-source-type="shop"] .desktop-product-count {
        display: block !important;
    }
}


/* آخرین مطالب */
.recent-posts-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sidebar-title h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail-small {
    width: 100%;
    height: 100%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.recent-post-title a {
    color: #2c3e50;
    text-decoration: none;
}

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

.recent-post-date {
    font-size: 12px;
    color: #7f8c8d;
}

/* ==================== */
/* استایل بخش کوپن تخفیف */
/* ==================== */

.coupon-ve {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
  direction: rtl;
  width: 200px;
}

.card-coupon {
  display: inline-block;
  height: 125px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.2);
  padding: 8px 15px;
  background: #fff;
  box-sizing: border-box;
  direction: rtl;
}

.coupon-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: yellow;
  color: black;
  font-size: 30px;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 31px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: all 0.2s ease;
}

.coupon-close-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.img-coupon img {
  width: 100%;
  border-radius: 10px;
}

.copy-button {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  direction: ltr;
}

.copy-button input {
  text-align: center;
  color: #333;
}

.copybtn {
  background: #ff6a00;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  font-family: 'yekan';
}

.copybtn:hover {
  background: #e55d00;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .coupon-ve {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    display: block;
    width: 90%;
  }

  .card-coupon {
    width: 100%;
    height: auto;
    padding: 10px;
    margin: 0 auto;
  }
  
  .coupon-close-btn {
    top: -12px;
    left: -12px;
    width: 30px;
    height: 30px;
    line-height: 26px;
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  .coupon-ve {
    display: none;
  }
}

/* بخش نظرات */
.comments-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ریسپانسیو */
@media only screen and (max-width: 1200px) {
    .single-wrapper {
        flex-direction: column;
    }
    
    .single-sidebar {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .single-wrapper {
        padding: 15px;
    }
    
    .single-post-title {
        font-size: 24px;
    }
    
    .single-post-meta {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        align-self: center;
    }
}

@media only screen and (max-width: 480px) {
    .single-post-header,
    .single-post-content {
        padding: 20px;
    }
    
    .single-post-title {
        font-size: 20px;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* =================== بنر تخفیف ویدئو افکت =================== */
/* این کد باید به انتهای فایل style.css اضافه شود */

/* تنظیمات اصلی */
.ve-banner-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* رزرو فضا برای بنر از ابتدا */
.ve-banner-html {
    scroll-padding-top: 60px;
}

body.ve-banner-body {
    padding-top: 0px !important;
}

/* مخفی کردن کامل بنر وقتی بسته شده */
body.ve-banner-closed #ve-dailyBanner,
body.ve-banner-closed .ve-popup-overlay,
body.ve-banner-closed #ve-popupBanner {
    display: none !important;
}

body.ve-banner-closed {
    padding-top: 0 !important;
}

/* همچنین مخفی کردن وقتی پاپ‌آپ بسته شده */
body.ve-popup-closed .ve-popup-overlay,
body.ve-popup-closed #ve-popupBanner {
    display: none !important;
}

#ve-dailyBanner {
    position: static; /* تغییر از fixed به static */
    width: 100%;
    background: #6795b3;
    color: #fff;
    z-index: 1000;
    font-family: inherit;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 1;
    transform: translateY(0);
    height: 60px;
}

/* پاپ‌آپ جدید - فقط در دسکتاپ نمایش داده شود */
#ve-popupBanner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    background: #6795b3;
    color: #fff;
    z-index: 10001;
    font-family: inherit;
    overflow: hidden;
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 30px 25px;
}

#ve-popupBanner.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ve-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
}

.ve-popup-overlay.show {
    display: block;
}

.ve-popup-content {
    width: 100%;
    text-align: center;
}

.ve-popup-percent {
    font-size: 48px;
    font-weight: 900;
    color: #ffdd00;
    margin: 10px 0;
}

.ve-popup-text {
    font-size: 20px;
    color: #ffffff;
    margin: 15px 0;
    line-height: 1.4;
}

.ve-popup-timer {
    background: #fff;
    color: #000;
    padding: 12px 20px;
    border-radius: 25px;
    margin: 25px 0;
    font-size: 20px;
    display: inline-block;
    min-width: 150px;
}

.ve-popup-btn {
    background: #ffcc00;
    color: #000;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    margin: 15px 0;
    display: inline-block;
    transition: background 0.3s;
}

.ve-popup-btn:hover {
    background: #ffd633;
}

#ve-popupClose {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

#ve-popupClose:hover {
    color: #ff3333;
}

/* برف */
#ve-snowCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* کانتینر - دقیقاً 1280px در دسکتاپ */
.ve-banner-container {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    height: 60px;
}

/* سمت چپ */
.ve-banner-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    justify-content: flex-start;
}
.ve-big-percent {
    font-size: 28px;
    font-weight: 900;
    color: #ffdd00;
    white-space: nowrap;
}
.ve-discount-text {
    font-size: 16px;
    color: #ffffff;
    white-space: nowrap;
}

/* وسط - با متن پیش‌فرض */
.ve-banner-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    height: 40px;
}
.ve-center-box {
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 25px;
    text-align: center;
    line-height: 1.4;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 14px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    min-width: 200px;
}

#ve-quoteText {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    height: 1.4em;
    display: inline-block;
}

#ve-quoteAuthor {
    background: #FF8800;
    color: #fff;
    padding: 3px 10px;
    border-radius: 25px;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* سمت راست - تایمر جدید */
.ve-banner-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* استایل جدید تایمر - فاصله کم */
.ve-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 25px;
    min-width: 100px;
}

.ve-timer-value {
    font-size: 16px;
    color: #000;
    letter-spacing: 1px;
    line-height: 1.2;
}

.ve-timer-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 5px;
}

.ve-timer-label {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    line-height: 1;
}

/* برف زیبا */
#ve-snowCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ve-banner-btn {
    background: #ffcc00;
    color: #000;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 25px;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s;
    min-width: 120px;
    text-align: center;
}
.ve-banner-btn:hover {
    background: #ffd633;
}
#ve-closeBanner {
    font-size: 26px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    flex-shrink: 0;
}
#ve-closeBanner:hover {
    color: #ff3333;
}

/* دسکتاپ بزرگ - از 1280px به بالا */
@media (min-width: 1280px) {
    .ve-banner-container {
        width: 1280px;
        padding: 10px 20px;
    }
}

/* تبلت - بین 768 تا 1279 */
@media (min-width: 768px) and (max-width: 1279px) {
    .ve-banner-container {
        max-width: 95%;
        padding: 10px 15px;
    }
}

/* ==================== تنظیمات موبایل ==================== */

/* فقط موبایل - زیر 768px */
@media (max-width: 767px) {
    /* کلید اصلی: بنر باید static باشد نه fixed */
    #ve-dailyBanner {
        position: static !important; /* این مهمترین تغییر است */
        height: auto !important;
        min-height: 70px;
        margin-bottom: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    body.ve-banner-body {
        padding-top: 0 !important; /* حذف padding-top */
    }
    
    .ve-banner-html {
        scroll-padding-top: 0;
    }
    
    .ve-banner-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
        max-width: 100%;
        height: auto !important;
        min-height: 70px;
    }
    
    .ve-banner-left,
    .ve-banner-center,
    .ve-banner-right {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 100%;
        order: 1;
    }
    
    .ve-banner-left {
        justify-content: center;
        padding: 5px 0;
    }
    
    .ve-banner-center {
        order: 2;
        margin: 0;
        height: auto;
        padding: 5px 0;
    }
    
    .ve-banner-right {
        order: 3;
        justify-content: center;
        gap: 15px;
        padding: 5px 0;
    }
    
    .ve-big-percent {
        font-size: 22px;
    }
    
    .ve-discount-text {
        font-size: 13px;
    }
    
    .ve-center-box {
        font-size: 12px;
        padding: 5px 8px;
        flex-direction: column;
        gap: 4px;
        min-width: 160px;
    }
    
    #ve-quoteText {
        font-size: 11px;
        white-space: normal;
        line-height: 1.3;
    }
    
    #ve-quoteAuthor {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .ve-timer-container {
        padding: 4px 6px;
        min-width: 90px;
        gap: 0;
    }
    
    .ve-timer-value {
        font-size: 12px;
        line-height: 1;
    }
    
    .ve-timer-labels {
        padding: 0 3px;
    }
    
    .ve-timer-label {
        font-size: 7px;
        line-height: 0.9;
    }
    
    .ve-banner-btn {
        padding: 5px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    #ve-closeBanner {
        position: absolute;
        top: 5px;
        left: 10px;
        font-size: 22px;
        z-index: 10001;
    }
    
    /* مخفی کردن پاپ‌آپ در موبایل */
    #ve-popupBanner,
    .ve-popup-overlay {
        display: none !important;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    #ve-dailyBanner {
        min-height: 65px;
    }
    
    .ve-banner-container {
        padding: 6px 8px;
        min-height: 65px;
    }
    
    .ve-big-percent {
        font-size: 20px;
    }
    
    .ve-discount-text {
        font-size: 12px;
    }
    
    .ve-center-box {
        font-size: 11px;
        padding: 4px 6px;
        min-width: 140px;
    }
    
    #ve-quoteText {
        font-size: 10px;
    }
    
    #ve-quoteAuthor {
        font-size: 8px;
        padding: 1px 5px;
    }
    
    .ve-timer-container {
        padding: 3px 5px;
        min-width: 80px;
    }
    
    .ve-timer-value {
        font-size: 11px;
    }
    
    .ve-timer-label {
        font-size: 6px;
    }
    
    .ve-banner-btn {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 90px;
    }
}

/* دسکتاپ و تبلت - بالای 768px */
@media (min-width: 768px) {
    .ve-banner-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: 60px !important;
    }
    
    .ve-banner-left,
    .ve-banner-center,
    .ve-banner-right {
        min-width: auto !important;
        width: auto !important;
        flex: 1 !important;
        order: 0 !important;
        padding: 0 !important;
    }
    
    .ve-banner-left {
        justify-content: flex-start !important;
    }
    
    .ve-banner-right {
        justify-content: flex-end !important;
    }
    
    #ve-closeBanner {
        position: static !important;
    }
}

/* نمایش پاپ‌آپ فقط در دسکتاپ بزرگ (بالای 1024px) */
@media (max-width: 1024px) {
    #ve-popupBanner,
    .ve-popup-overlay {
        display: none !important;
    }
}

/* مخفی کردن پاپ‌آپ در تبلت */
@media (min-width: 768px) and (max-width: 1279px) {
    #ve-popupBanner,
    .ve-popup-overlay {
        display: none !important;
    }
}

/* انتهای کد CSS بنر */
/* =================== پایان کد بنر =================== */

    /* استایل‌های مخصوص این صفحه - پیشوند sp */
    .sp-title-meta-box {
        padding: 20px;
        background: white;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .sp-post-title-box {
        font-size: 22px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0 0 15px 0;
        line-height: 1.4;
        text-align: center;
        padding-bottom: 15px;
        border-bottom: 2px solid #3498db;
    }

    .sp-meta-line-box {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .sp-meta-item-box {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #666;
        padding: 6px 12px;
        background: #f8f9fa;
        border-radius: 20px;
        border: 1px solid #e9ecef;
        transition: all 0.2s ease;
    }

    .sp-meta-item-box:hover {
        background: white;
        border-color: #3498db;
        color: #3498db;
    }

    .sp-meta-icon-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
    }

    .sp-author-box {
        text-decoration: none;
        font-weight: 500;
        color: #666;
        transition: all 0.2s;
    }

    .sp-author-box:hover {
        color: #3498db;
    }

    .sp-meta-item-box.updated-box {
        background: rgba(52, 152, 219, 0.1);
        border-color: #3498db;
        color: #3498db;
    }

    /* مخفی کردن گالری ووکامرس */
    .woocommerce-product-gallery {
        display: none !important;
    }
    
    /* مخفی کردن شناسه محصول */
    .product_meta .sku_wrapper {
        display: none !important;
    }
    
    /* ساختار جدید - استفاده از کلاس single-wrapper */
    .sp-shop-layout {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* محتوای اصلی - کاملاً بدون بک‌گراند */
    .sp-shop-main-content {
        flex: 1;
        min-width: 300px;
        background: transparent !important;
        border-radius: 0;
        padding: 0;
        box-shadow: none !important;
        border: none !important;
        width: calc(100% - 430px);
        box-sizing: border-box;
        overflow: visible;
    }
    
    /* سایدبار - استفاده از کلاس single-sidebar */
    .sp-shop-gallery {
        width: 450px;
    }
    
    /* کادرهای سایدبار */
    .sp-sidebar-box {
        background: #ffffffa1;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        margin-bottom: 20px;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }
    
    .sp-sidebar-box:last-child {
        margin-bottom: 0;
    }
    
    /* هدر کادرهای سایدبار - مثل پیش‌نیازها */
    .sp-sidebar-box .section-header {
        padding: 15px;
        margin: 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sp-sidebar-box .section-header-title {
        font-size: 16px;
        color: #2c3e50;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* محتوای داخل کادر */
    .sp-sidebar-box-content {
        padding: 15px;
    }
    
    /* هشدار تخفیف جدید - با تایمر در یک ردیف */
    .sp-discount-warning {
        background: linear-gradient(135deg, #ff6b6b, #ee5a52);
        color: white;
        padding: 10px 15px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* سمت چپ - متن */
    .sp-discount-warning .ve-banner-left {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }
    
    .sp-discount-warning .discount-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* سمت راست - تایمر جدید */
    .sp-discount-warning .ve-banner-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    
    /* استایل جدید تایمر - فاصله کم */
    .sp-discount-warning .ve-timer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        background: rgba(255, 255, 255, 0.95);
        padding: 6px 12px;
        border-radius: 25px;
        min-width: 110px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .sp-discount-warning .ve-timer-value {
        font-size: 15px;
        color: #000;
        letter-spacing: 1px;
        line-height: 1.2;
        font-family: monospace;
        font-weight: 700;
    }
    
    .sp-discount-warning .ve-timer-labels {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 5px;
    }
    
    .sp-discount-warning .ve-timer-label {
        font-size: 9px;
        color: #666;
        text-transform: uppercase;
        flex: 1;
        text-align: center;
        line-height: 1;
        font-weight: 600;
    }
    
    /* لینک توضیحات کامل در سایدبار - بدون کادر */
    .sp-full-desc-link {
        margin: 0 0 15px 0;
    }
    
    .sp-full-desc-link a {
        display: block;
        background: linear-gradient(135deg, #3498db, #2c3e50);
        color: white;
        padding: 12px 20px;
        border-radius: 10px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        border: none;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
        margin: 0;
    }
    
    .sp-full-desc-link a:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
    }
    
    /* بخش ویدیو */
    .sp-sample-video {
        width: 100%;
        margin-top: 10px;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }
    
    .sp-sample-video .video-player {
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        background: #000;
    }
    
    .sp-sample-video .video-player video {
        width: 100%;
        display: block;
        border-radius: 10px;
    }
    
    /* گالری تصاویر - همه در یک ردیف */
    .sp-product-gallery {
        margin-top: 10px;
    }
    
    .sp-main-image {
        width: 100%;
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e9ecef;
        background: #ffffffa1;
    }
    
    .sp-active-image {
        width: 100%;
        object-fit: contain;
        display: block;
    }
    
    /* همه تصاویر کوچک در یک ردیف */
    .sp-thumbnails {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sp-thumb-item {
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid #e9ecef;
        cursor: pointer;
        transition: all 0.3s;
        background: white;
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sp-thumb-item:hover {
        border-color: #3498db;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(52, 152, 219, 0.15);
    }
    
    .sp-thumb-item.active {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }
    
    .sp-thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        padding: 5px;
    }
    

/* استایل قیمت اصلی */
.sp-product-purchase-box .price {
    font-size: 22px !important;
    color: #2c3e50;
    text-align: center;
    display: block;
    width: 100%;
    margin: 20px auto;
    line-height: 1.4;
}

/* قیمت قدیمی - خط خورده + قرمز کمرنگ */
.sp-product-purchase-box del .woocommerce-Price-amount {
    font-size: 18px !important;
    color: #ff6b6b !important; /* قرمز روشن */
    text-decoration: line-through !important;
    opacity: 0.8;
}

/* قیمت جدید - بدون خط + سبز */
.sp-product-purchase-box ins .woocommerce-Price-amount {
    color: #28a745 !important; /* سبز */
    font-size: 22px !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-right: 10px;
}

/* قیمت قدیمی و جدید در یک خط */
.sp-product-purchase-box ins {
    text-decoration: none !important;
}

/* اگر تخفیف ندارد (فقط یک قیمت) */
.sp-product-purchase-box .price > .woocommerce-Price-amount {
    color: #2c3e50 !important;
    font-size: 22px !important;
    font-weight: 700;
}
    
    /* دکمه خرید حرفه‌ای - بدون مشکل hover */
    .sp-product-purchase-box form.cart {
        text-align: center;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        position: relative;
    }
    
    .sp-product-purchase-box .quantity {
        display: none !important;
    }
    
    .sp-product-purchase-box .single_add_to_cart_button {
        background: #3498db !important;
        color: white !important;
        padding: 16px 45px !important;
        border-radius: 30px !important;
        border: none !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }
    
    .sp-product-purchase-box .single_add_to_cart_button:hover {
        background: #2980b9 !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(41, 128, 185, 0.4) !important;
    }
    
    /* آیکن سبد خرید در دکمه */
    .sp-product-purchase-box .single_add_to_cart_button:after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 10px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
    
    /* ویژگی‌های محصول - دسکتاپ: استایل قبلی */
    .sp-features-row-desktop {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
        justify-content: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
        border: 1px solid #e9ecef;
    }
    
    /* ویژگی‌های محصول - موبایل (هر ردیف دو گزینه) */
    .sp-features-grid-mobile {
        display: none;
    }
    
    .sp-feature-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 15px;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        transition: all 0.2s ease;
        flex: 1;
        min-width: 0;
    }
    
    .sp-feature-item:hover {
        background: white;
        border-color: #3498db;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
    }
    
    .sp-feature-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .sp-feature-icon svg {
        width: 16px;
        height: 16px;
        fill: #3498db;
    }
    
    .sp-feature-text {
        font-size: 13px;
        color: #2c3e50;
        font-weight: 500;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* رنگ آبی برای شماره تماس */
    .sp-feature-text a {
        color: #3498db !important;
        text-decoration: none;
        font-weight: 600;
    }
    
    .sp-feature-text a:hover {
        color: #2980b9 !important;
        text-decoration: underline;
    }
    
    /* دسته‌بندی */
    .product_meta {
        margin: 20px 0;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
        border: 1px solid #e9ecef;
    }
    
    .product_meta .posted_in {
        margin: 0;
        padding: 0;
        border-top: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .product_meta .posted_in .meta-label {
        color: #2c3e50;
        font-weight: 600;
        font-size: 14px;
    }
    
    .product_meta .posted_in a {
        color: #2c3e50;
        text-decoration: none;
        padding: 6px 12px;
        background: white;
        border-radius: 20px;
        border: 1px solid #dee2e6;
        transition: all 0.2s ease;
        font-size: 13px;
        font-weight: 500;
    }
    
    .product_meta .posted_in a:hover {
        background: #3498db;
        color: white;
        border-color: #3498db;
    }
    
    /* کادرهای اصلی - کاملاً جدا و مستقل */
    .sp-main-content-box {
        background: #ffffffa1;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .sp-main-content-box:last-child {
        margin-bottom: 0;
    }
    
    /* بخش پیش‌نیازها - دقیقاً مثل گالری */
    .sp-prerequisites-container {
        margin: 0;
        background: #ffffffa1;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    /* استایل مخصوص برای پیش‌نیازها - هر ردیف یک پست */
    .sp-prerequisites-container .posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        margin-top: 0;
        padding: 8px;
    }
    
    /* تصویر مربعی 1:1 برای پیش‌نیازها */
    .sp-prerequisites-container .post-image-wrapper {
        width: 100%;
        aspect-ratio: 1 / 1 !important;
        padding: 8px 8px 0 8px;
        overflow: hidden;
        border-radius: 12px;
        height: auto !important;
    }
    
    .sp-prerequisites-container .post-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
        aspect-ratio: 1 / 1 !important;
    }
    
    /* کارت پیش‌نیاز */
    .sp-prerequisites-container .post-card {
        background: #ffffffa1;
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid #d5d5d5;
        display: block;
        width: 100%;
        height: auto;
    }
    
    .sp-prerequisites-container .post-card:hover {
        border-color: #3498db;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* قیمت در کارت پیش‌نیاز - چپ قیمت اصلی، راست قیمت جدید */
    .sp-prerequisites-container .post-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 0 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 8px;
    }
    
    .sp-prerequisites-container .post-price-left {
        font-size: 14px;
        color: #95a5a6;
        text-decoration: line-through;
        font-weight: 500;
    }
    
    .sp-prerequisites-container .post-price-right {
        font-size: 16px;
        color: #e74c3c;
        font-weight: 700;
    }
    
    /* دکمه مشاهده در پیش‌نیاز */
    .sp-prerequisites-container .post-action-btn {
        display: block;
        text-align: center;
        background: #3498db;
        color: white;
        border: 1px solid #3498db;
        padding: 8px;
        border-radius: 25px;
        cursor: pointer;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.3s;
        margin-top: 10px;
    }
    
    .sp-prerequisites-container .post-action-btn:hover {
        border-color: #2980b9;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* ریسپانسیو برای تایمر */
    @media (max-width: 768px) {
        .sp-discount-warning {
            padding: 8px 12px;
            font-size: 13px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .sp-discount-warning .ve-banner-left {
            width: 100%;
            justify-content: center;
            margin-bottom: 5px;
        }
        
        .sp-discount-warning .ve-banner-right {
            width: 100%;
            justify-content: center;
        }
        
        .sp-discount-warning .ve-timer-container {
            min-width: 100px;
            padding: 5px 10px;
        }
        
        .sp-discount-warning .ve-timer-value {
            font-size: 14px;
        }
        
        .sp-discount-warning .ve-timer-label {
            font-size: 8px;
        }
    }

    @media (max-width: 480px) {
        .sp-discount-warning {
            padding: 6px 10px;
            font-size: 12px;
        }
        
        .sp-discount-warning .ve-timer-container {
            min-width: 90px;
            padding: 4px 8px;
        }
        
        .sp-discount-warning .ve-timer-value {
            font-size: 13px;
        }
    }

    /* موبایل و تبلت */
    @media (max-width: 1024px) {
        /* گالری در تبلت */
        .sp-thumb-item {
            width: 70px;
            height: 70px;
        }
        
        /* قیمت در تبلت */
        .sp-product-purchase-box .price {
            font-size: 20px !important;
        }
        
        .sp-product-purchase-box del .woocommerce-Price-amount {
            font-size: 16px !important;
        }
        
        .sp-product-purchase-box ins .woocommerce-Price-amount {
            font-size: 20px !important;
        }
        
        /* ویژگی‌ها در تبلت - دو تایی در ردیف */
        .sp-features-row-desktop {
            display: none;
        }
        
        .sp-features-grid-mobile {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 20px;
            width: 100%;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e9ecef;
            margin-left: -15px;
            margin-right: -15px;
        }
        
        .sp-feature-item {
            padding: 12px 10px;
            flex-direction: column;
            text-align: center;
            gap: 8px;
            background: white;
        }
        
        .sp-feature-text {
            font-size: 12px;
            white-space: normal;
        }
    }
    
    @media (max-width: 768px) {
        .sp-post-title-box {
            font-size: 20px;
            margin-bottom: 12px;
            padding-bottom: 12px;
        }
        
        .sp-meta-line-box {
            gap: 6px;
            justify-content: flex-start;
        }
        
        .sp-meta-item-box {
            font-size: 12px;
            padding: 5px 10px;
        }
        
        /* در موبایل: محتوا بالا، سایدبار پایین */
        .sp-shop-layout {
            flex-direction: column;
            gap: 20px;
            margin: 0;
        }
        
        .sp-shop-gallery {
            width: 100% !important;
            order: 3;
            position: static;
            padding: 0;
            border-radius: 0;
            box-shadow: none;
            border: none;
            margin-top: 20px;
        }
        
        .sp-shop-main-content {
            width: 100% !important;
            order: 1;
            padding: 0;
            background: transparent !important;
            box-shadow: none !important;
            border: none !important;
            border-radius: 0;
        }
        
        .sp-sidebar-box {
            margin-bottom: 20px;
        }
        
        .sp-main-content-box {
            margin-bottom: 20px;
            padding: 15px;
        }
        
        .sp-active-image {
            height: 250px;
        }
        
        /* گالری در موبایل - اسکرول افقی */
        .sp-thumbnails {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 10px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }
        
        .sp-thumbnails::-webkit-scrollbar {
            height: 4px;
        }
        
        .sp-thumbnails::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 2px;
        }
        
        .sp-thumbnails::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 2px;
        }
        
        .sp-thumb-item {
            width: 65px;
            height: 65px;
            flex-shrink: 0;
        }
        
        .sp-product-purchase-box .price {
            font-size: 22px !important;
            margin-bottom: 15px;
        }
        
        .sp-product-purchase-box del .woocommerce-Price-amount {
            font-size: 18px !important;
        }
        
        .sp-product-purchase-box .single_add_to_cart_button {
            padding: 14px 35px !important;
            font-size: 16px !important;
            width: 100%;
            max-width: 100%;
        }
        
        /* ویژگی‌های محصول در موبایل - هر ردیف دو گزینه */
        .sp-features-row-desktop {
            display: none;
        }
        
        .sp-features-grid-mobile {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
        
        .sp-feature-item {
            padding: 10px 8px;
            flex-direction: column;
            text-align: center;
            gap: 6px;
        }
        
        .sp-feature-icon {
            width: 18px;
            height: 18px;
        }
        
        .sp-feature-icon svg {
            width: 14px;
            height: 14px;
        }
        
        .sp-feature-text {
            font-size: 11px;
        }
        
        .product_meta {
            border-radius: 12px;
            padding: 15px;
        }
        
        .product_meta .posted_in {
            gap: 8px;
        }
        
        .product_meta .posted_in .meta-label {
            font-size: 13px;
        }
        
        .product_meta .posted_in a {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        .sp-sample-video .video-player video {
            border-radius: 10px;
        }
        
        /* پیش‌نیاز در موبایل */
        .sp-prerequisites-container .posts-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }
    
    @media (max-width: 480px) {
        .sp-active-image {
            height: 220px;
        }
        
        .sp-thumb-item {
            width: 60px;
            height: 60px;
        }
        
        .sp-product-purchase-box .price {
            font-size: 20px !important;
        }
        
        .sp-product-purchase-box del .woocommerce-Price-amount {
            font-size: 16px !important;
        }
        
        .sp-product-purchase-box .single_add_to_cart_button {
            padding: 12px 25px !important;
            font-size: 15px !important;
        }
        
        .sp-feature-item {
            padding: 8px 6px;
        }
        
        .sp-feature-text {
            font-size: 10px;
        }
        
        .sp-sample-video .video-player video {
            border-radius: 8px;
        }
    }
    
    @media (max-width: 360px) {
        .sp-features-grid-mobile {
            grid-template-columns: 1fr;
        }
    }
    
/* ============================================
   افکت پارالکس ویدیو پلاگین - Video Effects Parallax
   کلاس‌ها با پیشوند ve- برای جلوگیری از تداخل
============================================ */

/* استایل اصلی بخش پارالکس */
.ve-parallax-section {
    background-color: #ffffffa1;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #d5d5d5;
}

/* کانتینر متن */
.ve-parallax-text {
    text-align: center;
    font-family: 'Bahman', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap; /* اضافه شد: جلوگیری از شکستن خط */
    overflow: hidden; /* اضافه شد: مخفی کردن محتوای اضافی */
    white-space: nowrap; /* اضافه شد: در یک خط */
}

/* تنظیمات فونت برای دسکتاپ */
.ve-parallax-text {
    font-size: 36px;
    font-weight: normal;
    height: 90px;
    gap: 20px;
}

/* هر کلمه پارالکس */
.ve-parallax-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(8px);
    transition: all 0.5s ease;
    color: #000000;
    line-height: 1;
    letter-spacing: normal;
    position: relative;
    z-index: 3;
    flex-shrink: 0; /* اضافه شد: جلوگیری از کوچک شدن */
}

.ve-parallax-word.ve-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ============================================
   اجسام معلق - Floating Objects
============================================ */

/* کلاس پایه برای اجسام معلق */
.ve-floating-object {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    animation: ve-floatingAnimation 15s infinite ease-in-out;
}

/* دایره 1 */
.ve-floating-circle1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

/* دایره 2 */
.ve-floating-circle2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

/* دایره 3 */
.ve-floating-circle3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #9b59b6, #34495e);
    bottom: 10%;
    left: 5%;
    opacity: 0.08;
    animation-delay: 4s;
}

/* مربع */
.ve-floating-square1 {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #1abc9c, #16a085);
    border-radius: 15px;
    top: 30%;
    right: 5%;
    animation-delay: 1s;
    animation-duration: 18s;
}

/* مثلث */
.ve-floating-triangle1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 20s;
}

/* دایره 4 */
.ve-floating-circle4 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e67e22, #d35400);
    top: 10%;
    right: 30%;
    animation-delay: 5s;
}

/* ============================================
   انیمیشن‌ها
============================================ */

@keyframes ve-floatingAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* ============================================
   رسپانسیو - تبلت (1024px و پایین‌تر)
============================================ */

@media (max-width: 1024px) {
    .ve-parallax-text {
        font-size: 28px;
        gap: 15px;
        padding: 15px 10px;
        height: 75px;
    }
    
    .ve-floating-circle1, 
    .ve-floating-circle2, 
    .ve-floating-circle3, 
    .ve-floating-square1, 
    .ve-floating-circle4 {
        transform: scale(0.7);
    }
    
    .ve-floating-triangle1 {
        transform: scale(0.6);
    }
}

/* ============================================
   رسپانسیو - موبایل (768px و پایین‌تر)
   نکته اصلی: تنظیم خودکار فونت برای جا شدن در یک خط
============================================ */

@media (max-width: 768px) {
    .ve-parallax-section {
        border-radius: 10px;
        overflow: hidden;
        display: flex;
    }
    
    .ve-parallax-text {
        font-size: 22px; /* اندازه پایه برای موبایل */
        gap: 10px;
        padding: 15px 8px;
        height: 65px;
        justify-content: flex-start; /* برای اسکرول افقی */
        overflow-x: auto; /* اسکرول افقی اگر لازم شد */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* اسکرول نرم در موبایل */
        scrollbar-width: none; /* مخفی کردن اسکرول بار در فایرفاکس */
    }
    
    /* مخفی کردن اسکرول بار در وبکیت */
    .ve-parallax-text::-webkit-scrollbar {
        display: none;
    }
    
    /* محاسبه خودکار فونت برای جا شدن در یک خط */
    .ve-parallax-word {
        font-size: inherit; /* ارث بردن از والد */
        margin: 0 4px;
        white-space: nowrap;
    }
    
    /* مخفی کردن بعضی اجسام در موبایل */
    .ve-floating-circle3, 
    .ve-floating-triangle1,
    .ve-floating-circle4 {
        display: none;
    }
    
    .ve-floating-circle1, 
    .ve-floating-circle2, 
    .ve-floating-square1 {
        transform: scale(0.4);
    }
    
    .ve-floating-circle1 {
        left: 5%;
        top: 15%;
    }
    
    .ve-floating-circle2 {
        right: 5%;
        top: 70%;
    }
    
    .ve-floating-square1 {
        right: 3%;
        top: 40%;
    }
}

/* ============================================
   موبایل کوچک (480px و پایین‌تر)
   تنظیم دقیق‌تر برای جا شدن در یک خط
============================================ */

@media (max-width: 480px) {
    .ve-parallax-text {
        font-size: 20px; /* کوچکتر */
        gap: 8px;
        padding: 12px 6px;
        height: 60px;
    }
    
    .ve-parallax-word {
        margin: 0 3px;
    }
    
    /* مخفی کردن بیشتر اجسام در موبایل کوچک */
    .ve-floating-square1 {
        display: none;
    }
    
    .ve-floating-circle1,
    .ve-floating-circle2 {
        transform: scale(0.3);
    }
}

/* ============================================
   موبایل خیلی کوچک (360px و پایین‌تر)
   تنظیم نهایی برای مطمئن شدن از یک خط بودن
============================================ */

@media (max-width: 360px) {
    .ve-parallax-text {
        font-size: 18px; /* باز هم کوچکتر */
        gap: 6px;
        padding: 10px 5px;
        height: 55px;
    }
    
    .ve-parallax-word {
        margin: 0 2px;
    }
}

/* ============================================
   رسپانسیو - مانیتورهای بزرگ
============================================ */

@media (min-width: 1600px) {
    .ve-parallax-text {
        font-size: 40px;
        gap: 25px;
    }
    
    .ve-floating-circle1, 
    .ve-floating-circle2, 
    .ve-floating-circle3, 
    .ve-floating-square1, 
    .ve-floating-circle4 {
        transform: scale(1.2);
    }
    
    .ve-floating-triangle1 {
        transform: scale(1.1);
    }
}

/* ============================================
   کلاس کمکی برای وقتی که کلمات در موبایل در یک خط جا نمی‌شوند
   این کلاس با جاوااسکریپت اعمال می‌شود
============================================ */

.ve-mobile-adjust {
    font-size: 16px !important;
    gap: 5px !important;
}

.ve-mobile-scroll {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 5px !important;
}

/* ===== Video Effects Categories Styles ===== */

.ve-categories-section {
    margin: 20px 0;
}

/* دسکتاپ */
.ve-categories-desktop {
    display: block;
}

.ve-categories-grid-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.ve-categories-row-second {
    margin-top: 10px;
}

.ve-category-item {
    text-align: center;
}

.ve-category-link {
    text-decoration: none;
    display: block;
}

.ve-category-box {
    height: 100px;
    margin: 0 auto;
    border-radius: 15px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #ffffffa1;
}

.ve-category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.ve-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.ve-category-title {
    font-size: 13px;
    color: #444;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

/* Hover Effects */
.ve-category-box:hover {
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.ve-category-box:hover .ve-category-icon img {
    transform: scale(1.1);
}

.ve-category-box:hover .ve-category-title {
    color: #4a90e2;
}

/* موبایل - گرید ساده بدون اسکرول */
.ve-categories-mobile {
    display: none;
}

.ve-mobile-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ve-mobile-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ve-mobile-item {
    text-align: center;
}

.ve-mobile-box {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #ffffffa1;
}

.ve-mobile-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.ve-mobile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ve-mobile-title {
    font-size: 11px;
    color: #444;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .ve-categories-desktop {
        display: none;
    }
    .ve-categories-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .ve-categories-grid-row {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    /* موبایل - 4 عدد در ردیف */
    .ve-mobile-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .ve-mobile-box {
        width: 65px;
        height: 65px;
    }
    
    .ve-mobile-icon {
        width: 28px;
        height: 28px;
    }
    
    .ve-mobile-title {
        font-size: 11px;
        height: 20px;
    }
    
    /* دسکتاپ کوچک */
    .ve-categories-grid-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .ve-category-box {
        width: 70px;
        height: 70px;
    }
    
    .ve-category-icon {
        width: 30px;
        height: 30px;
    }
    
    .ve-category-title {
        font-size: 9px;
        height: 22px;
    }
}

/* ==================== */
/* استایل صفحه Single */
/* ==================== */

/* Layout */
.single-wrapper {
    display: flex;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    box-sizing: border-box;
}

.single-main-content {
    flex: 0 0 calc(70% - 10px); /* 15px gap تقسیم بر 1.5 = 10px */
    min-width: 0;
    box-sizing: border-box;
}

.single-sidebar {
    flex: 0 0 calc(30% - 5px); /* 15px gap تقسیم بر 3 = 5px */
    max-width: calc(30% - 5px);
    box-sizing: border-box;
}

/* استایل عمومی هدر بخش‌ها */
.section-header {
    color: #2c3e50;
    padding: 12px 15px;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

.section-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header-title i {
    font-size: 14px;
    color: #6c757d;
}

.header-download-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    text-decoration: none;
}

.header-download-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* هدر پست */
.single-post-header {
    background: #ffffffa1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

/* عنوان پست لینک دار و آبی */
.single-post-title {
    font-size: 20px;
    color: #3498db;
    line-height: 1.5;
    font-weight: 590;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.single-post-title:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* متا اطلاعات - طراحی جدید */
.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* آیکون‌های متا */
.meta-item .icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.calendar-icon {
    background-image: url('icons/calendar.svg');
}

.eye-icon {
    background-image: url('icons/eye.svg');
}

.comment-icon {
    background-image: url('icons/comment.svg');
}

/* آواتار نویسنده */
.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-item i {
    color: #495057;
    font-size: 13px;
    min-width: 14px;
    text-align: center;
}

.meta-item.author a {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item.author a:hover {
    color: #3498db;
}

/* امتیاز دهی KK Star - بهبود یافته */
.meta-item.rating {
    color: #f39c12;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fffbf0;
    border-radius: 20px;
    border: 1px solid #ffeaa7;
    margin-right: auto;
}

/* استایل سفارشی برای KK Star Ratings */
.kk-star-ratings {
    font-size: 12px !important;
    line-height: 1 !important;
}

.kk-star-ratings .kksr-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.kk-star-ratings .kksr-star {
    color: #f39c12 !important;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.kk-star-ratings .kksr-muted {
    color: #6c757d !important;
    font-size: 12px !important;
    margin-right: 5px !important;
}

/* ویدیو */
.video-container {
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-top: none;
}

.post-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
}

/* ==================== */
/* بخش دانلود فایل‌ها - مینیمال */
/* ==================== */
.download-box-below-video {
    background: #ffffffa1;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

/* هدر بخش دانلود */
.download-section-header {
    background: #fafafa;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-section-header h3 i {
    color: #555;
    font-size: 16px;
}

/* لیست دانلود */
.download-items {
    padding: 0;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}

.download-item:hover {
    background: #fafafa;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.download-item-icon i {
    color: #666;
    font-size: 16px;
}

/* استایل‌های خاص برای انواع آیتم‌ها */
.video-item .download-item-icon {
    background: #e3f2fd;
}
.video-item .download-item-icon i { color: #1976d2; }

.project-item .download-item-icon {
    background: #f3e5f5;
}
.project-item .download-item-icon i { color: #7b1fa2; }

.baste-item .download-item-icon {
    background: #e8f5e9;
}
.baste-item .download-item-icon i { color: #388e3c; }

.footage-item .download-item-icon {
    background: #e0f2f1;
}
.footage-item .download-item-icon i { color: #00796b; }

.download-item-content {
    flex: 1;
}

.download-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.download-item-action {
    color: #1976d2;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* رنگ‌های مختلف برای action دکمه‌ها */
.video-item .download-item-action { color: #1976d2; }
.project-item .download-item-action { color: #7b1fa2; }
.baste-item .download-item-action { color: #388e3c; }
.footage-item .download-item-action { color: #00796b; }

.download-item-action i {
    font-size: 12px;
}

/* فوتیج */
.footage-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.footage-detail {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

/* ==================== */
/* بخش دسته‌بندی‌ها - طراحی جدید */
/* ==================== */
.categories-box .categories-list-container {
    padding: 15px 20px;
}

.categories-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.category-inline-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f7ff;
    border: 1px solid #d1e3ff;
    border-radius: 20px;
    text-decoration: none;
    color: #1a5fb4;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    gap: 5px;
}

.category-inline-item:hover {
    background: #e1f0ff;
    border-color: #a8c7ff;
}

.category-name {
    color: #1a5fb4;
}

.category-count {
    color: #6c757d;
    font-size: 11px;
    font-weight: normal;
}

/* ==================== */
/* بخش اشتراک گذاری - طراحی جدید */
/* ==================== */
.single-share-section {
    background: #ffffffa1;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.single-share-header {
    background: #fafafa;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.single-share-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.single-share-content {
    padding: 15px 20px;
}

/* ردیف واحد برای همه المان‌ها */
.single-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* بخش لینک کوتاه و کپی */
.single-share-link {
    min-width: 355px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-link-preview {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

#single-copy-link {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #f8f9fa;
    direction: ltr;
    text-align: left;
    font-family: monospace;
    box-sizing: border-box;
}

#single-copy-link:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
}

.single-copy-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.single-copy-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.single-copy-btn svg {
    width: 16px;
    height: 16px;
}

.single-copy-text {
    font-size: 13px;
}

/* بخش آیکون‌های اشتراک گذاری */
.single-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.single-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent !important;
}

.single-social-icon:hover {
    opacity: 0.8;
}

.single-social-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* رنگ‌های آیکون‌های شبکه‌های اجتماعی */
.single-telegram img {
    filter: none; /* رنگی اصلی تلگرام */
}

.single-bale img {
    filter: none; /* رنگی اصلی بله */
}

.single-eitaa img {
    filter: none; /* رنگی اصلی ایتا */
}

.single-rubika img {
    filter: none; /* رنگی اصلی روبیکا */
}

/* محتوای متنی */
.post-text-content {
    font-size: 15px;
    line-height: 1.7;
    color: #343a40;
    background: #ffffffa1;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-top: none;
    white-space: normal;
    word-wrap: break-word;
}

/* حذف فاصله‌های بزرگ بین خطوط */
.post-text-content p {
    margin-bottom: 1.2em;
    line-height: 1.7;
}

/* لینک‌ها در محتوای متنی */
.post-text-content a {
    color: #1a5fb4;
    text-decoration: none;
    transition: color 0.2s;
}

.post-text-content a:hover {
    color: #1c71d8;
    text-decoration: underline;
}

.post-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* محتوای خالی */
.no-content {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-content p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 15px;
}

.no-content a {
    color: #3498db;
    text-decoration: none;
}

.no-content a:hover {
    text-decoration: underline;
}

/* ریسپانسیو - موبایل */
@media only screen and (max-width: 768px) {
    .single-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-main-content,
    .single-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .single-sidebar {
        width: 100%;
    }
    
    .single-post-title {
        font-size: 18px;
    }
    
    .single-post-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
        font-size: 12px;
        justify-items: center;
        text-align: center;
    }
    
    /* نویسنده و بازدید در ردیف اول */
    .meta-item.author {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }
    
    .meta-item.views {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
    }
    
    /* تاریخ و نظرات در ردیف دوم */
    .meta-item.date {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }
    
    .meta-item.comments {
        grid-column: 2;
        grid-row: 2;
        justify-content: center;
    }
    
    /* امتیاز دهی در ردیف سوم */
    .meta-item.rating {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: center;
        margin-right: 0;
        margin-top: 5px;
    }
    
    .post-text-content {
        padding: 15px;
        font-size: 14px;
    }
    
    /* ویدیو در موبایل */
    .video-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
    }
    
    .post-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* در موبایل: هدر ویدیو با دکمه دانلود در یک خط */
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .header-download-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    /* در موبایل: باکس دانلود */
    .download-item {
        padding: 12px 15px;
    }
    
    .download-item-icon {
        width: 32px;
        height: 32px;
        margin-left: 12px;
    }
    
    .download-item-title {
        font-size: 14px;
    }
    
    .download-item-action {
        font-size: 13px;
    }
    
    /* دسته‌بندی‌ها در موبایل */
    .categories-inline-list {
        gap: 8px;
        justify-content: center;
    }
    
    .category-inline-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    /* اشتراک گذاری در موبایل - چیدمان عمودی */
    .single-share-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .single-share-link {
        min-width: 100%;
    }
    
    #single-copy-link {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .single-copy-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .single-social-icons {
        justify-content: center;
        gap: 15px;
    }
    
    .single-social-icon {
        width: 36px;
        height: 36px;
    }
    
    .single-social-icon img {
        width: 22px;
        height: 22px;
    }
    
    /* فوتیج دیتیلز در موبایل */
    .footage-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .footage-detail {
        font-size: 10px;
        padding: 2px 6px;
    }
}


/* Header Area */
/* ==================== استایل هدر مدرن - تمیز و تاریک ==================== */
.header-modern {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 15px 0;
    position: relative;
    z-index: 1000;
    margin-bottom: 10px
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
}

/* فیکس برای بیرون نرفتن از چپ */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ==================== دسکتاپ ==================== */
.desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.mobile-header {
    display: none;
}

/* ==================== لوگو دسکتاپ ==================== */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

/* نوشته "ویدیو افکت" در دسکتاپ */
.logo-text {
    font-family: 'Bahman', Tahoma, sans-serif;
    font-size: 32px;
    font-weight: normal;

    /* گرادیان خطی: بالا خاکستری، پایین سیاه */
    background: linear-gradient(
        to bottom,
        rgba(70, 70, 70, 0.95) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;    
}

/* جستجو دسکتاپ */
.header-search-modern {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin: 0 20px;
}

.search-box-modern {
    display: flex;
    background: #ffffffa1;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 35px;
    overflow: hidden;
    height: 50px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.search-box-modern:hover,
.search-box-modern:focus-within {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.search-input-modern {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    background: transparent;
    color: #2d3748;
    outline: none;
    text-align: right;
    direction: rtl;
    font-family: inherit;
}

.search-input-modern::placeholder {
    color: #718096;
    font-size: 14px;
    font-family: inherit;
}

.search-btn-modern {
    background: rgba(241, 243, 245, 0.9);
    border: none;
    padding: 0 25px;
    color: #4a5568;
    cursor: pointer;
    font-size: 18px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    transition: all 0.3s ease;
}

.search-btn-modern:hover {
    background: #2d3748;
    color: white;
    border-left-color: #2d3748;
}

/* بخش منوهای دسکتاپ */
.header-menu-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* دکمه‌های منو دسکتاپ */
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffffa1;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.menu-btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.menu-btn i {
    font-size: 15px;
    color: #4a5568;
}

/* ==================== منوی کشویی بخش‌های مهم دسکتاپ ==================== */
.dropdown-menu-modern {
    position: relative;
    display: inline-block;
}

/* فلش بالای منوی کشویی */
.dropdown-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.98);
    z-index: 1001;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    width: 160px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.dropdown-menu-modern:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #2d3748;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-right: 3px solid transparent;
}

.dropdown-content a:hover {
    background: rgba(45, 55, 72, 0.05);
    color: #1a202c;
    padding-right: 25px;
    border-right-color: #2d3748;
}

.dropdown-content a::before {
    display: none !important;
}

.dropdown-content a::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dropdown-content a:hover::after {
    background: #2d3748;
    transform: translateY(-50%) scale(1.2);
}

/* ==================== حساب کاربری داینامیک دسکتاپ ==================== */
.user-account-dropdown {
    position: relative;
    display: inline-block;
}

/* دکمه حساب کاربری - رنگ معمولی */
.user-account-dropdown .account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffffa1;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.user-account-dropdown .account-btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.chevron-icon {
    margin-right: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #4a5568;
}

.user-account-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

/* منوی کشویی حساب کاربری دسکتاپ */
.user-dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    width: 165px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.user-account-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* آیتم‌های منوی کاربر دسکتاپ */
.user-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: #2d3748;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.user-menu-item:hover {
    background: rgba(45, 55, 72, 0.05);
    color: #1a202c;
    padding-right: 22px;
}

.user-menu-item i {
    margin-left: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* رنگ‌های آیکون‌ها */
.user-menu-item .fa-home { color: #6366f1; }
.user-menu-item .fa-shopping-cart { color: #ef4444; }
.user-menu-item .fa-download { color: #10b981; }
.user-menu-item .fa-edit { color: #3b82f6; }

/* خط جداکننده */
.user-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 18px;
}

/* دکمه خروج */
.user-logout-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-logout-item:hover {
    background: rgba(220, 38, 38, 0.05);
    color: #b91c1c;
    padding-right: 22px;
}

.user-logout-item i {
    margin-left: 10px;
    font-size: 14px;
    color: #dc2626;
}

/* سبد خرید دسکتاپ */
.cart-modern {
    position: relative;
}

.cart-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffffa1;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
}

.cart-btn-modern:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.cart-btn-modern i {
    color: #4a5568;
}

.cart-counter {
    background: #c53030;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    left: -6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==================== موبایل ==================== */
@media (max-width: 992px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* فیکس اصلی برای جلوگیری از بیرون زدن */
    .header-modern {
        width: 100%;
        max-width: 100%;
        padding: 15px 0 10px 0;
        margin: 0;
    }
    
    .header-container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px !important;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* ردیف بالای موبایل */
    .mobile-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
/* ==================== */
/* استایل منوی همبرگری مدرن */
/* ==================== */

/* کانتینر اصلی همبرگر */
.mobile-hamburger {
    flex: 0 0 auto;
    text-align: right;
    padding: 0;
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 1000;
}

/* دکمه همبرگر */
.hamburger-toggle {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-toggle:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.hamburger-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.1);
}

/* خطوط همبرگر - عمودی زیر هم */
.hamburger-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2d3748;
    margin: 3px auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
    left: 0;
    opacity: 1;
}

/* خطوط همبرگر در حالت هاور */
.hamburger-toggle:hover span {
    background: #3498db;
}

/* حالت فعال (باز شده) */
.hamburger-toggle.active {
    background: #3498db;
    border-color: #3498db;
}

.hamburger-toggle.active span {
    background: white;
}

/* تبدیل به X در حالت باز */
.hamburger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 22px;
}

.hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    width: 22px;
}

/* انیمیشن برگشت از X به همبرگر */
.hamburger-toggle:not(.active) span:nth-child(1) {
    animation: hamburgerTopRev 0.3s ease;
}

.hamburger-toggle:not(.active) span:nth-child(2) {
    animation: hamburgerMiddleRev 0.3s ease;
}

.hamburger-toggle:not(.active) span:nth-child(3) {
    animation: hamburgerBottomRev 0.3s ease;
}

/* انیمیشن‌ها */
@keyframes hamburgerTopRev {
    0% { transform: rotate(45deg) translate(5px, 5px); }
    50% { transform: rotate(0) translate(0, 0); }
    100% { transform: rotate(0) translate(0, 0); }
}

@keyframes hamburgerMiddleRev {
    0% { opacity: 0; transform: translateX(-10px); }
    50% { opacity: 0; }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes hamburgerBottomRev {
    0% { transform: rotate(-45deg) translate(7px, -6px); }
    50% { transform: rotate(0) translate(0, 0); }
    100% { transform: rotate(0) translate(0, 0); }
}

/* ==================== */
/* استایل موبایل */
/* ==================== */

@media (max-width: 768px) {
    .hamburger-toggle {
        width: 36px;
        height: 36px;
        padding: 7px;
    }
    
    .hamburger-toggle span {
        width: 20px;
        height: 2px;
        margin: 2.5px auto;
    }
    
    .hamburger-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
        width: 20px;
    }
    
    .hamburger-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 20px;
    }
}

@media (max-width: 480px) {
    .hamburger-toggle {
        width: 32px;
        height: 32px;
        padding: 6px;
        border-radius: 6px;
    }
    
    .hamburger-toggle span {
        width: 18px;
        height: 1.5px;
        margin: 2px auto;
    }
    
    .hamburger-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
        width: 18px;
    }
    
    .hamburger-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
        width: 18px;
    }
}

/* ==================== */
/* استایل برای حالت‌های خاص */
/* ==================== */

/* حالت loading */
.hamburger-toggle.loading span {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* حالت disabled */
.hamburger-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.hamburger-toggle:disabled:hover {
    background: transparent;
    border-color: #dee2e6;
    transform: none;
    box-shadow: none;
}

/* حالت focus برای دسترسی‌پذیری */
.hamburger-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* وسط: لوگو موبایل */
.mobile-logo-center {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.mobile-logo-center a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    height: 100%;
}

.mobile-logo-center img {
    height: 30px !important;
    width: auto;
    max-width: 160px;
    max-height: 30px !important;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* نوشته "ویدیو افکت" در موبایل */
.mobile-logo-text {
    font-family: 'Bahman', Tahoma, sans-serif;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.1;
    display: inline-block;
    color: #151819;
}
    
    /* سمت راست: آیکون‌های موبایل */
    .mobile-right-icons {
        flex: 0 0 auto;
        text-align: left;
        padding: 0;
        display: flex;
        gap: 12px;
        align-items: center;
        height: 50px;
    }
    
    .mobile-icon-btn {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        color: #2d3748;
        font-size: 18px;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-icon-btn:hover {
        background: rgba(45, 55, 72, 0.1);
        color: #1a202c;
    }
    
    /* منوی کشویی بخش‌های مهم موبایل */
    .mobile-dropdown-menu {
        position: relative;
    }
    
    .mobile-dropdown-arrow {
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid rgba(255, 255, 255, 0.98);
        z-index: 1003;
        filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
    }
    
    .mobile-dropdown-content {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.98);
        width: 170px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1002;
        padding: 10px 0;
        display: none;
        backdrop-filter: blur(10px);
    }
    
    .mobile-dropdown-content.active {
        display: block;
        animation: slideDownMobile 0.3s ease;
    }
    
    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .mobile-dropdown-content a {
        display: flex;
        align-items: center;
        padding: 10px 18px;
        text-decoration: none;
        color: #2d3748;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-right: 3px solid transparent;
    }
    
    .mobile-dropdown-content a:hover {
        background: rgba(45, 55, 72, 0.05);
        color: #1a202c;
        padding-right: 22px;
        border-right-color: #2d3748;
    }
    
    .mobile-dropdown-content a::before {
        content: '';
        margin-left: 8px;
        width: 5px;
        height: 5px;
        background: #cbd5e0;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .mobile-dropdown-content a:hover::before {
        background: #2d3748;
        transform: scale(1.2);
    }
    
    .cart-icon {
        position: relative;
    }
    
    .mobile-cart-count {
        position: absolute;
        top: -5px;
        left: -5px;
        background: #c53030;
        color: white;
        font-size: 11px;
        min-width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    /* ردیف دوم: جستجو */
    .mobile-search-row {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .mobile-search-form {
        display: flex;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 25px;
        overflow: hidden;
        height: 44px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-search-input {
        flex: 1;
        border: none;
        padding: 0 15px;
        font-size: 14px;
        background: transparent;
        color: #2d3748;
        outline: none;
        text-align: right;
        direction: rtl;
        box-sizing: border-box;
        font-family: inherit;
}

.mobile-search-input::placeholder {
    color: #718096;
    font-family: inherit;
}

.mobile-search-btn {
    background: rgba(241, 243, 245, 0.9);
    border: none;
    padding: 0 15px;
    color: #4a5568;
    cursor: pointer;
    font-size: 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #2d3748;
    color: white;
}

/* مخفی کردن منوی همبرگر اصلی */
.original-hamburger-menu {
    display: none;
}

/* مخفی کردن منوی کشویی حساب کاربری در موبایل */
.user-dropdown-content {
    display: none !important;
}
}

/* ==================== موبایل کوچک ==================== */
@media (max-width: 576px) {
    .header-container {
        padding: 0 10px !important;
    }
    
    .mobile-logo-center img {
        height: 32px !important;
        max-width: 180px;
        max-height: 32px !important;
    }
    
    .mobile-hamburger,
    .mobile-right-icons {
        height: 45px;
    }
    
    .hamburger-toggle {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-toggle span {
        width: 22px;
        height: 3px;
    }
    
    .mobile-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .mobile-right-icons {
        gap: 10px;
    }
    
    .mobile-search-form {
        height: 42px;
    }
    
    .mobile-search-input {
        font-size: 13px;
        padding: 0 12px;
    }
    
    .mobile-search-btn {
        padding: 0 12px;
        min-width: 40px;
        font-size: 15px;
    }
    
    .mobile-cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -4px;
        left: -4px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 400px) {
    .mobile-logo-center img {
        height: 32px !important;
        max-width: 160px;
        max-height: 32px !important;
    }
    
    .mobile-hamburger,
    .mobile-right-icons {
        height: 42px;
    }
    
    .hamburger-toggle {
        width: 34px;
        height: 34px;
    }
    
    .hamburger-toggle span {
        width: 20px;
        height: 2.5px;
    }
    
    .mobile-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .mobile-right-icons {
        gap: 8px;
    }
    
    .mobile-search-form {
        height: 40px;
    }
}

/* ==================== ریسپانسیو دسکتاپ ==================== */
@media (max-width: 1500px) {
    .header-modern,
    .header-container {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
    }
    
    .desktop-header {
        gap: 25px;
    }
    
    .header-search-modern {
        min-width: 250px;
        max-width: 500px;
        margin: 0 15px;
    }
    
    .header-logo {
        min-width: 150px;
    }
    
    .header-logo img {
        height: 55px;
        max-width: 200px;
        max-height: 55px !important;
    }
}



/* شروع استایل بخش صفحنه بندی*/
.simple-pagination {
    text-align: center;
    margin: 25px 0 20px;
    padding: 20px 0;
}

.simple-pagination ul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-pagination li {
    display: inline-block;
}

.simple-pagination a,
.simple-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.simple-pagination a:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

/* این مهمه: صفحه فعلی */
.simple-pagination li.current span {
    background: #3498db;
    border-color: #3498db;
    color: white;
    font-weight: 600;
}

/* دکمه‌های قبلی و بعدی */
.simple-pagination li.prev a,
.simple-pagination li.next a {
    padding: 0 14px;
    font-size: 15px;
    background: #ffffff;
    border-color: #e1e5e9;
    color: #555;
}

.simple-pagination li.prev a:hover,
.simple-pagination li.next a:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.simple-pagination li.dots span {
    background: transparent;
    border: none;
    color: #95a5a6;
    min-width: auto;
    padding: 0 10px;
}

/* موبایل */
@media (max-width: 768px) {
    .simple-pagination {
        margin: 30px 0 20px;
        padding: 15px 0;
    }
    
    .simple-pagination ul {
        gap: 6px;
    }
    
    .simple-pagination a,
    .simple-pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .simple-pagination li.current span {
        background: #3498db;
        border-color: #3498db;
        color: white;
    }
    
    .simple-pagination li.prev a,
    .simple-pagination li.next a {
        min-width: 75px;
        padding: 0 12px;
        font-size: 14px;
    }
}
/* پایان استایل بخش صفحنه بندی*/

.wp-video,
.wp-video video,
video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}


/* شروع استایل پلاگین ردیف بندی */
.category-row-container * {
    padding: 0;
    box-sizing: border-box;
}

.category-row-container {
    max-width: 1400px;
    margin: 20px auto;
    direction: rtl;
}

/* هدر */
.section-header-wrapper {
    background: #ffffffa1;
    border-radius: 35px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.section-title {
    font-size: 18px;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
    position: relative;
    padding-right: 15px;
}

.section-title:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    border-radius: 2px;
}

.desktop-tabs {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-start;
    overflow: hidden;
}

.category-tab {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #495057;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.category-tab.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.view-all-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    height: 32px;
}

.view-all-btn:hover {
    background: #2980b9;
}

.mobile-tabs-dropdown {
    display: none;
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
}

.mobile-tabs-toggle {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 32px;
}

.mobile-tabs-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-tabs-menu.active {
    display: block;
}

.mobile-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    text-align: right;
    width: 100%;
    transition: background 0.2s;
    white-space: nowrap;
}

.mobile-tab:hover {
    background: #f8f9fa;
}

.mobile-tab.active {
    color: #3498db;
    font-weight: 500;
}

.posts-container {
    position: relative;
}

/* گریت برای دسکتاپ - 4 مطلب */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* تبلت - 2 مطلب */
@media only screen and (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* کارت مطلب */
.post-card {
    background: #ffffffa1;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    display: block;
    width: 100%;
    height: auto;
}

.post-card:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* تصویر */
.post-image-wrapper {
    padding: 8px 8px 0 8px;
    overflow: hidden;
    border-radius: 12px;
}

/* دسته‌های معمولی: aspect-ratio 16/9 */
.category-row-container:not([data-source-type="rss"]) .post-image-wrapper {
    aspect-ratio: 16/9;
    height: auto;
}

/* RSS: ارتفاع داینامیک */
.category-row-container[data-source-type="rss"] .post-image-wrapper {
    padding: 8px 8px 0 8px;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 2.5; /* 840:336 = 2.5:1 - ثابت! */
    height: auto;
    flex-shrink: 0;
}

.post-image-link img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* دسته‌های معمولی: cover با aspect-ratio */
.category-row-container:not([data-source-type="rss"]) .post-image-link img {
    height: 100%;
    object-fit: cover;
}

/* RSS: contain با ارتفاع داینامیک */
.category-row-container[data-source-type="rss"] .post-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* یا contain بسته به ترجیح شما */
    border-radius: 12px;
    background: #f8f9fa;
}

/* محتوا */
.post-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.post-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: auto;
}

.category-row-container[data-source-type="rss"] .post-title {
    font-size: 13px;
    min-height: 38px;
}

.post-title a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    display: initial;
}

/* متا */
.post-meta {
    color: #666;
    font-size: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.category-row-container[data-source-type="rss"] .post-meta {
    font-size: 11px;
}

/* نمایش نویسنده در دسکتاپ برای RSS */
.category-row-container[data-source-type="rss"] .post-author {
    display: block;
}

.post-date {
    color: #000;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-stats {
    display: flex;
    gap: 10px;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #000;
}

/* نمایش تعداد کامنت در دسکتاپ */
.post-stat:last-child {
    display: flex;
}

/* آیکن‌ها */
.icon-calendar {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    vertical-align: middle;
}

.icon-eye {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    vertical-align: middle;
}

.icon-comment {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    vertical-align: middle;
}

/* فلش‌ها */
.carousel-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.carousel-nav button {
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.2s;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    position: relative;
}

.carousel-nav .prev-btn:before {
    content: '→';
    font-size: 18px;
    font-weight: bold;
}

.carousel-nav .next-btn:before {
    content: '←';
    font-size: 18px;
    font-weight: bold;
}

.carousel-nav button:hover:not(:disabled) {
    background: #3498db;
    color: white;
    transform: scale(1.05);
}

.carousel-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media only screen and (max-width: 768px) {
    .category-row-container[data-source-type="rss"] .post-image-wrapper {
        aspect-ratio: 2.5 !important;
    }
}

/* موبایل */
@media only screen and (max-width: 768px) {
    .category-row-container {
        max-width: 100%;
    }
    
    .posts-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding: 15px 5px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .posts-grid::-webkit-scrollbar {
        display: none;
    }
    
    .post-card {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        scroll-snap-align: start;
        height: auto !important;
    }
    
    .section-header-wrapper {
        padding: 12px 15px;
    }
    
    .section-header {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .desktop-tabs {
        display: none !important;
    }
    
    .mobile-tabs-dropdown {
        display: block;
        min-width: 120px;
    }
    
    .view-all-btn {
        padding: 5px 12px;
        font-size: 12px;
        height: 30px;
    }
    
    /* RSS در موبایل */
    .category-row-container[data-source-type="rss"] .post-image-link img {
        max-height: 120px !important;
    }
    
    .carousel-nav {
        display: none !important;
    }
    
    /* مخفی کردن نویسنده فقط برای RSS در موبایل */
    .category-row-container[data-source-type="rss"] .post-author {
        display: none !important;
    }
    
    /* مخفی کردن تعداد کامنت برای همه پست‌ها (غیر RSS) در موبایل */
    .category-row-container:not([data-source-type="rss"]) .post-stat:last-child {
        display: none !important;
    }
}

/* =========================================== */
/* اسکلتون‌ها - تطابق کامل با کارت‌های واقعی */
/* =========================================== */

.skeleton-card {
    background: #ffffffab;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

/* ==================== */
/* اسکلتون‌های دسته معمولی (غیر RSS) - با aspect-ratio 16/9 */
/* ==================== */
.category-row-container:not([data-source-type="rss"]) .skeleton-image-wrapper {
    padding: 8px 8px 0 8px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 16/8.9; /* 1.77:1 */
    flex-shrink: 0;
}

.category-row-container:not([data-source-type="rss"]) .skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: loading 1.5s infinite;
}

/* ==================== */
/* اسکلتون‌های RSS - با aspect-ratio 840:336 یا 2.5:1 */
/* ==================== */
.category-row-container[data-source-type="rss"] .skeleton-image-wrapper {
    padding: 8px 8px 0 8px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 2.6; /* دقیقاً مشابه کارت RSS واقعی */
    height: auto;
    flex-shrink: 0;
}

.category-row-container[data-source-type="rss"] .skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: loading 1.5s infinite;
}


/* محتوای اسکلتون */
.skeleton-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 110px;
}

.skeleton-title {
    height: 14px;
    background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    margin-bottom: 8px;
    border-radius: 4px;
    animation: loading 1.5s infinite;
}

.skeleton-title:first-child {
    width: 90%;
}

.skeleton-title:last-child {
    width: 70%;
    margin-bottom: 12px;
}

/* متای اسکلتون */
.skeleton-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.skeleton-meta-left {
    width: 30%;
    height: 10px;
    background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loading 1.5s infinite;
}

.skeleton-meta-right {
    width: 40%;
    height: 10px;
    background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loading 1.5s infinite;
}

/* ==================== */
/* موبایل */
/* ==================== */

@media only screen and (max-width: 768px) {
    /* اسکلتون‌های موبایل */
    .skeleton-card {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        scroll-snap-align: start;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
    
    /* دسته معمولی در موبایل */
    .category-row-container:not([data-source-type="rss"]) .skeleton-image-wrapper {
        aspect-ratio: 16/8.9 !important;
        height: auto !important;
    }
    
    /* RSS در موبایل - نسبت 2.5:1 حفظ شود */
    .category-row-container[data-source-type="rss"] .skeleton-image-wrapper {
        aspect-ratio: 2.5 !important;
        height: auto !important;
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.arrow-down {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-left: 2px solid #495057;
    border-bottom: 2px solid #495057;
    transform: rotate(-45deg);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.arrow-down.open {
    transform: rotate(135deg);
}

.desktop-text {
    display: inline;
}
.mobile-text {
    display: none;
}

@media only screen and (max-width: 768px) {
    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }
}

/* فلش‌های اسکرول موبایل */
.mobile-scroll-arrow {
    display: none !important;
}

/* فقط در موبایل نمایش داده بشن */
@media only screen and (max-width: 768px) {
    .mobile-scroll-arrow {
        display: flex !important;
        opacity: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #3498db;
        z-index: 100;
        transition: all 0.3s;
    }
    
    .mobile-scroll-arrow.prev {
        right: -5px;
        top: 20px;        
    }
    
    .mobile-scroll-arrow.next {
        left: -5px;
        top: 20px;
    }
    
    .posts-grid:hover .mobile-scroll-arrow {
        opacity: 1;
    }
}
/* پایان استایل پلاگین ردیف بندی */

/* در style.css */
.floating-sidebar .widget-area {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

/* محدود کردن ارتفاع وقتی به فوتر می‌رسد */
.floating-sidebar {
    position: relative;
    min-height: 1px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .floating-sidebar .widget-area {
        position: static;
        max-height: none;
    }
}

/* ========== استایل کلی کامنت‌ها ========== */
.ve-comments-section {
    border: 1px solid #d1d5db;
    background: #ffffffa1;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* فونت همه عناصر از والد به ارث برده می‌شود */
.ve-comments-section,
.ve-comments-section * {
    font-family: inherit;
}

/* ========== هدر نظرات ========== */
.ve-comments-header {
    background: #f8f9fa;
    padding: 14px 20px;
    border-bottom: 1px solid #d1d5db;
}

.ve-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-weight: 600;
    font-size: 16px;
}

.ve-header-content i {
    color: #4b5563;
    font-size: 18px;
}

.ve-header-title {
    flex: 1;
}

.ve-comment-count {
    background: #4b5563;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 5px;
}

.ve-comment-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: normal;
}

/* ========== فرم کامنت ========== */
.ve-comment-form {
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.ve-comment-form form {
    width: 100%;
}

/* نام و ایمیل در یک ردیف */
.ve-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ve-form-row input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s;
    font-size: 14px;
    color: #374151;
}

.ve-form-row input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ve-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    resize: vertical;
    min-height: 150px;
    max-height: 400px;
    box-sizing: border-box;
    margin-bottom: 15px;
    transition: all 0.2s;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.ve-comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ve-comment-form input#submit {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.ve-comment-form input#submit:hover {
    background: #1d4ed8;
}

/* ========== لیست کامنت‌ها ========== */
.ve-comments-list {
    padding: 25px;
}

.ve-comments-container {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ve-comments-container > li.comment {
    margin-bottom: 20px;
}

/* استایل هر کامنت */
.ve-comment-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.ve-comment-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.ve-comment-author img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.ve-author-details {
    flex: 1;
    min-width: 0;
}

.ve-author-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
}

.ve-author-badge {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
    white-space: nowrap;
    font-size: 12px;
}

.ve-author-name a {
    color: inherit;
    text-decoration: none;
}

.ve-author-name a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.ve-comment-date {
    color: #6b7280;
    margin-top: 2px;
    font-size: 13px;
}

.ve-comment-date a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.ve-comment-date a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* دکمه پاسخ */
.ve-reply-button {
    position: absolute;
    left: 0;
    top: 0;
}

.ve-reply-button a {
    background: #4b5563;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    white-space: nowrap;
    font-size: 13px;
}

.ve-reply-button a:hover {
    background: #374151;
}

.ve-comment-text {
    color: #4b5563;
    line-height: 1.7;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
    font-size: 15px;
}

.ve-comment-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.ve-comment-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* کامنت‌های تودرتو */
.ve-comments-container .children {
    list-style: none;
    margin: 15px 40px 0 0;
    padding: 0;
}

.ve-comments-container .children .ve-comment-item {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.ve-comments-container .children .children .ve-comment-item {
    background: #e5e7eb;
}

/* ========== صفحه‌بندی ========== */
.ve-comments-pagination {
    display: flex;
    justify-content: space-between;
}

.ve-prev-link,
.ve-next-link {
    flex: 1;
}

.ve-prev-link {
    text-align: right;
}

.ve-next-link {
    text-align: left;
}

.ve-comments-pagination a {
    background: #f3f4f6;
    color: #4b5563;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    font-size: 14px;
}

.ve-comments-pagination a:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ========== پیام‌های سیستم ========== */
.ve-comments-closed {
    text-align: center;
    padding: 25px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 20px 0;
    font-size: 15px;
}

.ve-login-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.ve-login-notice a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.ve-login-notice a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.ve-user-status {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.ve-user-status a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.ve-user-status a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.ve-logout-link {
    margin-right: 15px;
    float: left;
    color: #3b82f6;
}

.ve-moderation-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 13px;
}

/* ========== موبایل ========== */
@media only screen and (max-width: 768px) {
    .ve-comments-section {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .ve-comments-header {
        padding: 14px 20px;
    }
    
    .ve-header-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ve-comment-form,
    .ve-comments-list {
        padding: 20px 15px;
    }
    
    /* نام و ایمیل در یک ردیف در موبایل */
    .ve-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .ve-comments-container .children {
        margin: 15px 20px 0 0;
    }
    
    .ve-comment-author {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    /* دکمه پاسخ در موبایل */
    .ve-reply-button {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 0;
        width: auto;
        margin-right: 10px;
    }
    
    .ve-reply-button a {
        width: auto;
        text-align: center;
        padding: 4px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .ve-author-details {
        flex: 1;
        min-width: 0;
    }
    
    .ve-author-name {
        flex-wrap: nowrap;
        gap: 5px;
    }
    
    .ve-author-badge {
        padding: 1px 6px;
        font-size: 11px;
    }
    
    .ve-comments-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .ve-prev-link, .ve-next-link {
        text-align: center;
    }
}

/* ========== موبایل خیلی کوچک ========== */
@media only screen and (max-width: 480px) {
    .ve-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ve-comment-author {
        flex-wrap: wrap;
    }
    
    .ve-reply-button {
        margin-top: 8px;
        width: 100%;
        margin-right: 0;
    }
    
    .ve-reply-button a {
        width: 100%;
    }
    
    .ve-author-badge {
        display: inline-block;
        margin-left: 5px;
    }
}

/* استایل صفحه 404 */
.page-404-container {
    margin: 50px auto;
    text-align: center;
}

.error-code {
    font-size: 90px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 22px;
    color: #2c3e50;
    margin: 15px 0 10px;
    font-weight: 600;
}

.error-message {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.error-search-wrapper {
    max-width: 400px;
    margin: 20px auto;
}

.error-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
    min-width: 140px;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.btn-secondary {
    background: white;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

/* ==================== */
/* ریسپانسیو - موبایل */
/* ==================== */
@media only screen and (max-width: 768px) {
    .page-404-container {
        margin: 30px auto;
        padding: 20px 15px;
    }
    
    .error-code {
        font-size: 70px;
    }
    
    .error-title {
        font-size: 18px;
        margin: 10px 0 8px;
    }
    
    .error-message {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .error-search-wrapper {
        margin: 15px auto;
        max-width: 100%;
    }
    
    .error-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
    }
    
    .error-btn {
        width: 100%;
        max-width: 200px;
        padding: 8px 15px;
    }
}

/* Main Navigation */
.main-menu {
    direction: rtl;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin-top: 15px;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 800 !important; 
}

#top-menu {
    padding: 0;
    margin-bottom: 25px;
}

.navbar {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    font-size: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 801 !important;
}

.navbar > li {
    display: inline-block;
    position: relative;
    flex: 1;
    text-align: center;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 802 !important;
}

.navbar > li:last-child {
    border-right: none;
}

.navbar > li > a {
    display: block;
    padding: 0 25px;
    text-decoration: none;
    color: white !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    line-height: 50px;
    white-space: nowrap;
}

.navbar > li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== خط آبی زیباتر زیر منوی اصلی ==================== */
.navbar > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4fc3f7 0%, #2196f3 100%);
    border-radius: 2px 2px 0 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(50%);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.navbar > li > a:hover::after {
    width: 50%;
    height: 4px;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.8);
}

/* ==================== فلش بالای زیرمنوی اصلی ==================== */
.navbar > li > ul::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.98);
    z-index: 99999 !important;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

/* ==================== منوی کشویی اصلی ==================== */
.navbar > li > ul {
    position: absolute;
    top: 100% !important;
    right: 50% !important;
    transform: translateX(50%) translateY(-15px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    min-width: 250px;
    border-radius: 15px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99999 !important;
    list-style: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.navbar > li:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(50%) translateY(0) !important;
}

.navbar > li > ul li {
    display: block;
    width: 100%;
    position: relative;
}

.navbar > li > ul li a {
    display: block;
    padding: 8px 8px;
    text-decoration: none;
    color: #2d3748 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    text-align: right;
    background: transparent !important;
}

.navbar > li > ul li a:hover {
    background: rgba(45, 55, 72, 0.05) !important;
    color: #1a202c !important;
    padding-right: 12px;
    border-right-color: #2d3748;
}

.navbar > li > ul li a,
.navbar > li > ul li a:hover {
    background-image: none !important;
    background-color: transparent !important;
}

/* آیکون فلش برای زیرمنوها */
.navbar > li > ul li.menu-item-has-children > a::after {
    content: '◀';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #cbd5e0;
    transition: all 0.3s;
}

.navbar > li > ul li.menu-item-has-children > a:hover::after {
    color: #2d3748;
    left: 20px;
}

/* ==================== فلش زیرمنوی سطح دوم (جهت اصلاح شده) ==================== */
.navbar > li > ul > li.menu-item-has-children > ul::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px !important; /* تغییر از right: 100% به right: -8px */
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.98) !important; /* تغییر از border-right به border-left */
    z-index: 100000 !important;
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
}

/* ==================== زیرمنوهای سطح دوم ==================== */
.navbar > li > ul > li.menu-item-has-children {
    position: relative;
}

.navbar > li > ul > li.menu-item-has-children > ul {
    position: absolute !important;
    top: -12px !important;
    right: 100% !important; /* تغییر از right: 100% به left: 100% */
    background: rgba(255, 255, 255, 0.98) !important;
    min-width: 250px;
    border-radius: 15px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) !important; /* تغییر از translateX(-10px) به translateX(10px) */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100000 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar > li > ul > li.menu-item-has-children:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* ==================== فلش زیرمنوی سطح سوم ==================== */
.navbar > li > ul > li.menu-item-has-children > ul > li.menu-item-has-children > ul::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px !important; /* تغییر از right: 100% به right: -8px */
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.98) !important; /* تغییر از border-right به border-left */
    z-index: 100001 !important;
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
}

/* ==================== زیرمنوهای سطح سوم ==================== */
.navbar > li > ul > li.menu-item-has-children > ul > li.menu-item-has-children {
    position: relative;
}

.navbar > li > ul > li.menu-item-has-children > ul > li.menu-item-has-children > ul {
    position: absolute !important;
    top: -12px !important;
    right: 100% !important; /* تغییر از right: 100% به left: 100% */
    background: rgba(255, 255, 255, 0.98) !important;
    min-width: 200px;
    border-radius: 15px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) !important; /* تغییر از translateX(-10px) به translateX(10px) */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100001 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar > li > ul > li.menu-item-has-children > ul > li.menu-item-has-children:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* ==================== فیکس مشکل hover منوها ==================== */
.navbar > li {
    position: relative;
}

/* منطقه buffer برای جلوگیری از بسته شدن سریع */
.navbar > li::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: 100002;
}

/* تاخیر در بسته شدن منو */
.navbar > li > ul {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.1s;
}

.navbar > li:hover > ul {
    transition-delay: 0s;
}

/* همین تاخیر برای زیرمنوها */
.navbar > li > ul > li.menu-item-has-children > ul {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.1s;
}

.navbar > li > ul > li.menu-item-has-children:hover > ul {
    transition-delay: 0s;
}

/* ==================== اطمینان از نمایش بالای همه عناصر ==================== */
.navbar > li > ul,
.navbar > li > ul > li.menu-item-has-children > ul,
.navbar > li > ul > li.menu-item-has-children > ul > li.menu-item-has-children > ul {
    pointer-events: auto !important;
}

/* ==================== برای تبلت های کوچک ==================== */
@media (max-width: 1200px) {
    .navbar > li > a {
        padding: 0 20px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .main-menu {
        display: none !important;
    }
}


/* ==================== استایل لوگوهای دسته‌بندی ==================== */
.homepage-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.homepage-logo-item {
    background: #ffffffa1;
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid #d5d5d5;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.homepage-logo-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.homepage-logo-ae {
    background: url('icon/shoptut.webp') no-repeat center center;
    background-size: contain;
}

.homepage-logo-c4d {
    background: url('icon/plugin.webp') no-repeat center center;
    background-size: contain;
}

.homepage-logo-computer {
    background: url('icon/amozesh.webp') no-repeat center center;
    background-size: contain;
}

.homepage-logo-moho {
    background: url('icon/footage.webp') no-repeat center center;
    background-size: contain;
}

.homepage-logo-other {
    background: url('icon/subtitle.webp') no-repeat center center;
    background-size: contain;
}

.homepage-logo-photoshop {
    background: url('icon/cinema.webp') no-repeat center center;
    background-size: contain;
}

.homepage-logo-icon {
    width: 55px;
    height: 42px;
    flex-shrink: 0;
    
}

.homepage-logo-text {
    flex-grow: 1;
}

.homepage-logo-title {
    font-size: 13.5px;
    color: #2c3e50;
    font-weight: 500;
    display: block;
    text-align: right;
    margin-bottom: 3px;
    line-height: 1.3;
}

.section-anchor {
    scroll-margin-top: 100px; /* فاصله از بالای صفحه هنگام اسکرول */
    padding: 10px 0;
}

/* ==================== استایل موبایل ==================== */
@media (max-width: 768px) {
    /* پنهان کردن دسکتاپ در موبایل */
    .homepage-desktop-only {
        display: none !important;
    }
    
    /* نمایش موبایل */
    .homepage-mobile-version {
        display: block !important;
        width: 100%;
    }
    
    /* کانتینر موبایل */
    .homepage-mobile-container {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    /* لوگوها در موبایل - بالاترین بخش */
    .homepage-mobile-logos {
        order: 1;
        margin-bottom: 0;
    }
    
    .homepage-mobile-logos .homepage-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .homepage-mobile-logos .homepage-logo-item {
        padding: 10px;
    }
    
    .homepage-mobile-logos .homepage-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .homepage-mobile-logos .homepage-logo-title {
        font-size: 13px;
    }
    
    .homepage-mobile-logos .homepage-logo-count {
        font-size: 11px;
    }
    
    /* مطلب بزرگ در موبایل - کامل مثل دسکتاپ */
    .homepage-mobile-main-post {
        order: 2;
        width: 100%;
    }
    
    .homepage-mobile-main-post .post-card {
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
    }
    
    .homepage-mobile-main-post .post-image-wrapper {
        height: auto !important;
        min-height: auto !important;
    }
    
    .homepage-mobile-main-post .post-content {
        padding: 14px !important;
    }
    
    .homepage-mobile-main-post .post-title {
        font-size: 13.5px !important;
    }
    
    /* مطالب کوچک در موبایل - کنار هم مثل دسکتاپ */
    .homepage-mobile-small-posts {
        order: 3;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100%;
    }
    
    .homepage-mobile-small-posts .post-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .homepage-mobile-small-posts .post-image-wrapper {
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        padding: 8px 8px 0 8px !important;
    }
    
    .homepage-mobile-small-posts .post-content {
        padding: 10px !important;
        width: 100% !important;
    }
    
    .homepage-mobile-small-posts .post-title {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .homepage-mobile-small-posts .post-meta {
        font-size: 11px !important;
        padding-top: 8px !important;
    }
}

/* Footer */
/* ===== دانلود اپلیکیشن ===== */
.compact-download {
    width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
}

.download-container {
    max-width: 100%;
    background: linear-gradient(135deg, #373737 0%, #373737 100%);
    border-radius: 25px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    overflow: hidden;
}

.download-icon {
    position: absolute;
}

.download-icon img {
    width: 50px;
    scale: 1.4;
}

.download-info {
    flex: 1;
    color: white;
    text-align: right;
    padding: 0 10px;
    min-width: 0;
    margin-right: 60px;
}

.download-info strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-info span {
    font-size: 13px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== دکمه دانلود ===== */
.download-btn {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    padding: 0px 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    height: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.download-btn:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    box-shadow: 0 2px 5px rgba(74, 144, 226, 0.2);
}

/* ===== فوتِر اصلی ===== */
.footer-main {
    padding: 10px 0 20px;
    direction: rtl;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* ===== بخش چپ: سه ستون ===== */
.footer-left {
    flex: 2;
    margin-right: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    width: 100%;
}

/* ستون‌های footer-left */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* ستون 1: درباره */
.about-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo img {
    width: 46px;
    height: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-text {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.instructor,
.phone {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* عنوان ستون‌ها */
.footer-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* منوها */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: block;
    position: relative;
    padding-right: 10px;
}

.footer-menu-list a:hover {
    color: #4a6cf7;
    transform: translateX(-3px);
}

.footer-menu-list a:before {
    content: "›";
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s;
}

.footer-menu-list a:hover:before {
    opacity: 1;
    right: -3px;
}

/* ===== بخش راست: شبکه‌های اجتماعی + لوگوهای اعتماد ===== */
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* شبکه‌های اجتماعی */
.social-wrapper {
    width: 100%;
}

.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 49px;
    height: 49px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fae5;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.social-btn:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-btn:hover::after {
    left: 100%;
}

.fb-btn:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.fb-btn:hover svg {
    fill: white;
}

.tg-btn:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.tg-btn:hover svg {
    fill: white;
}

.ig-btn:hover {
    background: #d6249f;
    border-color: #d6249f;
}

.ig-btn:hover svg {
    fill: white;
}

.yt-btn:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.yt-btn:hover svg {
    fill: white;
}

.et-btn:hover {
    background: #00a4e4;
    border-color: #00a4e4;
}

.et-btn:hover svg {
    fill: white;
}

/* لوگوهای اعتماد */
.trust-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.trust-item {
    background: #ffffffa1;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    height: 55px;
    width: 55px;
}

.trust-item:hover {
    border-color: #4a6cf7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.trust-item img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.trust-item:hover img {
    transform: scale(1.05);
}

.trust-item:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item:first-child img {
    max-height: 65px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1100px) {
    .download-container {
        padding: 14px 22px;
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 35px;
    }
    
    .footer-left {
        display: none;
    }
    
    .footer-right {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-col {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .footer-logo img {
        width: 50px;
    }
    
    .trust-wrapper {
        gap: 12px;
    }
    
    .trust-item {
        width: 95px;
        height: 80px;
        padding: 14px;
    }
}

@media (max-width: 768px) {
    /* فاصله برای کادر دانلود */
    .compact-download {
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .download-container {
        margin: 10px auto;
        padding: 10px 15px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* فوتِر در موبایل */
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    /* بخش دانلود اپلیکیشن */
    .download-info {
        text-align: right;
        padding: 0 5px;
        flex: 1;
        min-width: 0;
    }
    
    .download-info strong {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .download-info span {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .download-icon {
        min-width: 40px;
        height: 40px;
        padding: 8px;
        flex-shrink: 0;
    }
    
    .download-icon img {
        width: 35px;
        height: 35px;
    }
    
    .download-btn {
        padding: 0px 15px;
        font-size: 12px;
        border-radius: 25px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .trust-item {
        width: 85px;
        height: 75px;
        padding: 12px;
    }
    
    .trust-item img {
        max-height: 55px;
    }
    
    .social-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    /* فاصله بیشتر در موبایل کوچک */
    .compact-download {
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .download-container {
        margin: 8px auto;
        padding: 8px 12px;
        gap: 8px;
    }
    
    /* دانلود اپلیکیشن کاملاً جمع‌وجور */
    .compact-download {
        margin-top: 15px;
    }
    
    .download-info strong {
        font-size: 14px;
    }
    
    .download-info span {
        font-size: 10px;
        display: none;
    }
    
    .download-icon {
        min-width: 35px;
        height: 35px;
        padding: 6px;
    }
    
    .download-icon img {
        width: 30px;
        height: 30px;
    }
    
    .download-btn {
        padding: 0px 12px;
        font-size: 11px;
        border-radius: 25px;
        gap: 4px;
    }
    
    .download-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .trust-item {
        width: 80px;
        height: 70px;
        padding: 10px;
    }
    
    .trust-item img {
        max-height: 50px;
    }
    
    .social-buttons {
        gap: 8px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    /* فاصله در موبایل خیلی کوچک */
    .compact-download {
        padding: 0 8px;
    }
    
    .download-container {
        padding: 6px 10px;
        gap: 6px;
        margin: 6px auto;
    }
    
    .download-info strong {
        font-size: 12px;
    }
    
    .download-icon {
        min-width: 30px;
        height: 30px;
        padding: 5px;
    }
    
    .download-icon img {
        width: 25px;
        height: 25px;
    }
    
    .download-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .download-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .trust-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-item {
        width: 75px;
        height: 65px;
        padding: 8px;
    }
}

@media (max-width: 320px) {
    /* در موبایل خیلی خیلی کوچک */
    .download-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .download-info {
        flex-basis: 100%;
        text-align: center;
        order: 3;
        margin-top: 5px;
    }
    
    .download-icon {
        order: 1;
    }
    
    .download-btn {
        order: 2;
    }
}

/* Iframe */
iframe {
    width: 100%;
    display: block;
    position: relative;
    z-index: 55555;
    text-align: center;
}

.centerframm {
    border: none;
    width: 100%;
    height: 250px;
}

/* Sticky Menu */
.sticky {
    position: fixed !important;
    width: 1280px !important;
    top: 0 !important;
    z-index: 99999;
}

.stickysi {
    position: fixed !important;
    width: 28.3% !important;
    top: 60px !important;
    z-index: 999999999;
}

/* Various Custom Styles */
.velo {
    color: #ffaa11 !important;
    margin: 0 4px;
}

.sinap a {
    color: #dcdcdc !important;
    top: 8px;
    margin-right: 15px;
    position: relative;
}

.tiop {
    height: 49px;
}

.onbtop {
    float: right;
    padding: 2px 15px 0;
    color: #dcdcdc;
    cursor: default;
    font-size: 18px;
}

.ionpo {
    margin: 5px;
    float: right;
    margin-left: 4px;
}

.onpo1 {
    float: right;
    padding: 5px 15px 0;
}

.erticon {
    float: right;
    color: #fff;
    margin: 5px;
    font-size: 24px;
}

.imgposy {
    float: left;
    width: 100%;
    height: auto;
}

/* Contact Card */
/* استایل اصلی - بدون تغییر */
.card-tamas {
    display: flex;
    width: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(0.25turn, #4d4d4d, #040404, #040404);
    border: 1px solid #afafaf;
}

.half-tamas {
    width: 100%;
}

.half-right-tamas {
    padding: 1.5rem 1rem 4rem 1rem;
    position: relative;
}

/* فقط رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .card-tamas {
        flex-direction: column;
        width: auto;
        height: auto;
        margin: 10px 0;
        border-radius: 15px;
    }
    
    .img-container-tamas {
        width: 100%;
    }
    
    .img-container-tamas img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    .half-tamas {
        width: auto;
    }
    
    .half-right-tamas {
        padding: 1rem 0.8rem 3rem 0.8rem;
        text-align: center; /* همه متن‌ها وسط */
    }
    
    .name {
        font-size: 20px !important;
        text-align: center;
    }
    
    .half-right-tamas > span[style*="color: #ffffff"]:first-of-type {
        font-size: 14px !important;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .bio {
        font-size: 18px !important;
        text-align: center;
        margin: 15px 0 10px 0;
    }
    
    p[style*="text-align: justify"] {
        font-size: 13px !important;
        line-height: 1.6 !important;
        text-align: center !important; /* وسط چین */
        margin-bottom: 15px;
    }
    
    .half-right-tamas span[style*="color: #ffffff"] {
        font-size: 13px !important;
        display: block;
        margin-bottom: 8px;
        line-height: 1.5;
        text-align: center; /* وسط چین */
    }
    
    .location {
        font-size: 12px !important;
        text-align: center;
        margin-top: 15px;
    }
    
    .location span[style*="font-size: 10pt"] {
        font-size: 11px !important;
        text-align: center;
    }
    
    .half-right-tamas a {
        font-size: 13px !important;
        display: inline !important;
    }
    
    /* آیدی تلگرام */
    .location a {
        color: #ffffff !important;
        text-decoration: none;
    }
    
    .location a:hover {
        text-decoration: underline;
    }
    
    /* وسط چین کردن لینک‌های "کلیک کنید" */
    .half-right-tamas span[style*="color: #348feb;"] {
        display: inline !important;
    }
    
    /* اطمینان از وسط بودن همه چیز */
    .half-right-tamas > * {
        text-align: center !important;
    }
}

/* برای موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    .card-tamas {
        border-radius: 10px;
        margin: 5px 0;
    }
    
    .img-container-tamas img {
        max-height: 250px;
    }
    
    .half-right-tamas {
        padding: 0.8rem 0.6rem 2.5rem 0.6rem;
    }
    
    .name {
        font-size: 18px !important;
    }
    
    .bio {
        font-size: 16px !important;
    }
    
    p[style*="text-align: justify"] {
        font-size: 12px !important;
    }
    
    .half-right-tamas span[style*="color: #ffffff"] {
        font-size: 12px !important;
    }
    
    .location {
        font-size: 11px !important;
    }
}

/* Coupon */
.coupon-ve {
    width: 170px;
    display: flex;
    position: fixed;
    left: 23px;
    bottom: 23px;
}

.card-coupon {
    height: 137px;
    border-radius: 15px;
    box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.2);
    padding: 8px 5px;
    background: #fff;
}

.copy-button {
    display: flex;
    align-items: center;
}

.img-coupon img {
    width: 190px;
}

.copy-button {
    height: 40px;
    border-radius: 10px;
    padding: 0 10px;
    border: 1px solid #e1e1e1;
}

.copy-button input {
    width: 100%;
    height: 95%;
    border: none;
    font-size: 18px;
}

.copy-button button {
    background-color: #dc143c;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 15px;
    padding: 0px 15px 5px 15px;
    cursor: pointer;
}


/* Media Queries */
@media (max-width: 970px) {
    .sticky {
        position: absolute !important;
    }
}

/* ====== RESPONSIVE STYLES (768px) ====== */
@media (max-width: 768px) {
    .sofootf {
        display: none;
    }
    .cart_totals table {
        width: 100% !important;
    }
    
    .wc-proceed-to-checkout {
        width: 100% !important;
    }
    
    .cross-sells {
        display: none;
    }
    
    img {
        max-width: 100%;
    }
    
    body {
        direction: rtl;
        margin: 0;
        padding: 0;
        margin-top: 0px;
    }
    
    .container {
        width: 100%;
        margin: auto;
    }
    
    .box-post-store .post-store {
        width: 48%;
        height: auto;
        float: right;
        margin: 1%;
    }
    
    .box-post-store .post-store .post-store-title {
        margin: 1%;
        float: right;
        height: 56px;
    }
    
    .box-post-store .post-store .post-store-title span {
        color: #fff;
        float: right;
        font-size: 11px;
    }
    
    .box-post-store .post-store .post-store-title a h3 {
        text-align: right;
        float: right;
        font-size: 11px;
    }
    
    .menu-left {
        width: 100%;
        height: auto;
        float: left;
        margin: 5px auto;
    }
    
    .wrapper-left {
        width: 100%;
        height: auto;
        float: right;
        background: #1B1B1B;
    }
    
    .main-menu {
        display: none;
    }
    
    .navbar {
        display: none;
    }
    
    .slide-Area {
        width: 100%;
        height: auto;
        float: right;
    }
    
    .amozesh-post-right {
        width: 99%;
        height: 100%;
        float: right;
    }
    
    .amozesh-post-right img {
        width: 100% !important;
        height: auto !important;
        float: right;
        border: 1px solid #181b20;
        position: relative;
        z-index: 9999;
    }
    
    .amozesh-post-left {
        width: 100%;
        height: 100%;
        float: right;
        position: relative;
    }
    
    .amozesh-left-txt {
        width: 97%;
        height: 100px;
        color: #fff;
        margin: 0px 5px;
        font-size: 11px;
        text-align: justify;
        display: none;
    }
    
    .amozesh-left-bottom {
        width: 100%;
        height: auto;
        float: left;
        position: absolute;
        bottom: 0px;
        padding-bottom: 5px;
        border-bottom: 1px solid #282828;
        background: #1b1b1b;
        display: none;
    }
    
    .box-post-store .post-store .post-store-img img {
        width: 97%;
        height: auto;
        margin: 1% auto;
    }
    
    .sina12 {
        display: none;
    }
    
    .sina11 {
        display: block;
        margin-bottom: 20px;
    }
    
    .right-frome-site {
        width: 100%;
        height: 249px;
        float: right;
        background: #1a1d23;
    }
    
    .left-frome-site {
        width: 100%;
        height: auto;
        float: left;
    }
    
    .left-frome-site a {
        display: block;
    }
    
    .menu-left nav {
        width: auto;
        background: #000;
        float: right;
        margin: 20px 0px 0 0;
        border: 1px solid #060606;
    }
    
    .menu-left nav ul li {
        font-size: 14px;
        float: right;
        list-style: none;
        padding: 5px 18px;
        background: linear-gradient(to bottom, #232831 0, #171a1d 100%);
        box-shadow: 0 1px 0 0 rgba(255, 255, 255, .05) inset;
        cursor: pointer;
        border: 1px solid #060606;
        margin-right: 1px;
        border-radius: 25px;
    }
    
    .menu-left li.menu-ul-site ul li {
        display: block;
        padding: 0px;
        width: 130px;
        border-bottom: solid 1px #ddd;
        float: right;
        font-size: 14px;
        background: none;
        border-radius: 10px;
        text-align: right;
    }
    
    .menu-left ul li.menu-ul-site ul {
        position: absolute;
        z-index: 900;
        margin: 6px -10px;
        opacity: 0;
        visibility: hidden;
        background: #fff;
        width: 130px;
        line-height: normal;
        border-radius: 10px;
        transition: all .2s linear;
    }

    .edd-cart-quantity {
        margin: -23px 100px 0 0;
    }
    
    .header-Area {
        text-align: center;
        height: 66px;
        background-color: #272D37;
        background-image: none;
        padding-bottom: 10px;
        margin-bottom: 18px;
    }
    
    .header-Area a {
        display: block;
    }
    
    .header-Area img {
        float: left;
        height: 50px !important;
        position: relative;
        top: 10px;
    }
    
    .soliloquy-container {
        padding-bottom: 10px !important;
    }
    
    .post-footage-img {
        width: 16.06%;
        float: right;
        margin: 2px;
        border-radius: 10px;
    }
    
    .tags-post {
        width: 100%;
        height: auto;
        float: right;
        margin-top: 15px;
        display: none;
    }
    
    table {
        max-width: 100%;
    }
    
    .single-page {
        width: 96%;
        height: auto;
        float: right;
        background: #e7e7e7;
        margin-top: 5px;
        padding: 2%;
    }
    
    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product {
        width: 80%;
        float: none;
        clear: both;
        margin: 1% auto;
        text-align: center;
    }
    
    .woocommerce ul.products li.product .button {
        margin-top: 1em;
        display: block;
        text-align: center;
        width: 100%;
        line-height: 18px;
        padding: 4px;
        background-color: #0253c5;
        height: 23px;
        width: 78%;
        margin: 12px auto;
    }
    
    .woocommerce ul.products[class*="columns-"] li.product:nth-child(2n),
    .woocommerce-page ul.products[class*="columns-"] li.product:nth-child(2n) {
        float: none;
        clear: none !important;
    }
    
    .inputser {
        display: none;
    }
    
    .menu-item a img {
        display: none !important;
    }
    
    .edd-submit.button.blue {
        color: #fff;
        background: #428bca;
        border-color: #357ebd;
        width: auto !important;
        font-size: 12px !important;
        padding: 7px 43px 7px 8px !important;
        height: 22px !important;
        margin: 20px auto !important;
    }
    
    #edd-purchase-button,
    .edd-submit,
    [type="submit"].edd-submit {
        position: relative !important;
        width: auto !important;
    }
    
    .woocommerce div.product form.cart .button {
        vertical-align: middle;
        float: right;
        width: auto !important;
        padding-right: 40px !important;
    }
    
    .amozesh-left-top {
        width: 100%;
        height: auto;
        padding: 5px 0;
        border-bottom: 1px solid #282828;
        background: #1b1b1b;
        border-radius: 15px;
    }
    
    .amozesh-left-top h2 {
        font-size: 11px;
        line-height: 20px;
        padding: 2%;
        text-align: center;
        font-weight: normal;
    }

    .woocommerce .product .add_to_cart_button.button {
        margin-right: 37px;
        border-radius: 15px;
        font-size: 14px;
        background: #009fbf;
    }
    
    .wpcf7-form {
        float: botton;
        width: 100%;
        height: auto;
        margin: -5000px px px px;
    }
    
    .Slider-Pac {
        display: none;
    }
    
    .header_VP {
        display: none;
    }
    
    .wpcf7 {
        width: 94%;
    }
}

/* ==================== WooCommerce Minimal Styles ==================== */

/* ==================== CART PAGE ==================== */

/* هدر بخش محصولات سبد خرید */
.woocommerce-cart-form {
    background: #ffffffa1;
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.woocommerce-cart-form:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #34495e;
}

/* هدر جدول محصولات */
.woocommerce table.shop_table.cart thead {
    background: #f8f9fa;
}

.woocommerce table.shop_table.cart thead th {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 10px;
    border: none;
    border-bottom: 2px solid #dee2e6;
}

/* هدر بخش جمع جزء */
.woocommerce table.shop_table.cart thead th.product-subtotal {
    background: #f8f9fa;
    color: #2c3e50;
}

/* ردیف‌های جدول */
.woocommerce table.shop_table.cart tbody td {
    padding: 15px 10px;
    color: #495057;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

/* تصاویر محصولات */
.woocommerce-cart-form__cart-item .product-thumbnail img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

/* نام محصولات */
.woocommerce-cart-form__cart-item .product-name {
    text-align: right;
}

.woocommerce-cart-form__cart-item .product-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    text-align: right;
    display: block;
}

.woocommerce-cart-form__cart-item .product-name a:hover {
    color: #3498db;
}

/* قیمت‌ها */
.woocommerce table.shop_table.cart td.product-price,
.woocommerce table.shop_table.cart td.product-subtotal {
    font-size: 15px;
    font-weight: 400;
    color: #495057;
    text-align: left;
    direction: ltr;
}

/* فیلد تعداد */
.woocommerce .quantity {
    display: inline-block;
}

.woocommerce .quantity .qty {
    width: 60px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    color: #2c3e50;
    background: #fff;
    display: inline-block;
}

.woocommerce .quantity .qty:focus {
    outline: none;
    border-color: #95a5a6;
}

/* دکمه حذف */
.woocommerce-cart-form__cart-item .product-remove a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.woocommerce-cart-form__cart-item .product-remove a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

/* ==================== بخش کوپن و بروزرسانی ==================== */

.woocommerce-cart .actions {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

/* فیلد کوپن */
.woocommerce-cart .coupon .input-text {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    padding: 0 12px;
    width: 180px !important;
    min-width: 180px !important;
    color: #2c3e50;
}

.woocommerce-cart .coupon .input-text:focus {
    border-color: #95a5a6;
    outline: none;
}



/* دکمه بروزرسانی */
.woocommerce-cart .actions .button[name="update_cart"] {
    background: white;
    border: 1px solid #95a5a6;
    color: #2c3e50;
    font-weight: 400;
    border-radius: 25px;
    transition: all 0.2s;
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
}

.woocommerce-cart .actions .button[name="update_cart"]:hover {
    background: #f8f9fa;
    border-color: #7f8c8d;
}

/* ==================== بخش مجموع سبد خرید ==================== */

/* مخفی کردن محصولات پیشنهادی */
.cross-sells {
    display: none !important;
}

/* مجموع سبد خرید */
.woocommerce-cart .cart-collaterals {
    margin-top: 0;
}

.woocommerce-cart .cart_totals {
    background: #ffffffa1;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.woocommerce-cart .cart_totals:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #34495e;
}

/* هدر بخش مجموع */
.woocommerce .cart_totals h2 {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

/* جدول مجموع */
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 10px 0;
    color: #495057;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.woocommerce .cart_totals table tr:last-child th,
.woocommerce .cart_totals table tr:last-child td {
    border-bottom: none;
    font-weight: 500;
    color: #2c3e50;
    padding-top: 12px;
}

/* دکمه پاک کردن کد تخفیف - قرمز */
.woocommerce .cart_totals .woocommerce-remove-coupon {
    color: #e74c3c !important;
    text-decoration: none;
    font-size: 13px;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #fdf2f2;
    border: 1px solid #fadbd8;
}

.woocommerce .cart_totals .woocommerce-remove-coupon:hover {
    background: #fadbd8;
    color: #c0392b !important;
}

/* دکمه پرداخت - آبی */
.wc-proceed-to-checkout {
    margin-top: 15px;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #2980b9 !important;
}

/* ==================== CHECKOUT PAGE ==================== */

/* بخش جزئیات پرداخت - تمام صفحه */
.woocommerce-checkout .col2-set {
    background: #ffffffa1;
    border-radius: 8px;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

.woocommerce-checkout .col2-set:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #34495e;
}

/* حذف col-2 */
.woocommerce-checkout .col2-set .col-2 {
    display: none !important;
}

/* col-1 تمام صفحه */
.woocommerce-checkout .col2-set .col-1 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* هدر بخش */
.woocommerce-checkout .col2-set h3 {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    border: none;
}

/* حذف توضیحات تکمیلی */
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

/* فیلدهای فرم */
.woocommerce-checkout .form-row {
    margin-bottom: 12px;
}

.woocommerce-checkout .form-row label {
    font-size: 14px;
    color: #495057;
    margin-bottom: 4px;
    font-weight: 400;
    display: block;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px !important;
    font-size: 14px;
    color: #2c3e50;
    width: 100% !important;
    box-sizing: border-box;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #95a5a6;
    outline: none;
}

/* ==================== بخش سفارش شما - محصولات ==================== */

/* مخفی کردن هدر "سفارش شما" */
.woocommerce-checkout #order_review_heading {
    display: none !important;
}

/* بخش سفارش شما */
.woocommerce-checkout #order_review {
    background: #ffffffa1;
    border-radius: 15px;
    padding: 5px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 15px !important;
    float: none !important;
}

.woocommerce-checkout #order_review:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #34495e;
}

/* نام محصول سمت راست */
.woocommerce-checkout-review-order-table td.product-name {
    text-align: right !important;
    direction: rtl !important;
}

/* تعداد محصول در کادر قرمز */
.woocommerce-checkout-review-order-table td.product-name .product-quantity {
    background: #fdf2f2;
    color: #e74c3c;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #fadbd8;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* قیمت قدیمی - قرمز و خط خورده */
.woocommerce-checkout-review-order-table td.product-name del {
    color: #e74c3c !important;
    font-size: 13px;
    margin-left: 10px;
    opacity: 1 !important;
}

/* قیمت جدید - سبز */
.woocommerce-checkout-review-order-table td.product-name ins {
    color: #27ae60 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    margin-right: 5px;
    background: none !important;
}

/* هر دو قیمت در یک ردیف */
.woocommerce-checkout-review-order-table td.product-name .amount {
    display: inline-block;
}

/* جدول سفارش */
.woocommerce-checkout-review-order-table {
    font-size: 14px;
    width: 100%;
}

.woocommerce-checkout-review-order-table th {
    color: #495057;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    text-align: right;
}

.woocommerce-checkout-review-order-table td {
    color: #2c3e50;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
    text-align: left;
    direction: ltr;
    vertical-align: top;
}

/* ردیف کد تخفیف */
.woocommerce-checkout-review-order-table tr.cart-discount th,
.woocommerce-checkout-review-order-table tr.cart-discount td {
    color: #27ae60;
}

/* دکمه پاک کردن کد تخفیف - قرمز */
.woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon {
    color: #e74c3c !important;
    text-decoration: none;
    font-size: 12px;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #fdf2f2;
    border: 1px solid #fadbd8;
}

.woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon:hover {
    background: #fadbd8;
    color: #c0392b !important;
}

.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
    border-bottom: none;
    font-weight: 500;
    color: #2c3e50;
    padding-top: 14px;
}

/* ==================== صفحه کد تخفیف ==================== */

/* استایل صفحه کد تخفیف */
.checkout_coupon {
    background: #ffffffa1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.checkout_coupon .form-row {
    margin-bottom: 15px;
}

.checkout_coupon p {
    font-size: 14px;
    color: #495057;
    margin-bottom: 15px;
}

.checkout_coupon .input-text {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    width: 100% !important;
    color: #2c3e50;
}

.checkout_coupon .button {
    background: #3498db;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout_coupon .button:hover {
    background: #2980b9;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce .cart-collaterals .cross-sells, .woocommerce .cart-collaterals .shipping_calculator, .woocommerce-page .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cross-sells, .woocommerce-page .cart-collaterals .shipping_calculator {
  width: auto !important;
  float: none;
  text-align: right;
}

/* ==================== پیام‌ها و اعلان‌ها ==================== */

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 15px;
    padding: 12px 40px 12px 15px !important;
    position: relative;
    font-size: 14px;
    margin-bottom: 12px;
}

.woocommerce .woocommerce-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.woocommerce .woocommerce-message {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* آیکن‌های پیام‌ها */
.woocommerce .woocommerce-message:before,
.woocommerce .woocommerce-error:before,
.woocommerce .woocommerce-info:before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.woocommerce .woocommerce-message:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.woocommerce .woocommerce-error:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.woocommerce .woocommerce-info:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

/* ==================== RESPONSIVE - فقط موبایل ==================== */

@media only screen and (max-width: 768px) {
    /* سبد خرید در موبایل */
    .woocommerce-cart-form,
    .woocommerce-cart .cart_totals,
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout #order_review,
    .checkout_coupon {
        padding: 15px;
    }
    
    .woocommerce .cart_totals h2,
    .woocommerce-checkout .col2-set h3 {
        margin: -15px -15px 12px -15px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* فیلد کوپن در موبایل - کنار هم */
    .woocommerce-cart .coupon {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        align-items: center;
    }
    
    .woocommerce-cart .coupon .input-text {
        width: auto !important;
        flex: 1;
        min-width: 0 !important;
        height: 36px;
    }
    
    .woocommerce-cart .coupon .button {
        height: 36px;
        padding: 0 15px;
        white-space: nowrap;
    }
    
    .woocommerce-cart .actions .button[name="update_cart"] {
        height: 36px;
        width: auto;
        padding: 0 15px;
    }
    
    .woocommerce-cart .actions {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* دکمه‌ها در موبایل */
    .wc-proceed-to-checkout .checkout-button,
    .woocommerce-checkout #place_order {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    /* چکاوت در موبایل */
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
    }
    
    /* محصولات در جدول سفارش موبایل */
    .woocommerce-checkout-review-order-table td.product-name {
        font-size: 13px;
    }
    
    .woocommerce-checkout-review-order-table td.product-name .product-quantity {
        font-size: 11px;
        padding: 1px 6px;
    }
}