/* ---------- Reset & Root ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== حذف خط زیر لینک در کل سایت ========== */
a {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* حذف خط زیر لینک در فوتر */
footer a {
    text-decoration: none !important;
}

/* حذف خط زیر لینک در سایدبار */
.sidebar a {
    text-decoration: none !important;
}

/* حذف خط زیر لینک در مقالات */
.article-card a {
    text-decoration: none !important;
}

/* حذف خط زیر لینک در هدر */
.topbar a {
    text-decoration: none !important;
}



/* کلاس لینک با خط متحرک */
.link-underline {
    position: relative;
    display: inline-block;
    text-decoration: none !important;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary, #2563eb);
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* Swup Transition */
.transition-fade {
  transition: 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

html.is-animating .transition-fade {
  opacity: 0;
  transform: translateY(15px);
}

:root {
  --bg-primary: #eef1f8;
  --bg-gradient-start: #f5f7fc;
  --bg-gradient-end: #eef1f8;
  --color-white: #ffffff;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --transition: all 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
}

body {
  font-family: 'yekanbakh', iransans, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.5;
}

.container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== HEADER ========== */
/* ========== HEADER ========== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 25px;
}

/* برند */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand__link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo-img {
    width: 130px;
    height: auto;
    display: block;
}

/* جستجو */
.search__box {
    max-width: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    position: relative;
}

.search__box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search__icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.2s;
}

.search__box:focus-within .search__icon {
    color: #2563eb;
}

.search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
}

.search__input::placeholder {
    color: #94a3b8;
}

.search__submit {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.search__submit:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.search__submit i {
    font-size: 16px;
}
/* کاربر */
.user {
    flex-shrink: 0;
}

.user__pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    padding: 5px 12px 5px 16px;
    border-radius: 40px;
    border: 1px solid var(--color-border);
}

.user__avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

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

.user__info b {
    font-size: 0.8rem;
    display: block;
    line-height: 1.3;
}

.user__info span {
    font-size: 0.65rem;
    color: var(--color-muted);
    display: block;
}

/* ========== موبایل ========== */
@media (max-width: 768px) {
    .topbar__inner {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .search {
        width: 100%;
        max-width: 100%;
    }

    .user {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .user__pill {
        justify-content: center;
        width: auto;
    }

    .brand__logo-img {
        width: 110px;
    }
}
/* ========== سبد خرید هدر ========== */
.cart-box {
    position: relative;
    margin-left: 10px;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}

.cart-icon:hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #2563eb;
}

.cart-icon i {
    font-size: 22px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* دراپ‌داون سبد خرید */
.cart-dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.cart-box:hover .cart-dropdown,
.cart-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eef2f8;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.cart-dropdown-header i {
    font-size: 18px;
    color: #2563eb;
}

.cart-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
}

/* آیتم سبد خرید */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
}

.cart-item-title:hover {
    color: #2563eb;
}

.cart-item-price {
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
}

.cart-item-quantity {
    font-size: 11px;
    color: #64748b;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    color: #ef4444;
}

/* سبد خرید خالی */
.empty-cart {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.cart-dropdown-footer {
    padding: 12px 15px;
    border-top: 1px solid #eef2f8;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1e293b;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #2563eb;
    color: white;
    padding: 10px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.cart-checkout-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .cart-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .cart-box:hover .cart-dropdown {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========== LAYOUT ========== */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin: 32px 0 48px;
  align-items: start;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: sticky;
  top: 92px;
  align-self: auto;
}

.sidebar__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 24px 18px;
  box-shadow: var(--shadow-md);
  height:auto;
  min-height: calc(100vh - 140px);
}

.sidebar__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 2px solid #f1f5f9;
}

.sidebar__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #eef3ff, #e0e7ff);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
}

.sidebar__title h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.sidebar__title p {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.sidebar__menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fafcff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.sidebar__item:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateX(-4px);
}

.sidebar__item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar__item-icon {
  width: 34px;
  height: 34px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__item-icon i {
  font-size: 18px;
  color: var(--color-primary);
}

.sidebar__item-text {
  font-weight: 700;
  font-size: 0.85rem;
}

.sidebar__dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.sidebar__lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.85rem;
}



/* اضافه کردن به core.css */
.sidebar__item-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sidebar__item-icon i {
    font-size: 20px;
}






/* ========== منوی موبایل (طراحی حرفه‌ای) ========== */
/* ========== منوی موبایل - طراحی حرفه‌ای ========== */

/* منوی پایین */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0 18px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

/* آیتم منو */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 40px;
    transition: all 0.25s ease;
    color: #94a3b8;
}

/* هاور - بک‌گراند */
.mobile-nav-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* کلیک */
.mobile-nav-item:active {
    transform: scale(0.96);
    background: #e2e8f0;
}

/* آیتم فعال */
.mobile-nav-item.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* آیکون */
.mobile-nav-item i {
    font-size: 22px;
    transition: all 0.2s;
}

