/*
Theme Name: سلامت و بهداشت محیط
Theme URI: https://iehe.ir
Author: مهندس داود وکیلی
Author URI: https://iehe.ir
Description: قالب مینیمال و مدرن برای سایت سلامت و آموزش
Version: 1.0.0
Text Domain: salamat-amooz
*/

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ریست و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --third-color: #8b5cf6;
    --fourth-color: #065f46;
    --cart-color: #f97316; 
    --alert-color: #d35400; 
    --li-color:#f9fafb;
    --li-colorh:#eef6ff;
    --li-li-color:#f1f2f3;
    --orange-color:#FB8C00;
    --views-bg: rgba(0, 0, 0, 0.6);
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #fff;
    --light-bg: #f8fafc;
    --dark-bg: #2c3e50;
    --border-color: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-btm: 0 5px 15px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 8px;
    --border-radius-sm: 6px;
}

[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --cart-color: #f97316;
    --accent-color: #e74c3c;
    --li-color:#212121;
    --li-colorh:#424242;
    --li-li-color:#424242;
    --text-color: #f1f5f9;
    --light-text: #94a3b8;
    --bg-color: #1a1a1a;
    --light-bg: #2d2d2d;
    --dark-bg: #0f172a;
    --border-color: #404040;
}

[data-theme="blue"] {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --cart-color: #f97316;
    --accent-color: #ef4444;
}

[data-theme="green"] {
    --primary-color: #065f46;
    --secondary-color: #10b981;
    --cart-color: #f97316;
    --accent-color: #dc2626;
}

[data-theme="purple"] {
    --primary-color: #5b21b6;
    --secondary-color: #8b5cf6;
    --cart-color: #f97316;
    --accent-color: #dc2626;
}

[data-theme="orange"] {
    --primary-color: #ea580c;
    --secondary-color: #fb923c;
    --cart-color: #22c55e;
    /* تغییر رنگ دکمه سبد خرید در تم نارنجی */
    --accent-color: #dc2626;
}

body {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    direction: rtl;
    font-weight: 400;
    font-variant-numeric: normal;
    font-feature-settings: "ss01";
}

button {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}
a {
    text-decoration:none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* نوار پیشرفت اسکرول */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.2s ease;
}

/* هدر و منو */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 28px;
    margin-left: 10px;
}

.main-nav .menu {
    display: flex;
    list-style: none;
}

.main-nav .menu li {
    position: relative;
}

.main-nav .menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    display: block;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.main-nav .menu a:hover,
.main-nav .menu a.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
    transform: translateY(-2px);
}

.menu-item-has-children>a {
    display: flex;
    align-items: center;
}

.menu-item-has-children .fa-chevron-down {
    font-size: 12px;
    margin-right: 5px;
    transition: var(--transition);
}

.menu-item-has-children:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* مگامنو */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 800px;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 25px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 100;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mega-menu ul li a {
    padding: 5px 5px !important;
   }
.mega-menu ul li {
    margin-bottom: 5px !important;
}
.menu-item-has-children:hover .mega-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    padding: 5px 0;
    display: block;
    border-radius: var(--border-radius-sm);
}

.mega-menu-column ul a:hover {
    color: var(--primary-color);
    padding-right: 10px;
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.05);
    transform: translateX(-5px);
}

/* بخش کاربر و جستجو */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    position: relative;
}

.search-form {
    display: flex;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.2);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.search-form input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 200px;
    color: var(--text-color);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.search-form input:focus {
    width: 220px;
}

.search-form button {
    border: none;
    background: transparent;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
}

.search-form button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* پالت رنگی در هدر */
.theme-switcher-header {
    position: relative;
}

.theme-switcher-header .theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.theme-switcher-header .theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(15deg) scale(1.1);
}

.theme-switcher-header .theme-options {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-lg);
    display: none;
    width: 150px;
    border: 1px solid var(--border-color);
    z-index: 100;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-switcher-header:hover .theme-options {
    display: grid;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-switcher-header .theme-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.theme-switcher-header .theme-color:hover {
    transform: scale(1.1);
    border-color: var(--text-color);
}

.theme-switcher-header .theme-color.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb, 52, 152, 219), 0.3);
}

.user-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon,
.user-icon {
    color: var(--text-color);
    font-size: 20px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    text-decoration: none;
}

.cart-icon:hover,
.user-icon:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: var(--cart-color);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
    transform: rotate(90deg);
}

/* منوی موبایل سایدبار */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 99999999999999999999999;
    transition: var(--transition);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        right: -320px;
    }

    to {
        right: 0;
    }
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-close:hover {
    color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb, 231, 76, 60), 0.1);
    transform: rotate(90deg);
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-user-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-cart-icon,
.mobile-user-icon {
    color: var(--text-color);
    font-size: 20px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
}

.mobile-cart-icon:hover,
.mobile-user-icon:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: var(--cart-color);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-sidebar-search {
    margin-bottom: 30px;
}

.mobile-sidebar-search .search-form {
    width: 100%;
}

.mobile-sidebar-search input {
    width: 100%;
}

.mobile-menu {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-menu li {
    margin-bottom: 5px;
}

.mobile-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.mobile-menu-item-has-children>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    list-style: none;
    padding-right: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item-has-children.active .mobile-submenu {
  max-height: 500px;
    overflow-y: auto;
}

.mobile-submenu li {
    margin-bottom: 5px;
}

.mobile-submenu a {
    padding: 8px 15px;
    font-size: 14px;
}

.mobile-sidebar-theme h4 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-colors .theme-color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    justify-self: center;
}

.theme-colors .theme-color-btn:hover {
    transform: scale(1.1);
    border-color: var(--text-color);
}

.theme-colors .theme-color-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb, 52, 152, 219), 0.3);
    animation: pulse 2s infinite;
}

/* اسلایدر اصلی */
.hero-slider {
    background-color: var(--light-bg);
    padding: 40px 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease;
}

.slider-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background-color: var(--bg-color);
    min-height: 400px;
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-slide.active {
    display: flex;
}

.slide-content {
    flex: 1;
    padding-left: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 2px;
    line-height: 1.8;
}
.slide-content a {margin-top:30px;}

.slide-image {
    flex: 1;
    text-align: center;
    animation: zoomIn 0.8s ease 0.5s both;
    width:100%;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 52, 152, 219), 0.1), rgba(var(--secondary-color-rgb, 46, 204, 113), 0.1));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.image-placeholder:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.image-placeholder.large {
    height: 350px;
}

.image-placeholder.large i {
    font-size: 100px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 50px;
}

.slider-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--orange-color);
    transform: scale(1.2);
}

.dot:hover {
    transform: scale(1.1);
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb, 52, 152, 219), 0.3);
}

.btn-primary:hover {
    background-color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb, 52, 152, 219), 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--secondary-color-rgb, 46, 204, 113), 0.3);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--secondary-color-rgb, 46, 204, 113), 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb, 52, 152, 219), 0.2);
}

/* دکمه سبد خرید با رنگ روانشناسی فروش */
.btn-cart {
    background-color: var(--cart-color);
    color: white;
    box-shadow: var(--views-bg);
}

.btn-cart:hover {
    background-color: #ea580c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
    animation: cartPulse 0.5s ease;
}
.btn-cartt {
    background-color: var(--cart-color);
    color: white;
    box-shadow: var(--views-bg);
}