/* متن */
.mobile-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

/* ========== پنل دسته‌ها ========== */
.mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 28px 28px 0 0;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
}

.mobile-panel.active {
    transform: translateY(0);
}

/* هدر پنل */
.mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-panel-header h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.mobile-panel-header h4 i {
    color: #2563eb;
    font-size: 22px;
}

.mobile-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-panel-close:active {
    background: #e2e8f0;
}

.mobile-panel-close i {
    font-size: 18px;
    color: #64748b;
}

/* جستجو */
.mobile-panel-search {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.mobile-panel-search i {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.mobile-panel-search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    background: #f8fafc;
}

.mobile-panel-search input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

/* لیست دسته‌ها */
.mobile-categories-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 20px;
}

.mobile-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: #334155;
}

.mobile-cat-link i,
.mobile-cat-link img {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.cat-count {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
}

/* دکمه زیرمجموعه */
.cat-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-toggle-btn:active {
    background: #f1f5f9;
}

.cat-toggle-btn i {
    font-size: 16px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.cat-toggle-btn.open i {
    transform: rotate(90deg);
    color: #2563eb;
}

/* زیرمجموعه */
.mobile-cat-children {
    display: none;
    background: #fafcff;
    margin-right: 35px;
    border-right: 2px solid #eef2f8;
}

.mobile-cat-children.show {
    display: block;
}

.mobile-cat-children .mobile-cat-item {
    padding: 10px 20px;
}

/* پنل جستجو *//* ========== فرم جستجو ========== */

.mobile-search-form {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    padding: 14px 20px;
    background: #fff;
    transition: all 0.25s ease;
}

.mobile-search-input:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mobile-search-input i {
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.2s;
}

.mobile-search-input:focus-within i {
    color: #2563eb;
}

.mobile-search-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
}

.mobile-search-input input::placeholder {
    color: #cbd5e1;
}

.mobile-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-search-submit i {
    font-size: 18px;
    transition: transform 0.2s;
}

.mobile-search-submit:active {
    transform: scale(0.97);
    background: #1d4ed8;
}

.mobile-search-submit:active i {
    transform: translateX(-3px);
}

/* جستجوی سریع */
.search-suggestions {
    padding: 0 20px 20px;
}

.suggestions-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestions-list a {
    background: #f1f5f9;
    color: #334155;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.suggestions-list a:active {
    background: #2563eb;
    color: white;
}


/* ========== صفحه جستجو ========== */

/* عنوان جستجو */
.search-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f8;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #1e293b;
}

.search-title i {
    color: #2563eb;
    font-size: 28px;
}

.search-count {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
}

/* نتایج جستجو - گرید سه تایی */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* کارت جستجو */
.search-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.search-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* تصویر کارت */
.search-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.search-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search-card:hover .search-card-img img {
    transform: scale(1.05);
}

/* محتوای کارت */
.search-card-content {
    padding: 18px;
}

.search-card-content h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card:hover h3 {
    color: #2563eb;
}

.search-card-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* متا کارت */
.search-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.search-card-meta i {
    font-size: 12px;
    margin-left: 4px;
}

.read-more {
    color: #2563eb;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.search-card:hover .read-more {
    gap: 8px;
}

/* پیجینیشن */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    color: #2563eb;
}

.pagination .current {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.pagination .dots {
    background: transparent;
    border: none;
}

.pagination .prev,
.pagination .next {
    font-size: 0;
    min-width: 40px;
}

.pagination .prev i,
.pagination .next i {
    font-size: 18px;
    margin: 0;
}

/* بدون نتیجه */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #eef2f8;
}

.no-results i {
    font-size: 64px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: block;
}

.no-results p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.back-home:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ریسپانسیو */
@media (max-width: 1000px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.2rem;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .search-card-img {
        height: 160px;
    }

    .pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
}






/* اوورلی */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.mobile-overlay.active {
    display: block;
}

/* موبایل */
@media (max-width: 1000px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 75px;
    }

    .sidebar {
        display: none !important;
    }
}

@media (min-width: 1001px) {
    .mobile-bottom-nav,
    .mobile-panel,
    .mobile-overlay {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}



/* ========== HERO با Vanta.js (طرح مشکی تور) ========== */
.hero {
  border-radius: var(--radius-lg);
     padding: 48px 40px;
     display: grid;
     grid-template-columns: 0.8fr 1fr;  /* کره در راست (اول)، متن در چپ (دوم) */
     gap: 40px;
     margin-bottom: 40px;
     position: relative;
     overflow: hidden;
     min-height: 450px;
}

/* Vanta container - پس‌زمینه سه‌بعدی با طرح مشکی تور */
#vanta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: var(--radius-lg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__title {
	font-size: 2.80rem;
	font-weight: 900;
	line-height: 1.4;
	margin-bottom: 18px;
	color: white;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	font-family: peyda;
}
.hero__desc {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 32px;
	line-height: 1.8;
	font-size: 16px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: iransans;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero__badge {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  font-weight: 900;
  color: #1e3a8a;
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.3);
  border: 8px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}







/* ========== SECTION HEADER ========== */
.section {
  margin-top: 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title h2 {
	font-size: 32px;
	font-weight: 900;
	margin-bottom: 8px;
	background: #273c6a;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: peyda;
}

.section-title p {
  color: var(--color-muted);
  font-size: 14px;
}

.more-btn {
  background: #f1f5f9;
  color: #1e293b;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.more-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* ========== VIDEOS ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  height: 260px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.video-card:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  transition: var(--transition);
}

.video-card:hover .play-btn {
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== FEATURE MODERN ========== */
.feature-modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 32px;
  padding: 48px;
  margin: 50px 0;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.feature-modern__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.feature-modern__image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.feature-modern__image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s;
}

.feature-modern__image:hover img {
  transform: scale(1.02);
}

.feature-modern__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-modern__title {
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1.3;
	margin-bottom: 16px;
  font-family: peyda;

}

.feature-modern__desc {
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.feature-modern__list {
  list-style: none;
  margin-bottom: 32px;
}

.feature-modern__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.feature-modern__list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: #dbeafe;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 12px;
}

.btn--gradient {
	width: 100% !important;
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: white;
	border: none;
	padding: 14px 36px;
	border-radius: 44px;
	font-weight: 800;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
	font-family: iransans;
	display: block;
	text-align: center;
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

/* ========== ARTICLES ========== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--color-white);
  border-radius: 28px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
}

.article-card__img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .article-card__img {
}

.article-card__content {
  padding: 24px;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.article-card__tag {
  background: #eef2ff;
  color: var(--color-primary);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
}

.article-card__date {
  color: var(--color-muted);
  font-size: 12px;
}

.article-card__title {
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 900;
}

.article-card__excerpt {
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 20px;
}

.article-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-card__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.article-card__author span {
  font-size: 13px;
  font-weight: 700;
}

.article-card__link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: var(--color-primary);
}

.article-card:hover .article-card__link {
  background: var(--color-primary);
  color: white;
}

.article-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 11px;
    color: var(--color-muted);
}

.article-card__reading-time,
.article-card__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card__link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card__link-wrapper:hover .article-card__title {
    color: var(--color-primary);
    transition: color 0.3s ease;
}
/* ========== PLUGINS ========== */
/* ========== PLUGINS ========== */

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.plugin-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}

.plugin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.plugin-badge {
	position: absolute;
	top: -8px;
	right: 16px;
	background: #4675ff;
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	padding: 2px 10px;
	border-radius: 30px;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
	z-index: 1;
}

.plugin-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
}


.plugin-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 800;
}

.plugin-card p {
  color: var(--color-muted);
  font-size: 11px;
}

.plugin-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plugin-icon i {
    font-size: 32px;
    color: white;
}