.btn-cartt:hover {
    background-color: #ea580c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
    animation: cartPulse 0.5s ease;
}
@keyframes cartPulse {
    0% {
        transform: translateY(-3px) scale(1.05);
    }

    50% {
        transform: translateY(-3px) scale(1.08);
    }

    100% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* بخش جستجوی ساده (پنهان در موبایل) */
.search-section.desktop-only {
    padding: 60px 0;
    background-color: var(--light-bg);
    animation: fadeIn 1s ease 0.2s both;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.section-header p {
    color: var(--light-text);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    font-size: 16px;
}

.view-all:hover {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

.view-all i {
    margin-right: 8px;
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(-5px);
}

.simple-search {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-form-large {
    display: flex;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-form-large:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.search-form-large input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 25px;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.search-form-large input:focus {
    padding-right: 30px;
}

.search-form-large button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    font-size: 16px;
    white-space: nowrap;
}

.search-form-large button i {
    margin-right: 8px;
}

/* محصولات */
.latest-products {
    padding: 80px 0;
    animation: fadeIn 1s ease 0.4s both;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.product-card .product-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.product-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.product-card .product-info {
    padding: 25px;
}

.product-card .product-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-card .product-excerpt {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 65px;
    overflow: hidden;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.product-price .current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old-price {
    font-size: 16px;
    color: var(--light-text);
    text-decoration: line-through;
    margin-right: 10px;
}

.product-card .product-sales {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 14px;
}

.product-card .product-sales i {
    margin-left: 5px;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.product-card .product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.product-actions .btn {
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

/* دسته‌بندی‌ها */
.categories-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    animation: fadeIn 1s ease 0.6s both;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--category-color, var(--primary-color));
    animation: fadeInUp 0.6s ease;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--category-color, var(--primary-color));
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card:nth-child(3) {
    animation-delay: 0.3s;
}

.category-card:nth-child(4) {
    animation-delay: 0.4s;
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--category-color-rgb, 52, 152, 219), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--category-color, var(--primary-color));
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(var(--category-color-rgb, 52, 152, 219), 0.2);
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(5deg);
    }
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.category-card:hover h3 {
    color: var(--category-color, var(--primary-color));
}

.category-card p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-link {
    color: var(--category-color, var(--primary-color));
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    font-size: 15px;
}

.category-link:hover {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

/* درباره سایت */
.about-section {
    padding: 80px 0;
    animation: fadeIn 1s ease 0.8s both;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.about-text h2 , .about-text h1  {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 16px;
    animation: fadeInLeft 0.8s ease 0.2s both;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-text);
}

.about-image {
    animation: fadeInRight 0.8s ease 0.6s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-image .image-placeholder {
    height: 350px;
}

/* مقالات */
.latest-articles {
    padding: 80px 0;
    background-color: var(--light-bg);
    animation: fadeIn 1s ease 1s both;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.article-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.article-card:nth-child(1) {
    animation-delay: 0.1s;
}

.article-card:nth-child(2) {
    animation-delay: 0.2s;
}

.article-card:nth-child(3) {
    animation-delay: 0.3s;
}

.article-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.article-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.article-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    animation: fadeInDown 0.5s ease;
}

.article-views {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.article-views:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.article-views i {
    margin-left: 5px;
    animation: pulse 2s infinite;
}

.article-content {
    padding:0 25px 25px 25px;
}

.article-content-home {
    padding:25px;
}
.article-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 600;
    height: 60px;
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 70px;
    overflow: hidden;
}

.article-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    font-size: 15px;
}

.article-read-more:hover {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

.article-read-more i {
    margin-right: 8px;
    transition: var(--transition);
}

.article-read-more:hover i {
    transform: translateX(-5px);
}

/* ویژگی‌های منحصر به فرد */
.features-section {
    padding: 80px 0;
    animation: fadeIn 1s ease 1.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--icon-color, var(--primary-color)) !important;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(var(--icon-color-rgb, 52, 152, 219), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--icon-color, var(--primary-color));
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(180deg);
    background-color: rgba(var(--icon-color-rgb, 52, 152, 219), 0.2);
    animation: rotateY 0.8s ease;
}

@keyframes rotateY {
    0% {
        transform: scale(1) rotateY(0deg);
    }

    100% {
        transform: scale(1.1) rotateY(180deg);
    }
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.feature-card:hover h3 {
    color: var(--icon-color, var(--primary-color));
}

.feature-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

/* پست‌های نسخه‌خوانی */
.prescription-posts {
    padding: 80px 0;
    background-color: var(--light-bg);
    animation: fadeIn 1s ease 1.4s both;
}

.prescription-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.prescription-post-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.prescription-post-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.prescription-post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.prescription-post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.prescription-post-card:nth-child(3) {
    animation-delay: 0.3s;
}

.prescription-post-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.prescription-post-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.post-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.prescription-post-content {
    padding: 25px;
}

.prescription-post-card .post-date {
    display: inline-block;
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.prescription-post-card:hover .post-date {
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.2);
    transform: translateY(-2px);
}

.prescription-post-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 600;
    height: 60px;
    overflow: hidden;
    transition: var(--transition);
}

.prescription-post-card:hover h3 {
    color: var(--primary-color);
}

.prescription-post-content p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 70px;
    overflow: hidden;
}

.post-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    font-size: 15px;
}

.post-read-more:hover {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

/* نظرات کاربران */
.testimonials-section {
    padding: 80px 0;
    animation: fadeIn 1s ease 1.6s both;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-content {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex: 1;
}

.testimonial-content p {
    color: var(--light-text);
    font-style: italic;
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    padding-right: 20px;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-content p {
    color: var(--text-color);
}

.testimonial-content p::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    right: -10px;
    font-style: normal;
    font-family: serif;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-content p::before {
    opacity: 0.4;
    transform: scale(1.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-author {
    transform: translateX(5px);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
}

.author-info span {
    font-size: 14px;
    color: var(--light-text);
}

/* فوتر */
.footer {
    background-color: var(--dark-bg);
    color: white;
    animation: fadeIn 1s ease 1.8s both;
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.footer-col:hover .footer-title::after {
    width: 100px;
}

.footer-about {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col:hover .footer-about {
    transform: translateY(-5px);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) rotate(5deg) scale(1.1);
}
.social-icon {text-decoration: none;}
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links li:hover {
    transform: translateX(-5px);
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-contact li:hover {
    transform: translateX(-5px);
    color: white;
}

.footer-contact i {
    color: var(--primary-color);
    margin-left: 10px;
    margin-top: 5px;
    flex-shrink: 0;
    transition: var(--transition);
}

.footer-contact li:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-left,
.copyright-right {
    color: #bbb;
    font-size: 14px;
    transition: var(--transition);
}

.copyright-left:hover,
.copyright-right:hover {
    color: white;
    transform: translateY(-2px);
}

.copyright-left {
    text-align: right;
}

.copyright-right {
    text-align: left;
}

.copyright-left strong {
    color: white;
    transition: var(--transition);
}

.copyright-left:hover strong {
    color: var(--primary-color);
}

.copyright-right i {
    margin: 0 5px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--cart-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* رسپانسیو */
@media (max-width: 992px) {
    .header-container {
        padding: 10px 0;
    }

    .main-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .slider-slide {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        min-height: 350px;
    }

    .slide-content {
        padding-left: 0;
        margin-bottom: 30px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .copyright-left,
    .copyright-right {
        text-align: center;
    }

    .search-section.desktop-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 15px;
    }

    .header-actions {
        gap: 10px;
    }

    .theme-switcher-header {
        display: none;
    }

    .slider-slide {
        padding: 20px;
    }

    .products-grid,
    .categories-grid,
    .articles-grid,
    .features-grid,
    .testimonials-grid,
    .prescription-posts-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 18px;
    }

    .logo i {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    .mobile-sidebar {
        width: 280px;
    }

    .mobile-user-actions {
        justify-content: space-around;
    }
}

/* استایل بخش فوتر دسته‌بندی */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

.view-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    text-decoration: none;
}

.view-all-posts i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.view-all-posts:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.view-all-posts:hover i {
    transform: translateX(-5px);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .section-footer {
        margin-top: 30px;
    }

    .view-all-posts {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* h4 post adv style */
.h4 {
    background:var(--light-bg);
    color:var(--text-color);
    padding: 18px 25px;
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
    margin: 30px 0;
    direction: rtl;
    transition: transform 0.3s ease, border-right-width 0.2s ease;
    transform: translateX(0);
}

.h4:hover {
    transform: translateX(-3px);
    border-right-width: 6px;
}

.h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.h4 a:hover {
    color: #2ecc71;
}

/* **** single-style.css ******* */
/* استایل مخصوص صفحه تک مقاله */
.single-page {
    padding-top: 30px;
}

/* ناوبری */
.single-breadcrumb {
    background-color: var(--light-bg);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

/* ساختار اصلی */
.single-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.purchase-page-wrapper {
    margin: 0 0 20px 0
}


/* ستون اصلی */
.single-main {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    overflow:hidden
}
.wide {overflow-x: auto;}

/* هدر مقاله */
.single-header {
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-text);
    font-size: 14px;
}

.article-meta a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-meta a:hover {
    color: var(--dark-bg);
}

.article-meta i {
    font-size: 14px;
}

.single-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.single-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.single-featured-image {
    margin: 25px 0;
}

.featured-image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
    margin-top: 10px;
    font-style: italic;
    padding: 0 10px;
}

/* آمار مقاله */
.article-stats {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
    border-radius: 50%;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

/* فهرست مطالب */
.table-of-contents {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.toc-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-toggle:hover {
    background-color: var(--border-color);
}

.toc-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.toc-content.collapsed {
    display: none;
}

.toc-content ol {
    list-style-type: none;
    padding-right: 0;
    margin: 0;
}

.toc-content>ol {
    padding-right: 0;
}

.toc-content li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

.toc-content li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
    font-weight: bold;
}

.toc-content li ol {
    margin-top: 10px;
    padding-right: 20px;
    border-right: 2px solid var(--border-color);
    margin-right: 5px;
}

.toc-content li li {
    margin-bottom: 8px;
    font-size: 14px;
}

.toc-content li li::before {
    content: "◦";
    color: var(--secondary-color);
}

.toc-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.toc-content a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

/* بخش‌های مقاله */


.article-section {
    scroll-margin-top: 20px;
    overflow:hidden;
}

.article-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.article-section h2::before {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

.article-section h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--secondary-color) !important;
    padding-bottom: 10px;
    position: relative;
    text-align: right !important;
}

.article-section h3::before {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
}

.article-section h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--third-color) !important;
    padding-bottom: 10px;
    position: relative;
    text-align: right !important;

}

.article-section h4::before {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background-color: var(--third-color);
}

.article-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    word-break: break-word;
}

.article-section ul,
.article-section ol {
    margin-bottom: 20px;
    padding-right: 25px;
}

.article-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* لینک های داخل مقالات */
/* استایل فعلی لینک‌ها - فقط برای لینک‌های متنی */
.article-section a:not(:has(img)) {
    color: #0271a9;
    text-decoration: none;
    position: relative;
    font-weight: 600;
}

.article-section a:not(:has(img))::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.article-section a:not(:has(img)):hover {
    color: #3498db;
}

.article-section a:not(:has(img)):hover::after {
    width: 100%;
}

/* استایل مجزا برای لینک‌های حاوی تصویر */
.article-section a:has(img) {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
}

.article-section a:has(img):hover {
    color: inherit;
    /* جلوگیری از تغییر رنگ متن (اگر متنی همراه تصویر نباشد) */
}

.article-section a:has(img)::after {
    display: none;
    /* حذف کامل خط زیر */
}

/* تصاویر بدون لینک */
.article-section img:not(a img) {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-section img:not(a img):hover {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    transition: all 0.4s ease;
}

/*پایان لینک های داخل مقالات  */
.article-section blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 2.5rem;
    background:var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: justify;
}

/* گیومه بزرگ در ابتدای نقل قول */
.article-section blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 15px;
    /* برای فارسی در راست */
    font-size: 5rem;
    color: rgba(209, 213, 219, 0.5);
    line-height: 1;
}

.article-section blockquote p {
    line-height: 1.8;
    color: var(--text-color);
}

.article-section blockquote cite,
.article-section blockquote footer {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: normal;
}

/* اگر نقل قول به زبان انگلیسی بود */
.article-section blockquote[lang="en"] {
    direction: ltr;
    text-align: left;
}

.article-section blockquote[lang="en"]::before {
    right: auto;
    left: 15px;
}

/* end section */
.styled-list {
    list-style-type: none;
    padding-right: 0;
}

.styled-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.styled-list li ul {
    margin-top: 10px;
    padding-right: 20px;
}

.styled-list li li::before {
    content: "›";
    color: var(--primary-color);
}

/* باکس‌های ویژه */
.info-box,
.warning-box,
.content-box {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
    border-right: 4px solid;
}

.info-box {
    border-right-color: var(--primary-color);
}

.warning-box {
    border-right-color: var(--accent-color);
}

.content-box {
    border-right-color: var(--secondary-color);
}

.info-box-icon,
.warning-icon {
    font-size: 24px;
    margin-bottom: 15px;
    display: inline-block;
}

.info-box-icon {
    color: var(--primary-color);
}

.warning-icon {
    color: var(--accent-color);
}

.info-box-content h4,
.warning-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* جدول‌ها */
.comparison-table,
.scrollable-table {
    margin: 25px 0;
    overflow-x: auto;
}

.comparison-table table,
.scrollable-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.scrollable-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.comparison-table td,
.scrollable-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: right;
}

.comparison-table tr:nth-child(even),
.scrollable-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.comparison-table tr:hover,
.scrollable-table tr:hover {
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.05);
}

/* گرید ویژگی‌ها */

.feature-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}



.feature-item h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--text-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

/* باکس تصویر */
.image-box {
    margin: 25px 0;
    text-align: center;
}

.image-placeholder.medium {
    height: 200px;
}

/* نکات بالینی */
.clinical-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tip {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
}

.tip h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tip h4 i {
    font-size: 18px;
}

.tip ul {
    margin: 10px 0;
    padding-right: 20px;
}

.tip li {
    margin-bottom: 5px;
}

/* جمع‌بندی */
.summary-box {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 52, 152, 219), 0.1), rgba(var(--secondary-color-rgb, 46, 204, 113), 0.1));
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-header i {
    font-size: 32px;
    color: var(--primary-color);
}

.summary-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.summary-content ol {
    padding-right: 25px;
    margin: 0;
}

.summary-content li {
    margin-bottom: 12px;
    padding-right: 10px;
    position: relative;
    line-height: 1.6;
}

.summary-content li::before {
    content: counter(list-item) ".";
    position: absolute;
    right: -20px;
    color: var(--primary-color);
    font-weight: bold;
}

/* برچسب‌ها */
.article-tags {
    margin: 30px 0 0 0;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-tags h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list .tagss {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tags-list .tagss:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* اشتراک‌گذاری */
.article-share {
    margin: 40px 0;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.article-share h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-decoration: none;
}


.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-btn.twitter:hover {
    background-color: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn.linkedin:hover {
    background-color: #0077B5;
    color: white;
    border-color: #0077B5;
}

.share-btn.telegram:hover {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.share-btn.whatsapp:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.copy-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* نویسنده */
.article-author {
    display: flex;
    gap: 25px;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin: 40px 0;
    border: 1px solid var(--border-color);
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
}

.avatar-placeholder.small {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 20px;
}

.author-bio {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.author-social a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-social a:hover {
    color: var(--primary-color);
}

.author-social i {
    font-size: 18px;
}

/* سایدبار */
.single-sidebar {
    position: sticky;
    top: 100px;
}

.single-sidebar-widget {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.single-widget-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-search {
    display: flex;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    color: var(--text-color);
    outline: none;
}

.sidebar-search button {
    border: none;
    background: transparent;
    padding: 0 15px;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-search button:hover {
    color: var(--primary-color);
}

.author-widget {
    text-align: center;
}

.sidebar-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-author-avatar {
    margin-bottom: 15px;
}

.sidebar-author-info h4 {
    margin: 0 0 5px;
    color: var(--text-color);
}

.sidebar-author-info p {
    color: var(--light-text);
    font-size: 14px;
    margin: 0 0 10px;
}

.author-profile-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.author-profile-link:hover {
    text-decoration: underline;
}

.sidebar-toc ul {
    list-style: none;
    padding-right: 0;
    margin: 0;
}

.sidebar-toc li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

.sidebar-toc li::before {
    content: "›";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.sidebar-toc li:hover::before {
    transform: translateX(-3px);
}

.sidebar-toc a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.sidebar-toc a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;

}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-image {
    flex-shrink: 0;
}

.image-placeholder.x-small {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.image-placeholder.x-small i {
    font-size: 20px;
    margin-bottom: 0;
}

.related-post-content h4 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post:hover {
    transform: translateX(-5px);
    /* یا هر افکت دیگه‌ای */
    transition: all 0.3s ease;
}

.post-date {
    font-size: 12px;
    color: var(--light-text);
}

.newsletter-widget p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
}

.newsletter-form button {
    padding: 12px;
}

/* ناوبری بین مطالب */
.post-navigation {
    background-color: var(--light-bg);
    padding: 40px 0;
    margin: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-previous {
    text-align: right;
}

.nav-next {
    text-align: left;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.nav-previous a:hover,
.nav-next a:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.nav-direction {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.nav-links h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.4;
}

.nav-date {
    font-size: 14px;
    color: var(--light-text);
}

.nav-previous::before {
    content: "←";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 20px;
}

.nav-next::before {
    content: "→";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 20px;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .single-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-sidebar {
        position: static;
    }

    .single-main {
        padding: 20px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-left,
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-previous::before,
    .nav-next::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .single-title {
        font-size: 26px;
    }

    .article-stats {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-author {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .author-social {
        justify-content: center;
    }

    .clinical-tips {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn span {
        display: none;
    }

    .share-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-main {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .article-section h2 {
        font-size: 22px;
    }

    .article-section h3 {
        font-size: 19px;
    }

    .toc-header {
        padding: 15px;
    }

    .toc-content {
        padding: 15px;
    }
}

/* انیمیشن‌های مخصوص */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.article-section {
    animation: fadeIn 0.5s ease;
}

/* باکس دانلود */
.download-box {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    margin: 40px 0;
    border: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

.download-banner {
    background: linear-gradient(135deg, var(--cart-color), #ea580c);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.download-banner::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.download-banner::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-text {
    font-size: 22px;
    font-weight: 700;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.download-banner i {
    font-size: 40px;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.download-content {
    padding: 30px;
    background-color: var(--light-bg);
}

.download-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.download-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background-color: rgba(249, 115, 22, 0.1);
    border-right: 4px solid var(--alert-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.download-alert i {
    font-size: 24px;
    color: var(--alert-color);
}

.download-alert p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.download-alert a {
    color: var(--cart-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.download-alert a:hover {
    text-decoration: underline;
}

.download-success-note {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 15px 15px;
    background-color: rgba(46, 204, 113, 0.1);
    border-right: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.download-success-note i {
    font-size: 24px;
    color: var(--secondary-color);
}

.download-success-note p {
   
    color: var(--text-color);
    line-height: 1.6;
    padding-right: 25px !important;  
    position: relative;

}
.download-success-note p::before {
    font-family: "Font Awesome 7 Free";
    content: "\f00c";  
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 16px;
}
.download-success-note a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.download-success-note a:hover {
    text-decoration: underline;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.download-button .btn-cartt {
    padding: 15px 30px;
    font-size: 18px;
    animation: pulse 2s infinite;
}

.download-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-text);
    font-size: 14px;
}

.download-count::before {
    content: "⭐";
    font-size: 16px;
}

/* مطالب جدید در سایدبار */
.new-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-post {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.new-post:hover {
    transform: translateX(-5px);
}

.new-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.new-post-image {
    flex-shrink: 0;
}

.new-post-content h4 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.4;
}

.new-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.new-post-content h4 a:hover {
    color: var(--primary-color);
}

/* باکس تبلیغات */
.advertisement-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 5px;
}

.advertisement-box {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-color);
}

.advertisement-box a {
    text-decoration: none;
    display: block;
}

.ad-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transition: var(--transition);
}

.ad-placeholder:hover {
    transform: scale(1.05);
}

.ad-content {
    text-align: center;
    color: white;
}

.ad-content i {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.ad-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.ad-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.ad-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #333;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ad-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* اسکرول عمودی نظرات */
.comments-list-scrollable {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    margin-top: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
}

.comments-list-scrollable::-webkit-scrollbar {
    width: 8px;
}

.comments-list-scrollable::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

.comments-list-scrollable::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.comments-list-scrollable::-webkit-scrollbar-thumb:hover {
    background-color: var(--dark-bg);
}

/* حذف صفحه‌بندی نظرات */
.comments-pagination {
    display: none;
}

/* ریسپانسیو برای بخش‌های جدید */
@media (max-width: 768px) {
    .download-info {
        grid-template-columns: 1fr;
    }

    .download-button {
        flex-direction: column;
        align-items: stretch;
    }

    .download-button .btn-cartt {
        width: 100%;
        text-align: center;
    }

    .download-count {
        justify-content: center;
    }

    .comments-list-scrollable {
        max-height: 500px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .banner-text {
        font-size: 18px;
    }

    .download-banner i {
        font-size: 30px;
    }

    .download-content {
        padding: 20px;
    }

    .download-content h3 {
        font-size: 18px;
    }

    .ad-placeholder {
        min-height: 150px;
    }

    .ad-content i {
        font-size: 36px;
    }

    .ad-content h4 {
        font-size: 18px;
    }

    .ad-content p {
        font-size: 14px;
    }
}

/* ============================================
   بریدکرامب (Breadcrumb) - اصلاح شده
   ============================================ */
.single-breadcrumb {
    background-color: var(--light-bg);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 14px;
}

.breadcrumb li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 0;
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

.breadcrumb li.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb .fa-chevron-left {
    font-size: 10px;
    color: var(--light-text);
}

/* ============================================
   باکس تبلیغات سایدبار - طراحی جدید
   ============================================ */
.advertisement-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advertisement-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.ad-link {
    display: block;
    text-decoration: none;
    padding: 25px 20px;
    text-align: center;
}

.ad-content {
    color: white;
}

.ad-content i {
    font-size: 40px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.ad-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.ad-content p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white;
}

.ad-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: #333;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.advertisement-box:hover .ad-badge {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* ============================================
   هدر نظرات - اصلاح شده
   ============================================ */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.comments-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.comments-count {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.scroll-to-bottom-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.scroll-to-bottom-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-to-bottom-btn i {
    animation: bounce 2s infinite;
}

/* ============================================
   رسپانسیو برای موبایل
   ============================================ */
@media (max-width: 768px) {
    .breadcrumb ul {
        gap: 5px;
    }

    .breadcrumb li {
        font-size: 12px;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comments-header-left {
        width: 100%;
        justify-content: space-between;
    }

    .advertisement-box {
        margin: 0 -5px;
    }

    .ad-content i {
        font-size: 30px;
    }

    .ad-content h4 {
        font-size: 18px;
    }

    .ad-badge {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .breadcrumb ul {
        justify-content: flex-start;
    }

    .breadcrumb li:last-child {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .comments-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .scroll-to-bottom-btn {
        width: 100%;
        justify-content: center;
    }
}

/* دکمه ایزی دیجیتال - در صورت اختلال از اینجا حذف شود -- */
/* ===== استایل دکمه خرید EDD ===== */
.article-section .edd_purchase_submit_wrapper {
    text-align: center;
    /* وسط‌چین کردن محتوا */
    margin: 2rem auto;
    /* فاصله از اطراف */
    width: 100%;
    max-width: 100%;
}

/* استایل فقط دکمه خرید */
.article-section .edd-add-to-cart {
    display: inline-block !important;
    padding: 0.8rem 2rem !important;
    background: #00a85a !important;
    /* رنگ سبز EDD */
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    /* گردی کم (به جای 50px) */
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 168, 90, 0.2) !important;
    position: relative;
    overflow: hidden;
    min-width: 250px;
    /* حداقل عرض */
    max-width: 100%;
    font-variant-numeric: normal;
    font-feature-settings: "ss01";
}

/* متن داخل دکمه به صورت وزیرمتن */
.article-section .edd-add-to-cart .edd-add-to-cart-label {
    display: inline-block;
    font-size: 0.95rem;
    /* اندازه فونت کوچکتر */
    font-weight: 400;
    /* نازک‌تر */
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
    font-family: 'vazirmatn' !important;
    font-variant-numeric: normal !important;
    font-feature-settings: "ss01" !important;
}

.edd-add-to-cart .edd-add-to-cart-label {
    font-variant-numeric: normal !important;
    font-feature-settings: "ss01" !important;
}

/* هاور دکمه */
.article-section .edd-add-to-cart:hover {
    background: #008c4d !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 90, 0.3) !important;
}

.article-section .alert-danger {
    /* استایل پایه */
    position: relative;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    /* راست: 3rem برای آیکون */
    margin: 1.5rem 0;

    /* رنگ‌بندی ملایم */
    background-color: #fff8f8;
    border: 1px solid #ffcdd2;
    border-radius: 8px;

    /* تایپوگرافی */
    color: #b71c1c;
    font-size: 0.95rem;
    line-height: 1.6;

    /* سایه بسیار ملایم */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);

    /* حاشیه سمت چپ */
    border-left-width: 4px;
    border-left-color: #ef5350;

    /* ترنزیشن برای هاور */
    transition: all 0.2s ease;

    /* آیکون در سمت راست */
    &::after {
        content: "⚡";
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.3rem;
        opacity: 0.5;
        transition: opacity 0.2s ease;
        /* ترنزیشن برای آیکون */
    }

    /* هاور: بدون سایه، فقط تغییرات ملایم */
    &:hover {
        background-color: #fff0f0;
        border-color: #fbb4b4;
        border-left-color: #ef5350;
        /* حفظ رنگ حاشیه سمت چپ */

        &::after {
            opacity: 0.8;
            /* آیکون کمی پررنگ‌تر میشه */
        }
    }
}

.article-section ul {
    list-style: none;
    padding-right: 0;
    margin: 1rem 0;
}

.article-section ul li {
    padding: 5px 10px 5px 12px;
    margin-bottom: 8px;
    background: var(--li-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* تیک FontAwesome */
.article-section ul li::before {
    content: "\f00c";
    /* آیکون check */
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    right: 12px;
    transform: translateY(-50%);
    color: #3f51b5;
    font-size: 14px;
    padding: 5px 0px 5px 10px;
}

/* حالت هاور */
.article-section ul li:hover {
    background: var(--li-colorh);
    transform: translateX(-4px);
}

/* لیست داخلی (nested) */
.article-section ul li ul {
    list-style: none;
    padding-right: 15px;
    margin-top: 4px;
    /* فاصله از آیتم والد */
    margin-bottom: 0;
}

.article-section ul li ul li {
    position: relative;
    padding: 5px 30px 5px 12px;
    /* هماهنگ با لیست اصلی */
    margin-bottom: 4px;
    background: var(--li-li-color);
    /* همان رنگ لیست اصلی */
    border-radius: 8px;
    font-size: 0.95em;
}

/* تیک FontAwesome برای لیست داخلی */
.article-section ul li ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    /* همان فاصله از راست */
    top: 50%;
    color: #1da24e;
    font-size: 14px;
}


/* افکت کلیک */
.article-section .edd-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 168, 90, 0.2) !important;
}

/* استایل دکمه No-js (مخفی در حالت عادی) */
.article-section .edd-no-js {
    display: none !important;
}

/* استایل دکمه پرداخت - کاملاً مخفی */
.article-section .edd_go_to_checkout {
    display: none !important;
}

/* استایل نوتیفیکیشن اضافه به سبد خرید */
.article-section .edd-cart-ajax-alert {
    display: inline-block;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.article-section .edd-cart-added-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1.5rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    /* گردی کمتر */
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.article-section .edd-cart-added-alert svg {
    width: 18px;
    height: 18px;
    fill: #2e7d32;
}

/* انیمیشن لودینگ */
.article-section .edd-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: edd-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes edd-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.article-section .edd-add-to-cart.edd-loading .edd-loading {
    display: inline-block;
}

/* ===== ریسپانسیو برای موبایل ===== */
@media (max-width: 768px) {
    .article-section .edd_purchase_submit_wrapper {
        margin: 1.5rem auto;
    }

    .article-section .edd-add-to-cart {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-width: 200px;
        width: auto;
        max-width: 100%;
    }

    .article-section .edd-add-to-cart .edd-add-to-cart-label {
        font-size: 0.9rem;
    }

    .article-section .edd-cart-added-alert {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }
}

/* برای صفحه‌های خیلی کوچک */
@media (max-width: 480px) {
    .article-section .edd-add-to-cart {
        min-width: 180px;
        padding: 0.6rem 1rem !important;
        white-space: normal;
        /* اجازه شکستن خط */
        height: auto;
        line-height: 1.4;
    }

    .article-section .edd-add-to-cart .edd-add-to-cart-label {
        white-space: normal;
    }
}

/* ===== حالت RTL (راست‌چین) ===== */
.article-section .edd_purchase_submit_wrapper {
    direction: rtl;
}

.article-section .edd-add-to-cart .edd-loading {
    margin-left: 8px;
    margin-right: 0;
}

/* ===== افکت ساده برای هاور (اختیاری) ===== */
.article-section .edd-add-to-cart {
    position: relative;
    overflow: hidden;
}

.article-section .edd-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.article-section .edd-add-to-cart:hover::before {
    left: 100%;
}

/* ===== استایل برای حالت‌های مختلف دکمه ===== */
.article-section .edd-add-to-cart[data-price="0"] .edd-add-to-cart-label::before {
    content: '🎁 ';
    font-size: 1.1rem;
}

/* دکمه غیرفعال */
.article-section .edd-add-to-cart.disabled,
.article-section .edd-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.3);
}

/* ===== فاصله‌گذاری از متن‌های اطراف ===== */
.article-section .edd_purchase_submit_wrapper {
    clear: both;
}

.article-section .edd_purchase_submit_wrapper+* {
    margin-top: 2rem;
}

#edd_purchase_form input::placeholder,
#edd_purchase_form textarea::placeholder,
#edd-discount::placeholder,
#edd-email::placeholder,
#edd-first::placeholder,
#edd-last::placeholder {
    font-family: 'Vazirmatn' !important;
    font-size: 14px;
    font-weight: normal;
}

#edd_checkout_form_wrap input.edd-input,
#edd_checkout_form_wrap select.edd-select,
#edd_checkout_form_wrap textarea.edd-input {

    font-family: 'Vazirmatn' !important;
    font-size: 14px !important;

}

#edd-purchase-button,
.edd-submit,
[type=submit].edd-submit {
    font-size: 14px !important;

    font-family: 'Vazirmatn' !important;
}
.product-item .edd-submit.button.green ,.product-card .edd-submit.button.green {
    padding: 12px 10px;
    width: 100%;
}


/* پایان کدهای ایزی دیجیتال */
/* single-product-style.css */
/* ============================================
   استایل مخصوص صفحه تک محصول
   ============================================ */

/* ساختار اصلی صفحه */
.single-product-page {
    padding-top: 30px;
}

.single-product-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ============================================
   متا اطلاعات محصول
   ============================================ */
.single-product-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-text);
    font-size: 14px;
}

.product-meta a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.product-meta a:hover {
    color: var(--dark-bg);
}

.product-meta i {
    font-size: 14px;
}

.meta-product-type {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316 !important;
    padding: 5px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.single-product-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.single-product-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.single-product-image {
    margin: 25px 0;
}

.single-product-image .image-placeholder {
    height: 350px;
    border-radius: var(--border-radius);
}

/* ============================================
   باکس توضیح مختصر اول
   ============================================ */
.info-box-simple {
    background-color: #e8f4fd;
    border-right: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
}

.info-box-simple .info-box-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-box-simple i {
    font-size: 28px;
    color: var(--primary-color);
}

.info-box-simple p {
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================
   دو باکس کنار هم
   ============================================ */
.product-boxes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.product-specs-box,
.purchase-reminder-box {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: fit-content;
}

.box-title {
    background-color: var(--light-bg);
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

/* باکس مشخصات محصول */
.specs-list {
    padding: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.spec-item:last-of-type {
    border-bottom: none;
}

.spec-label {
    font-size: 15px;
    color: var(--light-text);
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.price-item .spec-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-item .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #f97316;
}

.price-item .old-price {
    font-size: 14px;
    color: var(--light-text);
    text-decoration: line-through;
}

.buy-item {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.btn-block {
    width: 100%;
    padding: 12px !important;
    font-size: 16px !important;
}

/* باکس قبل از خرید */
.reminder-content {
    padding: 20px;
}

.reminder-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 15px;
}

.reminder-content p:last-child {
    margin-bottom: 0;
}

.thank-message {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 16px !important;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   توضیحات کامل محصول
   ============================================ */
.product-full-description {
    margin: 40px 0;
    padding: 25px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.product-full-description h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.product-full-description p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-full-description ul {
    padding-right: 20px;
    margin-bottom: 15px;
}

.product-full-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ============================================
   سایدبار
   ============================================ */
.single-product-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-title {
    background-color: var(--light-bg);
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-specs {
    padding: 20px;
}

.sidebar-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.sidebar-spec-item:last-of-type {
    border-bottom: none;
}

.sidebar-spec-item .spec-label {
    font-size: 14px;
    color: var(--light-text);
}

.sidebar-spec-item .spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.sidebar-spec-item.price-item .spec-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-spec-item.price-item .current-price {
    font-size: 16px;
    font-weight: 700;
    color: #f97316;
}

.sidebar-spec-item.price-item .old-price {
    font-size: 12px;
    color: var(--light-text);
    text-decoration: line-through;
}

.sidebar-spec-item.buy-item {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

/* ============================================
   محصولات پیشنهادی
   ============================================ */
.suggested-products {
    padding: 60px 0;
    background-color: var(--light-bg);
    margin-top: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.suggested-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ============================================
   کارت محصول
   ============================================ */
.suggested-products .product-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.suggested-products .product-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 180px;
    overflow: hidden;
    background-color: var(--light-bg);
    flex-shrink: 0;
}

.product-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.product-image .image-placeholder i {
    font-size: 50px;
    margin-bottom: 10px;
}

.product-image .image-placeholder span {
    font-size: 14px;
}

.product-card .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggested-products .product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
}

.product-excerpt {
    color: var(--light-text);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 55px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: auto;
}

.product-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old-price {
    font-size: 14px;
    color: var(--light-text);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-sales {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 12px;
}

.product-sales i {
    margin-left: 4px;
    color: var(--secondary-color);
}

.suggested-products .product-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.suggested-products .product-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1;
    text-align: center;
}

/* ============================================
   دکمه‌ها
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-cart {
    background-color: #f97316;
    color: white;
}
.btn-cartt {
    background-color: #f97316;
    color: white;
}
.btn-cart:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
}
.btn-cartt:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .single-product-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-product-sidebar {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-product-title {
        font-size: 26px;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-left,
    .meta-right {
        width: 100%;
    }

    .single-product-image .image-placeholder {
        height: 250px;
    }

    .info-box-simple .info-box-content {
        flex-direction: column;
        text-align: center;
    }

    .product-boxes-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spec-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .single-product-main {
        padding: 0;
    }

    .single-product-image .image-placeholder {
        height: 200px;
    }

    .single-product-image .image-placeholder i {
        font-size: 60px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    .sidebar-spec-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   بنر تبلیغاتی عریض
   ============================================ */
.promo-banner {
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    margin: 50px 0 0;
}

.banner-wrapper {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.banner-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.banner-link {
    display: block;
    text-decoration: none;
    padding: 40px 30px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white;
}

.banner-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #333;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.banner-icon {
    font-size: 80px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   دکمه خرید سبز جدید
   ============================================ */
.btn-buy {
    background-color: #10b981 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-buy:hover {
    background-color: #059669 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.btn-buy i {
    margin-left: 5px;
}

/* ============================================
   باکس‌های آیکون‌دار
   ============================================ */
.box-title i {
    margin-left: 8px;
    color: var(--primary-color);
}

.purchase-reminder-box .box-title i {
    color: #f97316;
}

.spec-item i,
.sidebar-spec-item i {
    margin-left: 5px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.reminder-content p i {
    margin-left: 8px;
    color: #10b981;
    font-size: 18px;
}

.thank-message i {
    color: #ef4444 !important;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   ریسپانسیو بنر
   ============================================ */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-text h3 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .banner-icon {
        font-size: 60px;
    }

    .promo-banner {
        padding: 30px 0;
    }

    .banner-link {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .banner-text h3 {
        font-size: 20px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .banner-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-icon {
        font-size: 50px;
    }
}

/* comments-style.css *********************** */
/* استایل مخصوص سیستم نظرات */
.comments-section {
    background-color: var(--light-bg);
    padding: 50px 0;
    margin-top: 50px;
    border-top: 2px solid var(--border-color);
}

.comments-wrapper {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.comments-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.comments-count {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 18px;
}

/* فرم ارسال نظر */
.comment-respond {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.comment-reply-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 22px;
}

.comment-form-fields {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.form-group label::after {
    content: " *";
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
}

.chars-counter {
    text-align: left;
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 13px;
    color: var(--light-text);
    line-height: 1.5;
}

.checkbox-group label::after {
    content: "";
}

.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.comment-notes {
    font-size: 13px;
    color: var(--light-text);
    max-width: 300px;
}

/* لیست نظرات */
.comments-list {
    margin-bottom: 30px;
}

.comment {
    margin-bottom: 30px;
}

.comment-body {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comment-body:hover {
    border-color: var(--primary-color);
}

.comment.parent {
    margin-bottom: 40px;
}

.comment.child {
    margin-right: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.comment-children {
    margin-right: 40px;
    border-right: 2px solid var(--border-color);
    padding-right: 20px;
}

.comment-author {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-author-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.comment-author-name strong {
    font-size: 16px;
    color: var(--text-color);
}

.comment-author-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--light-text);
}

.comment-metadata time {
    direction: ltr;
    display: inline-block;
}

.comment-time {
    background-color: var(--bg-color);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.comment-content {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
}

.comment-content p {
    margin: 0;
}

.comment-actions {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.comment-actions button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
}

.comment-actions button:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.comment-like:hover {
    color: var(--accent-color);
}

.comment-reply:hover {
    color: var(--primary-color);
}

.comment-report:hover {
    color: var(--accent-color);
}

/* صفحه‌بندی نظرات */
.comments-pagination {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comments-pagination .pagination {
    justify-content: center;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .comments-wrapper {
        padding: 20px;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .comment.child {
        margin-right: 20px;
    }

    .comment-children {
        margin-right: 20px;
        padding-right: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-author-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* *********** archive-style.css ********* */
/* استایل مخصوص صفحه آرشیو */
.archive-page {
    padding-top: 5px;
}

/* هدر صفحه آرشیو */
.archive-header {
    background-color: var(--light-bg);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.archive-header-content {
    text-align: center;
}


.archive-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    animation: fadeInDown 0.8s ease;
}

.archive-description {
    color: var(--light-text);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.archive-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    font-size: 15px;
    background-color: var(--bg-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.meta-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.meta-item i {
    font-size: 18px;
}

/* فیلترها و مرتب‌سازی */
.archive-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.1);
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* محتوای آرشیو */
.archive-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.archive-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.archive-grid.list-view {
    grid-template-columns: 1fr;
}

.archive-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* حالت لیستی */
.archive-grid.list-view .archive-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 200px;
}

.archive-grid.list-view .archive-item-image {
    max-height: 100%;
}

.archive-grid.list-view .archive-item-content {
    padding: 25px;
}

.archive-item-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.archive-item-image .image-placeholder {
    height: 100%;
    border-radius: 0;
    transition: var(--transition);
}

.archive-item:hover .archive-item-image .image-placeholder {
    transform: scale(1.05);
}

.image-placeholder.small {
    height: 60px;
    width: 60px;
    font-size: 24px;
}

.image-placeholder.small i {
    font-size: 24px;
    margin-bottom: 5px;
}

.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-item .item-badge {
    background-color: var(--secondary-color);
}

.free-item .item-badge {
    background-color: var(--cart-color);
}

.item-views {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

.item-views i {
    margin-left: 5px;
}

.item-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--cart-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.archive-item-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--views-bg);
    color: white;
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.item-discount {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.archive-item-content {
    padding: 20px;
}

.item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--light-text);
    flex-wrap: wrap;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-meta i {
    font-size: 14px;
}

.item-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.item-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.item-title a:hover {
    color: var(--primary-color);
}

.item-excerpt {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-grid.list-view .item-excerpt {
    -webkit-line-clamp: 2;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.item-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    font-size: 14px;
}

.item-read-more:hover {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

.item-read-more i {
    margin-right: 5px;
    transition: var(--transition);
}

.item-read-more:hover i {
    transform: translateX(-5px);
}

.item-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tagss {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--light-bg);
    color: var(--text-color);
    font-size: 12px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.tagss:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.item-sales {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-text);
    font-size: 13px;
}

.item-sales i {
    color: var(--secondary-color);
}

/* صفحه‌بندی */
.archive-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.page-item .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item a {
    text-decoration: none;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    transform: none;
    border-color: var(--border-color);
    color: var(--text-color);
}

.page-item.prev .page-link,
.page-item.next .page-link {
    padding: 0 15px;
    gap: 8px;
}

.page-item.dots .page-link {
    border: none;
    background: none;
    cursor: default;
}

.page-item.dots .page-link:hover {
    transform: none;
    color: var(--text-color);
}

.pagination-info {
    color: var(--light-text);
    font-size: 14px;
}

/* سایدبار */
.archive-sidebar {
    background-color: var(--light-bg);
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.archive-sidebar .sidebar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.archive-sidebar .sidebar-widget {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-widget .archive-widget-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.category-list a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.category-list i {
    color: var(--light-text);
    margin-left: 10px;
    font-size: 14px;
}

.count {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tagss {
    font-size: 13px;
    padding: 6px 12px;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
}

.recent-post-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 12px;
    color: var(--light-text);
}

/* انیمیشن‌ها */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسپانسیو */
@media (max-width: 992px) {
    .archive-item-image img{
width:100%;
    }
    .archive-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .archive-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        max-width: 200px;
    }

    .view-toggle {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 28px;
    }

    .archive-description {
        font-size: 16px;
    }

    .archive-meta {
        gap: 15px;
    }

    .meta-item {
        padding: 6px 12px;
        font-size: 14px;
    }

    .archive-grid.grid-view,
    .archive-grid.list-view {
        grid-template-columns: 1fr;
    }

    .archive-grid.list-view .archive-item {
        grid-template-columns: 1fr;
    }

    .archive-pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pagination-info {
        order: -1;
        margin-bottom: 15px;
    }

    .sidebar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archive-header {
        padding: 30px 0;
    }

    .archive-title {
        font-size: 24px;
    }

    .archive-description {
        font-size: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group label {
        margin-bottom: 5px;
    }

    .filter-select {
        max-width: 100%;
        width: 100%;
    }

    .item-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .item-actions .btn {
        flex: 1;
        text-align: center;
    }
}

.error-page-404 {
    text-align: center;
    margin: 0 0 40px 0;
}

.error-page-404 i {
    font-size: 80px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-page-404 h1 {
    font-size: 120px;
    margin: 0;
    color: #333;
    line-height: 1;
}

.error-page-404 h2 {
    font-size: 32px;
    color: #555;
    margin: 20px 0;
}

.error-page-404 p {
    font-size: 18px;
    color: #777;
    max-width: 600px;
    margin: 0 auto 30px;
}

.error-page-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-page-btn {
    padding: 10px 17px 0;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.error-page-btn i {
    font-size: 16px;
    margin-left: 8px;
    color: inherit;
}

.error-page-btn-primary {
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.error-page-btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.error-page-btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.error-page-btn-outline:hover {
    background: #007bff;
    color: #fff;
}

@media (max-width: 768px) {
    .error-page-404 {
        padding: 40px 15px;
    }

    .error-page-404 h1 {
        font-size: 80px;
    }

    .error-page-404 h2 {
        font-size: 24px;
    }

    .error-page-404 p {
        font-size: 16px;
    }

    .error-page-actions {
        flex-direction: column;
        gap: 10px;
    }

    .error-page-btn {
        width: 100%;
        text-align: center;
    }
}

/* by box sticky */
          .sticky-mobile-smart {
              display: none;
              position: fixed;
              bottom: 0;
              left: 0;
              right: 0;
              z-index: 999999999;
              direction: rtl;
              pointer-events: none;
              transition: transform 0.3s ease;
          }

          /* کانتینر اصلی با شفافیت */
          .sticky-mobile-container {
              background: rgba(255, 255, 255, 0.7);
              backdrop-filter: blur(12px);
              -webkit-backdrop-filter: blur(12px);
              border-top: 1px solid rgba(255, 255, 255, 0.6);
              padding: 10px 15px;
              display: flex;
              align-items: center  !important;
              justify-content: space-between;
              box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
              pointer-events: auto;
              width: 100%;
              box-sizing: border-box;
          }

          /* بخش قیمت */
          .sticky-mobile-price {
              display: flex;
              align-items: baseline;
              gap: 4px;
              background: rgba(0, 0, 0, 0.02);
              padding: 6px 10px;
              border-radius: 10px;
          }
           .sticky-mobile-buy {
              
              align-items: baseline;
             
              
          }
          .single-download .sticky-mobile-buy .edd_download_purchase_form {
     margin-bottom: 0 !important; 
}

          .sticky-mobile-amount {
              font-size: 16px;
              font-weight: 800;
              color: #1e293b;
              letter-spacing: -0.3px;
          }

          .sticky-mobile-currency {
              font-size: 11px;
              color: #64748b;
              font-weight: 400;
          }

          /* دکمه خرید */
          .sticky-mobile-btn {
              background: #0f172a;
              border: none;
              padding: 10px 24px;
              border-radius: 40px;
              color: white;
              font-size: 14px;
              font-weight: 600;
              display: flex;
              align-items: center;
              gap: 6px;
              cursor: pointer;
              box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
              transition: all 0.2s ease;
              border: 1px solid rgba(255, 255, 255, 0.2);
          }

          .sticky-mobile-btn:active {
              transform: scale(0.96);
              background: #1e293b;
              box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
          }

          /* نمایش و مخفی شدن */
          .sticky-mobile-smart.show {
              transform: translateY(0);
          }

          .sticky-mobile-smart.hide {
              transform: translateY(100%);
          }

          /* فقط موبایل */
          @media (max-width: 768px) {
              .sticky-mobile-smart {
                  display: block;
              }

              /* حذف padding اضافی از body */
              body {
                  padding-bottom: 0 !important;
                  margin-bottom: 0 !important;
              }

              /* اطمینان از عدم وجود فضای سفید */
              .sticky-mobile-smart {
                  margin: 0;
                  padding: 0;
              }

              .sticky-mobile-container {
                  margin: 0;
              }
          }

          /* برای دسکتاپ مخفی */
          @media (min-width: 769px) {
              .sticky-mobile-smart {
                  display: none !important;
              }
          }
/* EDD Tables Style 1404-11-30 */
/* استایل اختصاصی جداول EDD با تفکیک ستون‌ها */
table.edd-table,
table.edd_purchase_receipt,
table.edd_purchase_receipt_products {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: inherit;
    direction: rtl; /* برای زبان فارسی */
    text-align: right;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* استایل هدر و سلول‌های جدول با حاشیه عمودی */
table.edd-table th,
table.edd-table td,
table.edd_purchase_receipt th,
table.edd_purchase_receipt td,
table.edd_purchase_receipt_products th,
table.edd_purchase_receipt_products td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0; /* حاشیه برای همه طرف‌ها */
    vertical-align: middle;
}

/* حذف حاشیه تکراری برای ردیف‌های هدر */
table.edd-table thead th,
table.edd_purchase_receipt thead th,
table.edd_purchase_receipt_products thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #d0d0d0;
}

/* استایل ردیف‌های زوج با رنگ پس‌زمینه متفاوت */
table.edd-table tbody tr:nth-child(even) td,
table.edd_purchase_receipt tbody tr:nth-child(even) td,
table.edd_purchase_receipt_products tbody tr:nth-child(even) td {
    background-color: #fafafa;
}

/* استایل ردیف‌های فرد */
table.edd-table tbody tr:nth-child(odd) td,
table.edd_purchase_receipt tbody tr:nth-child(odd) td,
table.edd_purchase_receipt_products tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* استایل سلول‌های با وضعیت کامل شده */
table.edd-table .edd_receipt_payment_status.complete,
table.edd_purchase_receipt .edd_receipt_payment_status.complete,
table.edd_purchase_receipt_products .edd_receipt_payment_status.complete {
    color: #27ae60;
    font-weight: 500;
}

/* استایل سلول‌های حاوی متن قوی (strong) */
table.edd-table strong,
table.edd_purchase_receipt strong,
table.edd_purchase_receipt_products strong {
    font-weight: 600;
    color: #2c3e50;
}

/* استایل ردیف‌های تخفیف */
table.edd-table tr:has(td[colspan="2"]),
table.edd_purchase_receipt tr:has(td[colspan="2"]),
table.edd_purchase_receipt_products tr:has(td[colspan="2"]) {
    background-color: #f1f8ff;
    font-weight: 500;
}

/* استایل ردیف تخفیف با سلول‌های ترکیبی */
table.edd-table td[colspan="2"],
table.edd_purchase_receipt td[colspan="2"],
table.edd_purchase_receipt_products td[colspan="2"] {
    background-color: #f1f8ff;
    border-bottom: 2px solid #d0e0f0;
}

/* استایل سلول‌های تخفیف (ردیف‌های بعد از تخفیف) */
table.edd-table td[colspan="2"] ~ tr td:first-child,
table.edd_purchase_receipt td[colspan="2"] ~ tr td:first-child,
table.edd_purchase_receipt_products td[colspan="2"] ~ tr td:first-child {
    padding-right: 30px;
    font-style: italic;
    color: #e67e22;
}

/* استایل ردیف آخر (جمع کل) */
table.edd-table tbody tr:last-child td,
table.edd_purchase_receipt tbody tr:last-child td,
table.edd_purchase_receipt_products tbody tr:last-child td {
    border-bottom: none;
    font-weight: 600;
    background-color: #f8f9fa;
    border-top: 2px solid #d0d0d0;
}

/* استایل ریال (واحد پول) */
table.edd-table .edd_price,
table.edd_purchase_receipt .edd_price,
table.edd_purchase_receipt_products .edd_price {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #2c3e50;
}

/* استایل هاور روی ردیف‌ها */
table.edd-table tbody tr:hover td,
table.edd_purchase_receipt tbody tr:hover td,
table.edd_purchase_receipt_products tbody tr:hover td {
    background-color: #f0f7ff !important;
    transition: background-color 0.2s ease;
}

/* استایل ستون اول (برچسب‌ها) برای تاکید بیشتر */
table.edd-table td:first-child,
table.edd_purchase_receipt td:first-child,
table.edd_purchase_receipt_products td:first-child {
    font-weight: 500;
    color: #34495e;
    background-color: rgba(0,0,0,0.01);
    border-left: 2px solid #e0e0e0; /* خط عمودی پررنگ‌تر برای تفکیک ستون اول */
}

/* استایل ستون دوم (مقادیر) */
table.edd-table td:last-child,
table.edd_purchase_receipt td:last-child,
table.edd_purchase_receipt_products td:last-child {
    font-weight: 400;
    color: #2c3e50;
}

/* استایل برای ردیف‌های تخفیف - تنظیم حاشیه‌ها */
table.edd-table tr:has(td[colspan="2"]) td,
table.edd_purchase_receipt tr:has(td[colspan="2"]) td,
table.edd_purchase_receipt_products tr:has(td[colspan="2"]) td {
    border-bottom: 2px dashed #a0c0e0;
}

/* استایل سلول‌های خالی */
table.edd-table td:empty,
table.edd_purchase_receipt td:empty,
table.edd_purchase_receipt_products td:empty {
    background-color: #f5f5f5;
}
/* Refrences */
.ref-link {
    margin: 30px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-right: 4px solid var(--border-color);
    font-family: inherit;
}

.ref-link header {
    font-size: 18px;
    font-weight: 600;
    color:  var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-link header i {
    color: #007bff;
    font-size: 20px;
}

.link-lists {
    line-height: 1.8;
    word-break: break-word;
}

.link-lists a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

.link-lists a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* استایل برای لیست‌ها (اگه داخلش ul/ol باشه) */
.link-lists ul,
.link-lists ol {
    margin: 0;
    padding-right: 20px;
}

.link-lists li {
    margin-bottom: 8px;
    color: #555;
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .ref-link {
        padding: 15px;
        margin: 20px 0;
    }
    
    .ref-link header {
        font-size: 16px;
    }
}
.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
    font-family: 'vazirmatn';
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.article-section th {
    background-color: #f8f8f8;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #ddd;
    color: #222;
    letter-spacing: 0.03em;
    font-size: 0.9em;
    text-transform: uppercase;
}

.article-section td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.article-section tr:last-child td {
    border-bottom: none;
}

.article-section tr:hover td {
    background-color: #fafafa;
}

/* استایل برای جدول‌های کوچک (responsive) */
.article-section table {
    overflow-x: auto;
    
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 600px) {
    .article-section table {
        font-size: 0.85em;
    }
    
    .article-section th,
    .article-section td {
        padding: 8px 12px;
    }
}

/* استایل برای جداول بدون حاشیه (اختیاری) */
.article-section table.borderless,
.article-section .borderless th,
.article-section .borderless td {
    border: none;
    background: none;
}


.article-section tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.nemad img {max-width:120px ; margin: 5px;}
.nemad{display: flex;
    flex-wrap: wrap;          
    justify-content: center;  
    align-items: center;  
    gap: 20px;  }
/* top banner adv bing */
.top-banner {
  background-color: var(--bg-color);
    padding: 10px 0 5px 0;
    box-shadow: var(--shadow-btm);
   
    margin:-25px 0 15px 0;
}
.top-banner img {
    max-width: 100%; height:auto;
        border-radius: var(--border-radius);
            transition: var(--transition);
}
/* End top banner */
.adv-dl-box img {max-width: 100%; height: auto; border-radius: var(--border-radius);}
.random-banner {position: relative;width:100%; max-width: 100%;  margin: 20px auto 10px auto;  overflow: hidden; display: block;}
.random-banner img {border-radius : 5px; transition: var(--transition); ; margin : auto auto;}
.random-banner img:hover {border-radius : 10px; opacity: 0.8; transition: var(--transition);}
.random-banner-close {position: absolute; bottom: 1px; left: 1px; background: rgba(28,29,29,0.8); color: #fff; padding: 4px 6px; cursor: pointer; font-size: 11px; border-radius: 5px; z-index: 10;}
.random-banner-a {width: 100%; height: auto; display: block}
/* Bing code sticky banner top 150 px after */
.sticky-call-banner {
                position: fixed;
                top: 58px;
                z-index: 999999999999999;
                text-align: center;
                padding: 5px 0;
                background: transparent;
                opacity: 0;
                transform: translateY(-20px);
                transition: all 0.4s ease-in-out;
                width:100%;
            }
.sticky-call-banner.visible {
                opacity: 1;
                transform: translateY(0);
            }
.sticky-call-banner a {
                display: inline-block;
            }
.sticky-call-banner img {
                max-width: 100%;
                height: auto;
                display: block;
                margin: 0 auto;
            }
            
.close-banner-btn {
                position: absolute;
                bottom: -2px;
                left: 5px;
                background: rgba(0,0,0,0.6);
                color: white;
                border: none;
                font-size: 11px;
                cursor: pointer;
                padding: 2px 10px;
                z-index: 9999999999999999;
                border-radius:5px;
                font-family: inherit;
            }
            
.sticky-call-banner.hidden {
                display: none;
            }
.old-price {color: #EF6C00;
    text-decoration: line-through;}
/* mobile gold banner btm */
.gold-banner {
            width: 100%;
            height: auto;

            /* ۱. رنگ پس‌زمینه وسط بنر */
            background-color: #feebc6; 

            /* ۲. قرار دادن دو عکس در دو طرف به صورت همزمان */
            background-image: url('img/right-blob.png'), url('img/left-blob.png');
            background-position: right center, left center;
            background-repeat: no-repeat, no-repeat;
            background-size: contain, contain; /* یا اندازه ثابت مثلا 150px */

            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 20px;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
	    flex-direction:row-reverse;
font-family: 'Vazirmatn', 'Vazir', 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
pointer-events: auto !important;
        }

        /* محتوا حالا به راحتی می‌تواند روی پس‌زمینه قرار بگیرد */
        .right-side {
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 2;
        }

        .close-xx { cursor: pointer; font-size: 24px; color: #444;
    cursor: pointer;
    transition: opacity 0.2s; 
}

.close-xx:hover {
    opacity: 0.6; 

 }

        .gold-label {
              background: #fff;
    color: #D4A017;
    border: 1px solid #D4A017;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 5px;
        }
        
          .gold-label-2 {
            background: #befbef;
    color: #00b894;
    border: 1px solid #00b894;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 5px;
        }

        .main-message {
            font-size: 12px;
            font-weight: bold;
            color: #1a1a1a;
            white-space: nowrap;
        }

        .timer-unit {
            background: #F9E6B3;
            padding: 10px 15px;
            border-radius: 35px;
            font-size:14px;
            font-weight: 700;
            z-index: 2;
        }

        /* برای موبایل که محتوا روی هم نرود */
       