/* رنگ‌های مختلف برای دسته‌ها */
.c1 { background: linear-gradient(145deg, #06b6d4, #0891b2); }
.c2 { background: linear-gradient(145deg, #1e293b, #0f172a); }
.c3 { background: linear-gradient(145deg, #f59e0b, #ea580c); }
.c4 { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.c5 { background: linear-gradient(145deg, #ec4899, #be185d); }
.c6 { background: linear-gradient(145deg, #ef4444, #b91c1c); }
/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-card:hover {

}

.gallery-card__img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.03);
}

.gallery-card__content {
  padding: 18px;
  text-align: center;
}
.gallery-card__content h3 {
	font-size: 1.1rem;
	margin-bottom: 6px;
	font-weight: 800;
	color: #16527d;
}

.gallery-card__content p {
  color: var(--color-muted);
  font-size: 12px;
}

/* ========== single ========== */




.content{
  background: #fff;
    padding: 25px;
    border-radius: 10px;
}


/* هدر مقاله */
.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-category {
    margin-bottom: 15px;
}

.post-category-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--color-text);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-muted);
}

.post-meta-item i {
    font-size: 16px;
}

/* تصویر شاخص */
.post-thumbnail {
    margin: 30px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content {
	font-size: 19px;
	line-height: 1.9;
  text-align: justify;
	color: var(--color-text);
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    font-weight: 800;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 12px;
    font-weight: 700;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-right: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

/* بادج‌ها */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tags-title {
    font-weight: 700;
    color: var(--color-text);
}

.post-tag {
    background: #f1f5f9;
    color: var(--color-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.post-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* باکس نویسنده */
.post-author {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.author-avatar {
    flex-shrink: 0;
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.author-bio {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* پست‌های مرتبط */
.related-posts {
    margin: 40px 0;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 15px 8px;
    line-height: 1.4;
}

.related-read-more {
    display: block;
    padding: 0 15px 15px;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
}

/* ========== فهرست مطالب (Table of Contents) - استایل مدرن ========== */
.table-of-contents {
    background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
    border-radius: 24px;
    padding: 0;
    margin: 40px 0;
    border: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), #8b5cf6, #ec4899);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
    padding: 18px 24px;
    background: rgba(37, 99, 235, 0.03);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.toc-header i {
    font-size: 22px;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.toc-header span {
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.toc-toggle {
    margin-right: auto;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    transition: all 0.3s ease;
}

.toc-toggle:hover {
    background: var(--color-primary);
    color: white;
}

.toc-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease;
    background: none;
    padding: 0;
    color: inherit;
}

.toc-toggle.collapsed i {
    transform: rotate(180deg);
}

.toc-list {
    list-style: none;
    padding: 16px 24px 24px 24px;
    margin: 0;
    transition: all 0.3s ease;
    display: block;
}

.toc-list.collapsed {
    display: none;
}

.toc-item {
    margin-bottom: 6px;
    line-height: 1.45;
    position: relative;
}

.toc-level-1 {
    margin-right: 0;
    font-weight: 700;
}

.toc-level-1 .toc-link {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 0 8px 12px;
    border-right: 3px solid transparent;
}

.toc-level-2 {
    margin-right: 24px;
    font-weight: 500;
}

.toc-level-2 .toc-link {
    font-size: 0.88rem;
    padding: 6px 0 6px 12px;
    color: var(--color-muted);
}

.toc-level-3 {
    margin-right: 48px;
}

.toc-level-3 .toc-link {
    font-size: 0.82rem;
    padding: 4px 0 4px 12px;
    color: #94a3b8;
}

.toc-link {
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    position: relative;
}

.toc-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.25s ease;
}

.toc-link:hover {
    color: var(--color-primary);
    transform: translateX(-6px);
}

.toc-link:hover::before {
    width: 20px;
}

.toc-link.active {
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 12px;
}

.toc-link.active::before {
    width: 3px;
    height: 70%;
    background: var(--color-primary);
    right: auto;
    left: 0;
    border-radius: 2px;
}

/* شماره‌گذاری خودکار برای سطح 1 */
.toc-level-1 .toc-link {
    counter-increment: toc-counter;
}

.toc-level-1 .toc-link::after {
    content: counter(toc-counter) ".";
    margin-left: 8px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.7;
}

.toc-list {
    counter-reset: toc-counter;
}

/* افکت گرادیانت روی هاور کارت */
.table-of-contents:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* دکمه بستن/باز کردن با انیمیشن */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toc-list:not(.collapsed) {
    animation: fadeSlideIn 0.3s ease forwards;
}

/* آیکون‌های کنار آیتم‌ها */
.toc-level-1 .toc-link i {
    opacity: 0.6;
    font-size: 16px;
}

.toc-level-1 .toc-link:hover i {
    opacity: 1;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .table-of-contents {
        margin: 25px 0;
        border-radius: 20px;
    }

    .toc-header {
        padding: 14px 18px;
    }

    .toc-header span {
        font-size: 14px;
    }

    .toc-list {
        padding: 12px 18px 18px 18px;
    }

    .toc-level-2 {
        margin-right: 16px;
    }

    .toc-level-3 {
        margin-right: 32px;
    }

    .toc-link::before {
        display: none;
    }
}




/* ریسپانسیو */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.6rem;
    }

    .post-meta {
        gap: 12px;
    }

    .post-author {
        flex-direction: column;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}




/* ========== single ========== */
/* ========== نظرات ========== */

/* ========== نظرات ========== */

.post-comments {
    margin-top: 45px;
}

.comments-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f8;
    color: #1e293b;
}

/* ========== لیست نظرات ========== */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment-li {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    margin-top: 20px;
    display: flex;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* نظرات فرزند */
.comment-list .children {
    width: 95%;
    margin-right: 5%;
    list-style: none;
    padding: 0;
}

.comment-list .children .comment-li {
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
    margin-top: 15px;
    background: #fafcff;
}

/* ========== آواتار ========== */
.comment-avatar {
    float: right;
    width: 70px;
    padding-left: 15px;
    text-align: center;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.comment-info {
    margin-top: 5px;
}

.comment-author-name {
    font-size: 13px;
    font-weight: 800;
    display: block;
    color: #1e293b;
}

.comment-date {
    font-size: 10px;
    color: #94a3b8;
    display: block;
    margin-top: 3px;
}

/* ========== محتوای نظر ========== */
.comment-block {
    flex: 1;
    overflow-wrap: anywhere;
}

.comment-block p {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    margin: 8px 0 12px;
}

/* ========== دکمه پاسخ ========== */
.comment-reply-link,
.comment-reply-login {
    border-radius: 30px;
    color: #fff;
    padding: 5px 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 7px 0;
    font-size: 11px;
    font-weight: 600;
    background: #1e293b;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.comment-reply-link:hover,
.comment-reply-login:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* لینک لغو پاسخ */
#cancel-comment-reply-link {
    font-size: 11px;
    background: rgba(239, 68, 68, 0.1);
    width: auto;
    margin-right: 10px;
    text-align: center;
    border-radius: 30px;
    padding: 5px 14px;
    color: #ef4444;
    text-decoration: none;
    transition: all 0.2s;
}

#cancel-comment-reply-link:hover {
    background: #ef4444;
    color: white;
}

/* ========== نظرات فرزند (پاسخ‌ها) ========== */
.children .comment-block {
    background: #f0fdf4;
    border-radius: 16px;
    padding: 15px;
}

.children .comment-block p {
    color: #166534;
}

.children .comment-avatar img {
    width: 45px;
    height: 45px;
}

.children .comment-reply-link,
.children .comment-reply-login {
    background: #1e293b;
}

.children .comment-reply-link:hover,
.children .comment-reply-login:hover {
    background: #15803d;
}

/* ========== پاسخ مدیر ========== */
.comment-li.admin-reply .comment-block {
    background: #effff2;
    border-right: 3px solid #2563eb;
    border-radius: 16px;
    padding: 15px;
}

.comment-li.admin-reply .comment-author-name {
    color: #2563eb;
}

.admin-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 6px;
}

/* ========== پاسخ کاربر عادی ========== */
.comment-li.has-reply .comment-block {
    background: #ffffff;
    border-right: 3px solid #eab308;
    border-radius: 16px;
    padding: 15px;
}

/* باکس پاسخ به کاربر */
.reply-to-user-box {
    margin-bottom: 10px;
}

.reply-to-user-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

.reply-to-label {
    font-size: 11px;
    color: #64748b;
}

.reply-to-name {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

/* ========== فرم نظر ========== */
.comment-respond {
    width: 100%;
    padding: 30px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin: 30px 0;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #1e293b;
}

.comment-reply-title small {
    font-size: 13px;
}

.comment-reply-title small a {
    color: #ef4444;
    text-decoration: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 5px 12px;
    border-radius: 30px;
}

.comment-reply-title small a:hover {
    background: #ef4444;
    color: white;
}

/* فرم */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form p {
    margin: 0;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
    color: #3f58b8;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* دو ستونه برای نام و ایمیل */
.comment-form-author,
.comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
    margin-right: 16px;
    float: right;
}

.comment-form-author {
    margin-right: 0;
}

.comment-form-url {
    clear: both;
}

/* دکمه ارسال */
.form-submit {
    margin-top: 10px;
    clear: both;
}

.submit-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.submit-btn:hover {
	background: #6273f6;
	transform: translateY(-2px);
	color: #fff;
}

/* پیام‌ها */
.comment-notes {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
}

.logged-in-as {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.logged-in-as a {
    color: #16a34a;
    text-decoration: none;
}

/* حذف چک باکس */
.comment-form-cookies-consent {
    display: none;
}

/* placeholder */
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #94a3b8;
}

/* بدون نظر */
.no-comments {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 20px;
    color: #64748b;
}

/* پیجینیشن */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 10px 0;
}

.comment-navigation a {
    color: #2563eb;
    text-decoration: none;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .comment-list .comment-li {
        flex-direction: column;
        padding: 15px;
    }

    .comment-avatar {
        float: none;
        width: 100%;
        padding-left: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .comment-avatar img {
        margin: 0 auto;
    }

    .comment-list .children {
        width: 100%;
        margin-right: 0;
    }

    .comment-form-author,
    .comment-form-email {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .comment-respond {
        padding: 20px;
    }

    .comment-reply-title {
        font-size: 16px;
    }
}



/* ========== FOOTER ========== */
/* ========== فوتر ========== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 40px 40px 0 0;
    margin-top: 70px;
    padding: 50px 0 25px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 15px;
    text-align: justify;
}

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

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

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-menu a:hover {
    color: #2563eb;
    transform: translateX(-4px);
}

.footer-menu a::before {
    content: '←';
    opacity: 0;
    transition: all 0.2s;
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(-4px);
}

/* فرم خبرنامه */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: white;
    font-size: 13px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* فوتر پایین */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    font-size: 12px;
    color: #64748b;
}

/* ریسپانسیو */
@media (max-width: 1000px) {
    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        border-radius: 30px 30px 0 0;
        padding: 35px 0 20px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col:first-child {
        grid-column: span 1;
    }

    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-menu a {
        justify-content: center;
    }

    .footer-menu a:hover {
        transform: translateX(0);
    }

    .footer-menu a::before {
        display: none;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 15px auto 0;
    }
}


/* ========== آرشیو دسته‌بندی ========== */

.archive-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid #eef2f8;
}

.archive-icon {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex-shrink: 0;
}

.archive-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-icon i {
    font-size: 45px;
    color: #2563eb;
}

.archive-info {
    flex: 1;
}

.archive-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.archive-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.archive-stats {
    display: flex;
    gap: 15px;
}

.archive-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
}

/* گرید مقالات */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* کارت مقالات */
.archive-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2f8;
    transition: all 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.archive-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.archive-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.archive-card:hover .archive-card-img img {
    transform: scale(1.05);
}

.archive-card-content {
    padding: 18px;
}

.archive-card-content h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.5;
}

.archive-card-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.archive-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.read-more {
    color: #2563eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.archive-card:hover .read-more {
    gap: 8px;
}

/* سایدبار آیتم فعال */
.sidebar__item.active {
    background: #eef2ff;
    border-color: #2563eb;
}

.sidebar__item.active .sidebar__item-text {
    color: #2563eb;
}

.sidebar__item.active .sidebar__dot {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* ریسپانسیو */
@media (max-width: 1000px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .archive-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-title {
        font-size: 1.4rem;
    }
}


/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: -1;
  }
  .sidebar__card {
    min-height: auto;
  }
  .video-grid, .article-grid, .plugin-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-modern__inner {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__buttons {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .topbar__inner {
    flex-direction: column;
  }
  .search__box {
    width: 100%;
  }
  .video-grid, .article-grid, .plugin-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 32px 24px;
  }
  .hero__title {
    font-size: 1.6rem;
  }
  .feature-modern {
    padding: 28px;
  }
  .feature-modern__title {
    font-size: 1.4rem;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .container {
    padding: 0 20px;
  }
}



/* ========== بخش سینگل تمپلت========== */
/* ========== صفحه تکی قالب ========== */

.template-article {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* هدر قالب */
.template-header {
    padding: 30px;
    border-bottom: 1px solid #eef2f8;
}

.template-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.template-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.template-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.template-meta-item i {
    font-size: 16px;
    color: #2563eb;
}

/* باکس اطلاعات */
.template-box {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
    padding: 30px;
    background: #f8fafc;
}

.template-gallery img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.template-info {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.template-price {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f8;
}

.template-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.template-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.template-features-list li i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

.template-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-download,
.btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download {
	background: #2563eb;
	color: #fff;
	box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
	font-family: peyda;
	font-size: 18px;
}

.btn-download:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-download.disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-preview {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-preview:hover {
    background: #e2e8f0;
}

/* محتوای اصلی */
.template-content {
    padding: 40px;
}

.template-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 30px 0 15px;
    color: #1e293b;
}

.template-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 12px;
    color: #1e293b;
}

.template-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.template-content ul,
.template-content ol {
    margin: 20px 0;
    padding-right: 20px;
}

.template-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 8px;
}

.template-price-box {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f8;
}

.template-price {
    font-size: 28px;
    font-weight: 800;
    color: #16a34a;
}

.template-old-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 10px;
}

.template-price-free {
    font-size: 28px;
    font-weight: 800;
    color: #16a34a;
}

.btn-preview.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
/* استایل باکس قالب */
.free-theme-box {
    display: flex;
    gap: 30px;
    margin: 30px 0 40px;
    background: #fff;
    border-radius: 27px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.theme-img {
    flex: 1;
}

.theme-img img {
    width: 100%;
    border-radius: 20px;
    border: 7px solid #eff1fb;
}

.theme-meta {
    flex: 0.8;
    background: #eff1fb50;
    border-radius: 20px;
    padding: 25px;
}

.theme-meta ul {
    margin-bottom: 25px;
}

.theme-meta ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.theme-meta ul li a {
    color: #2563eb;
    text-decoration: none;
}

.button.dl {
    background: #00c178;
    display: block;
    text-align: center;
    margin-bottom: 10px;
    color: white;
}

.button.demo {
    background: #ffc33a;
    display: block;
    text-align: center;
    color: #1e293b;
}

.button {
    padding: 10px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}







/* ========== مودال خرید سریع ========== */
.quick-buy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-buy-modal {
	/* background: white; */
	border-radius: 24px;
	width: 400px;
	max-width: 90%;
	overflow: hidden;
	animation: modalSlideIn 0.3s ease;
	background: linear-gradient(220deg,rgba(255,255,255,.75),rgba(255,255,255,.5)),radial-gradient(circle at 20% 10%,rgba(255,255,255,.65),transparent 40%);
	border: 1px solid #fff;
	backdrop-filter: blur(22px) saturate(180%);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quick-buy-modal-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 20px;
    text-align: center;
    color: white;
}

.quick-buy-modal-header i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.quick-buy-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.quick-buy-modal.error .quick-buy-modal-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.quick-buy-modal-body {
    padding: 25px;
    text-align: center;
}

.quick-buy-modal-body p {
    margin-bottom: 20px;
    color: #334155;
}

.quick-buy-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quick-buy-modal-buttons .btn-primary,
.quick-buy-modal-buttons .btn-secondary {
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.quick-buy-modal-buttons .btn-primary {
    background: #2563eb;
    color: white;
}

.quick-buy-modal-buttons .btn-primary:hover {
    background: #1d4ed8;
}

.quick-buy-modal-buttons .btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
}

.quick-buy-modal-buttons .btn-secondary:hover {
    background: #e2e8f0;
}


/* ریسپانسیو */
@media (max-width: 1000px) {
    .template-box {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .template-header {
        padding: 25px;
    }

    .template-title {
        font-size: 24px;
    }

    .template-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .template-header {
        padding: 20px;
    }

    .template-meta {
        gap: 12px;
    }

    .template-box {
        padding: 20px;
    }

    .template-content {
        padding: 20px;
    }

    .template-content h2 {
        font-size: 20px;
    }

    .template-content h3 {
        font-size: 18px;
    }
}
/* ========== بخش سینگل تمپلت========== */



/* ====================================
   HIFIX CHECKOUT MODERN STYLE
==================================== */

/* پس زمینه صفحه */
body.woocommerce-checkout{
    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #eef4ff 100%
    );
}

/* کانتینر اصلی */
.hifix-checkout-wrap{
    max-width:1200px;
    margin:50px auto;
    padding:0 20px;
}

/* باکس اصلی */
.hifix-checkout-box{
    border-radius:32px;
    padding:40px;
    border:none;

}

/* هدر */
.hifix-checkout-header{
    text-align:center;
    margin-bottom:40px;
}

.hifix-checkout-header h1{
    font-size:36px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:10px;
    line-height:1.4;
}

.hifix-checkout-header p{
    color:#64748b;
    font-size:15px;
}

/* پیام های ووکامرس */
.woocommerce-notices-wrapper{
    margin-bottom:25px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
    border-radius:18px;
    padding:18px 22px;
    margin-bottom:15px;
    font-size:14px;
    list-style:none;
    border:none;
}

.woocommerce-message{
    background:#dcfce7;
    color:#166534;
}

.woocommerce-info{
    background:#dbeafe;
    color:#1d4ed8;
}

.woocommerce-error{
    background:#fee2e2;
    color:#b91c1c;
}

/* کوپن */
.checkout_coupon{
    display:flex;
    gap:15px;
    flex-wrap:wrap;

    background:#fff;
    padding:20px;

    border-radius:24px;

    border:1px solid #e5e7eb;

    margin-bottom:30px;
}

.checkout_coupon .form-row{
    flex:1;
    margin:0;
}

.checkout_coupon input{
    width:100%;
    height:56px;

    border:2px solid #e5e7eb;

    border-radius:16px;

    padding:0 18px;

    font-size:14px;
}

.checkout_coupon button{
    height:56px;

    border:none;

    border-radius:16px;

    padding:0 28px;

    background:#2563eb;

    color:#fff;

    font-weight:700;

    cursor:pointer;

    transition:.3s;
}

.checkout_coupon button:hover{
    transform:translateY(-2px);
}

/* چیدمان اصلی */
form.checkout{
    display:grid;
    grid-template-columns:1.4fr .8fr;
    gap:30px;
}

/* کارت ها */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields{

    background:#fff;

    padding:28px;

    border-radius:28px;

    border:1px solid #edf2f7;

    box-shadow:
        0 10px 30px rgba(15,23,42,.04);

    margin-bottom:25px;
}

/* عنوان ها */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3{

    font-size:20px;

    font-weight:800;

    color:#0f172a;

    margin-bottom:25px;

    padding-bottom:15px;

    border-bottom:1px solid #edf2f7;
}

/* فیلدها */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
}

.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row{
    width:calc(50% - 9px);
    margin:0;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide{
    width:100%;
}

.woocommerce-billing-fields label,
.woocommerce-shipping-fields label{

    display:block;

    margin-bottom:8px;

    font-size:13px;

    font-weight:700;

    color:#334155;
}

/* ورودی ها */
.woocommerce-billing-fields input,
.woocommerce-billing-fields select,
.woocommerce-billing-fields textarea,
.woocommerce-shipping-fields input,
.woocommerce-shipping-fields select,
.woocommerce-shipping-fields textarea{

    width:100%;

    height:56px;

    border:2px solid #e5e7eb;

    border-radius:16px;

    background:#fff;

    padding:0 18px;

    font-size:14px;

    transition:.3s;
}

.woocommerce-billing-fields textarea,
.woocommerce-shipping-fields textarea{
    height:140px;
    padding-top:15px;
}

.woocommerce-billing-fields input:focus,
.woocommerce-billing-fields select:focus,
.woocommerce-billing-fields textarea:focus,
.woocommerce-shipping-fields input:focus,
.woocommerce-shipping-fields select:focus,
.woocommerce-shipping-fields textarea:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.12);
}

.required{
    color:#ef4444;
}

/* ستون سفارش */
.woocommerce-checkout-review-order{

    background:#fff;

    padding:30px;

    border-radius:28px;

    border:2px solid #dbeafe;

    box-shadow:
        0 15px 40px rgba(37,99,235,.08);

    position:sticky;
    top:30px;
}

#order_review_heading{

    font-size:22px;

    font-weight:900;

    color:#0f172a;

    margin-bottom:20px;

    padding-bottom:15px;

    border-bottom:1px solid #edf2f7;
    display: none;
}

.woocommerce-info::before {
	color: #1e85be;
	display: none !important;
}


.checkout-remove-item{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:28px;
    height:28px;

    margin-left:10px;

    background:#fee2e2;

    color:#dc2626 !important;

    border-radius:50%;

    text-decoration:none;

    font-size:18px;

    font-weight:700;

    transition:.2s;
}

.checkout-remove-item:hover{
    background:#dc2626;
    color:#fff !important;
}




.checkout-products{
    background:#fff;
    border-radius:24px;
    padding:25px;
    margin-bottom:30px;
    border:1px solid #e5e7eb;
}

.checkout-products-header{
    margin-bottom:20px;
}

.checkout-products-header h3{
    margin:0;
    font-size:20px;
    font-weight:800;
}

.checkout-product{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.checkout-product:last-child{
    border-bottom:none;
}

.checkout-product-image img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:12px;
}

.checkout-product-info{
    flex:1;
}

.checkout-product-name{
    font-weight:700;
    margin-bottom:5px;
}

.checkout-product-price{
    color:#64748b;
    font-size:14px;
}

.checkout-product-remove a{
    color:#ef4444;
    text-decoration:none;
    font-weight:700;
}

.checkout-update-btn{
    margin-top:20px;
    width:100%;
    height:50px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}


.quantity-box{
    display:flex;
    align-items:center;
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    width:max-content;
}

.quantity-box button{
    width:42px;
    height:42px;
    border:none;
    background:#f8fafc;
    font-size:20px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.quantity-box button:hover{
    background:#2563eb;
    color:#fff;
}

.quantity-box .qty{
    width:60px;
    height:42px;
    border:none;
    text-align:center;
    font-weight:700;
    font-size:14px;
}

.quantity-box .qty:focus{
    outline:none;
}



.quantity-box input.qty{
    -moz-appearance: textfield;
}

.quantity-box input.qty::-webkit-inner-spin-button,
.quantity-box input.qty::-webkit-outer-spin-button{
    -webkit-appearance: none;
    margin: 0;
}




/* جدول سفارش */
.shop_table{
    width:100%;
    border-collapse:collapse;
}

.shop_table th,
.shop_table td{

    padding:15px 0;

    border-bottom:1px solid #edf2f7;

    text-align:right;

    font-size:14px;
}

.shop_table thead th{
    font-weight:800;
    color:#0f172a;
}

/* مجموع */
.order-total{

    background:
        linear-gradient(
            135deg,
            #10b981,
            #059669
        );
}

.order-total th,
.order-total td{

    color:#fff !important;

    font-size:18px;

    font-weight:900;

    padding:18px 15px;

    border-bottom:none;
}

/* درگاه ها */
.wc_payment_methods{
    list-style:none;
    margin:25px 0;
    padding:0;
}

.wc_payment_methods li{
    margin-bottom:12px;
}

.wc_payment_methods label{

    display:flex;

    align-items:center;

    gap:12px;

    padding:18px;

    border-radius:18px;

    border:2px solid #e5e7eb;

    background:#fff;

    cursor:pointer;

    transition:.3s;
}

.wc_payment_methods label:hover{

    transform:translateY(-3px);

    border-color:#93c5fd;
}

.wc_payment_methods input[type="radio"]{
    display:none;
}

.wc_payment_methods input[type="radio"]:checked + label{

    background:#eff6ff;

    border-color:#2563eb;

    box-shadow:
        0 10px 30px rgba(37,99,235,.12);
}

.wc_payment_methods img{
    height:32px;
    width:auto;
}

/* قوانین */
.woocommerce-terms-and-conditions{

    background:#fff7ed;

    border:1px solid #fed7aa;

    border-radius:18px;

    padding:18px;

    max-height:220px;

    overflow:auto;

    font-size:13px;

    line-height:2;
}

.woocommerce-privacy-policy-text{

    text-align:center;

    font-size:12px;

    color:#64748b;

    margin-top:15px;
}

/* دکمه پرداخت */
#place_order{

    width:100%;

    height:62px;

    border:none;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color:#fff;

    font-size:17px;

    font-weight:800;

    cursor:pointer;

    margin-top:20px;

    transition:.3s;

    box-shadow:
        0 15px 35px rgba(37,99,235,.25);
}

#place_order:hover{

    transform:translateY(-4px);

    box-shadow:
        0 20px 45px rgba(37,99,235,.35);
}

/* موبایل */
@media(max-width:991px){

    form.checkout{
        display:block;
    }

    .woocommerce-checkout-review-order{
        margin-top:25px;
        position:relative;
        top:auto;
    }

    .woocommerce-billing-fields__field-wrapper .form-row,
    .woocommerce-shipping-fields__field-wrapper .form-row{
        width:100%;
    }

    .checkout_coupon{
        flex-direction:column;
    }

    .hifix-checkout-box{
        padding:20px;
    }

    .hifix-checkout-header h1{
        font-size:28px;
    }
}
