/*
Theme Name: سپاس (Sepas)
Theme URI: https://sepas-charity.ir
Author: Maron Agency
Version: 6.6.0 - Restored & Fixed Container Edition
Description: پوسته رسمی، فوق‌سریع و استاندارد مرکز نیکوکاری و توانمندسازی سپاس؛ دارای کانتینر استاندارد ۱۱۸۰ پیکسل، بدون پرش در هاور، استایل اصیل سازمانی، نوار پایانی با تراز چپ مارون استودیو، درگاه اختصاصی زرین‌پال و سبد خرید کشویی.
*/

/* ==========================================================================
   ۱. لود فونت‌های محلی اختصاصی سپاس (@font-face)
   ========================================================================== */
@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sepas';
    src: url('assets/fonts/sepas-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۲. متغیرهای سیستم رنگ و طراحی (CSS Custom Properties)
   ========================================================================== */
:root {
    --primary: #005938;
    --primary-hover: #004229;
    --primary-light: #e6f4ea;
    --primary-glow: rgba(0, 89, 56, 0.12);
    
    --secondary: #65a30d;
    --secondary-hover: #4d7c0f;
    --secondary-light: #f4fce3;

    --bg-body: #f7faf8;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --text-primary: #0f1c14;
    --text-secondary: #4a5d50;
    --text-muted: #718878;
    --border-color: #e2ece5;
    --nav-border: rgba(0, 89, 56, 0.08);
    
    --glass-bg: rgba(255, 255, 255, 0.88);
    --card-shadow: 0 4px 15px rgba(0, 89, 56, 0.05);
    --transition-color: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;

    --footer-bg: #f0f6f2;
    --footer-border: #dae8de;
    --radius-custom: 8px;
    --site-max-width: 1180px;
}

[data-theme="dark"] {
    --bg-body: #070d0a;
    --bg-surface: #0e1713;
    --bg-surface-elevated: #15221c;
    --text-primary: #f0f7f2;
    --text-secondary: #9cb3a4;
    --text-muted: #647d6e;
    
    --primary: #10b981;
    --primary-hover: #34d399;
    --primary-light: rgba(16, 185, 129, 0.14);
    --primary-glow: rgba(16, 185, 129, 0.22);
    
    --secondary: #84cc16;
    --secondary-hover: #a3e635;
    --secondary-light: rgba(132, 204, 22, 0.14);

    --border-color: #1b2c22;
    --nav-border: rgba(255, 255, 255, 0.07);
    --glass-bg: rgba(14, 23, 19, 0.90);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    --footer-bg: #09120d;
    --footer-border: #16241c;
}

/* ==========================================================================
   ۳. تنظیمات پایه، کانتینر و ریست (Reset & Base & Container)
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sepas', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif !important;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    padding-top: 76px;
}

/* کانتینر اصلی سایت (مهار دقیق عرض ۱۱۸۰ پیکسل و تراز وسط) */
.container {
    width: 100%;
    max-width: var(--site-max-width, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

button, input, textarea, select {
    font-family: 'Sepas', sans-serif !important;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-color);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* مهار ابعاد استاندارد آیکون‌های وکتور SVG */
.view-all-link svg,
.blog-read-more svg,
.banner-btn svg,
.btn-compact-buy svg,
.btn-donate svg,
.btn-primary svg,
.btn-secondary svg,
.contact-item svg,
.blog-meta-item svg,
.compact-artist svg,
.license-icon-wrap svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
}

/* ==========================================================================
   ۴. هدر شیشه‌ای چسبان (#siteHeader)
   ========================================================================== */
header#siteHeader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 89, 56, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] header#siteHeader {
    background: rgba(14, 23, 19, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header#siteHeader.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 4px 15px rgba(0, 35, 20, 0.05);
}

[data-theme="dark"] header#siteHeader.is-scrolled {
    background: rgba(14, 23, 19, 0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}

header#siteHeader.is-scrolled .navbar {
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon-wrap img {
    height: 48px !important;
    width: auto !important;
    max-width: 190px;
    object-fit: contain;
}

.logo-icon-wrap svg {
    width: 36px !important;
    height: 36px !important;
    color: var(--primary);
}

.logo:hover .logo-icon-wrap img,
.logo:hover .logo-icon-wrap svg {
    transform: none !important;
}

.logo-text h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--secondary);
    font-weight: 500;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-custom);
    transition: var(--transition-color);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-donate {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--radius-custom);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px var(--primary-glow);
    border: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-donate:hover {
    transform: none !important;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.icon-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-color);
    position: relative;
}

.icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-custom);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    cursor: pointer;
    padding: 8px;
}

.hamburger-btn span {
    display: block;
    width: 19px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   ۵. منوی کشویی و دراور موبایل (Mobile Drawer)
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 15, 8, 0.45);
    backdrop-filter: blur(6px);
    z-index: 1098;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 285px; max-width: 82vw;
    height: 100vh;
    background-color: var(--bg-surface-elevated);
    z-index: 1099;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    overflow-y: auto;
}
.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.drawer-close-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 30px; height: 30px;
    border-radius: var(--radius-custom);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: auto;
}

.drawer-links a {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: var(--radius-custom);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-links a:hover, .drawer-links a.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.drawer-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   ۶. مودال جستجو (Search Modal)
   ========================================================================== */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 25, 19, 0.72);
    backdrop-filter: blur(16px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal.active { opacity: 1; visibility: visible; }

.search-close-btn {
    position: absolute;
    top: 24px; left: 24px;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-custom);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; cursor: pointer;
}

.search-container { width: 100%; max-width: 580px; }
.search-box-form {
    background: #ffffff;
    border-radius: var(--radius-custom);
    padding: 5px 6px 5px 16px;
    display: flex; align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.search-input {
    width: 100%; border: none; background: transparent;
    font-size: 0.95rem; color: #1e293b; padding: 10px 8px;
    font-weight: 500;
}

.search-submit-btn {
    width: 40px; height: 40px; min-width: 40px;
    background: var(--primary); border: none; border-radius: var(--radius-custom);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #ffffff;
}

/* ==========================================================================
   ۷. اسلایدر هیرو لمسی (Hero Touch Slider)
   ========================================================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 76px);
    min-height: 560px;
    overflow: hidden;
    background-color: #070d0a;
    user-select: none;
    touch-action: pan-y;
}

.hero-slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-out;
    direction: rtl;
}

.hero-slide {
    width: 33.333333%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 17, 11, 0.94) 0%, rgba(5, 17, 11, 0.78) 45%, rgba(5, 17, 11, 0.3) 100%);
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    max-width: 660px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #ffffff;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(101, 163, 13, 0.25);
    border: 1px solid rgba(132, 204, 22, 0.5);
    backdrop-filter: blur(8px);
    color: #bef264;
    border-radius: var(--radius-custom);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.badge-dot {
    width: 6px; height: 6px;
    background-color: #bef264;
    border-radius: 50%;
    box-shadow: 0 0 8px #bef264;
}

.hero-title {
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-title span { color: #84cc16; }

.hero-desc {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: var(--radius-custom);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: none !important;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: var(--radius-custom);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { 
    background: #ffffff; 
    color: #0f1c14; 
    border-color: #ffffff; 
    transform: none !important;
}

.slider-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 44px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-custom);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.slider-control-btn:hover { 
    background: var(--primary); 
    border-color: var(--primary); 
    transform: translateY(-50%) !important;
}
.slider-control-btn svg { width: 20px !important; height: 20px !important; }

.slider-btn-prev { right: 24px; }
.slider-btn-next { left: 24px; }

.slider-indicators {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 12px;
    border-radius: var(--radius-custom);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-dot {
    width: 24px; height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-custom);
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}
.indicator-dot.active { width: 44px; background: var(--secondary); }

/* ==========================================================================
   ۸. عناوین مشترک بخش‌ها (Section Headers)
   ========================================================================== */
.section-wrapper { padding-top: 55px; padding-bottom: 55px; }

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 14px;
}

.section-title-group { display: flex; flex-direction: column; gap: 6px; }

.section-subtitle-badge {
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-heading {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    max-width: 520px;
    line-height: 1.65;
}

.view-all-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 7px 14px;
    border-radius: var(--radius-custom);
    background: var(--primary-light);
    white-space: nowrap !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.view-all-link:hover { 
    background: var(--primary); 
    color: #ffffff; 
    transform: none !important;
}

/* ==========================================================================
   ۹. بخش درباره موسسه در صفحه نخست (Home About Section)
   ========================================================================== */
.home-about-section {
    padding-top: 70px;
    padding-bottom: 70px;
    background: linear-gradient(180deg, var(--bg-body) 0%, rgba(0, 89, 56, 0.03) 100%);
    border-bottom: 1px solid var(--border-color);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.about-visual-column {
    position: relative;
}

.about-visual-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 10px 30px rgba(0, 35, 20, 0.08);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-visual-card:hover .about-main-img {
    transform: none !important;
}

.about-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 30, 18, 0.25) 0%, rgba(0, 20, 10, 0.85) 100%);
    z-index: 1;
}

.about-center-emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    text-align: center;
}

[data-theme="dark"] .about-center-emblem {
    background: rgba(14, 23, 19, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
}

.about-visual-card:hover .about-center-emblem {
    transform: translate(-50%, -50%) !important;
}

.about-emblem-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.about-emblem-svg svg {
    width: 44px !important;
    height: 44px !important;
    color: var(--primary);
}

.about-emblem-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.3px;
}

.about-floating-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.about-floating-kpi {
    position: absolute;
    bottom: 24px;
    right: 24px;
    left: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .about-floating-kpi {
    background: rgba(14, 23, 19, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
}

.kpi-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-pill svg {
    width: 18px !important;
    height: 18px !important;
}

.kpi-num {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.kpi-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-content-column {
    display: flex;
    flex-direction: column;
}

.about-content-header { margin-bottom: 16px; }

.about-heading {
    font-size: clamp(1.4rem, 2.3vw, 2.1rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.38;
    margin-top: 8px;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.about-lead-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.8;
}

.about-body-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.95;
    margin-bottom: 25px;
    text-align: justify;
}

.about-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.pillar-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pillar-bullet-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: var(--secondary-light);
    color: var(--secondary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pillar-bullet-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.pillar-bullet-text h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pillar-bullet-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-action-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    flex-wrap: wrap;
}

.about-mini-stat {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.about-mini-stat strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--secondary);
}

.about-mini-stat span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ۱۰. بخش دست‌آفریده‌ها در صفحه نخست (Home Products Showcase)
   ========================================================================== */
.products-showcase-container {
    display: grid;
    grid-template-columns: 31% 69%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.products-featured-banner {
    position: relative;
    border-radius: var(--radius-custom);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    color: #ffffff;
    box-shadow: var(--card-shadow);
    min-height: 350px;
}

.banner-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}

.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 35, 20, 0.15) 0%, rgba(0, 30, 15, 0.94) 85%);
    z-index: 2;
}

.banner-content {
    position: relative; z-index: 3;
    display: flex; flex-direction: column; gap: 8px;
}

.banner-badge {
    background: var(--secondary);
    color: #ffffff;
    font-size: 0.7rem; font-weight: 700;
    padding: 3px 9px; border-radius: var(--radius-custom);
    width: fit-content;
}

.banner-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
}

.banner-desc {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.banner-btn {
    margin-top: 6px;
    display: inline-flex; align-items: center; gap: 7px;
    background: #ffffff; color: var(--primary);
    padding: 8px 16px; border-radius: var(--radius-custom);
    font-size: 0.8rem; font-weight: 700; width: fit-content;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.banner-btn:hover { 
    background: var(--secondary-light); 
    color: var(--secondary-hover); 
    transform: none !important;
}

.products-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.product-card-compact {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card-compact:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(101, 163, 13, 0.12);
    transform: none !important;
}

.compact-media {
    position: relative;
    width: 100%;
    height: 130px;
    background: var(--bg-body);
    overflow: hidden;
}

.compact-img { width: 100%; height: 100%; object-fit: cover; }

.compact-tag {
    position: absolute;
    top: 7px; right: 7px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    color: var(--primary);
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: var(--radius-custom);
    z-index: 2;
}

[data-theme="dark"] .compact-tag {
    background: rgba(14, 23, 19, 0.92);
    color: var(--primary);
}

.compact-content {
    padding: 11px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

.compact-artist {
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 4px;
}

.compact-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.compact-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.compact-price { display: flex; flex-direction: column; }
.compact-price span { font-size: 0.62rem; color: var(--text-muted); font-weight: 300; }
.compact-price strong { font-size: 0.88rem; font-weight: 800; color: var(--primary); }

.btn-compact-buy {
    width: 28px; height: 28px;
    border-radius: var(--radius-custom);
    border: none;
    background: var(--primary);
    color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-compact-buy:hover { 
    background: var(--primary-hover); 
    transform: none !important;
}

/* ==========================================================================
   ۱۱. بخش وبلاگ و کارت‌های مقالات (Blog System)
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 89, 56, 0.12);
    transform: none !important;
}

.blog-thumb {
    position: relative;
    width: 100%; height: 160px;
    overflow: hidden; background: var(--bg-body);
}

.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-category-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.68rem; font-weight: 600;
    padding: 3px 8px; border-radius: var(--radius-custom);
}

.blog-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.blog-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.72rem; color: var(--text-muted);
    font-weight: 300;
}

.blog-meta-item { display: flex; align-items: center; gap: 4px; }

.blog-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.blog-snippet {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.blog-read-more {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.blog-read-more svg { transition: color 0.2s ease; }
.blog-card:hover .blog-read-more svg { 
    transform: none !important;
}

/* ==========================================================================
   ۱۲. پرسش‌های متداول (Accordion FAQ)
   ========================================================================== */
.faq-section {
    background: linear-gradient(180deg, transparent 0%, var(--bg-body) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.faq-layout {
    max-width: 840px;
    margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 10px; width: 100%;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(101, 163, 13, 0.12);
}

.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 18px;
    text-align: right;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}

.faq-question-content { display: flex; align-items: center; gap: 10px; }

.faq-q-badge {
    width: 26px; height: 26px; min-width: 26px;
    border-radius: var(--radius-custom);
    background: var(--secondary-light); color: var(--secondary-hover);
    font-size: 0.76rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.faq-item.active .faq-q-badge { background: var(--primary); color: #ffffff; }

.faq-chevron {
    width: 28px; height: 28px; min-width: 28px;
    border-radius: var(--radius-custom);
    background: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    background: var(--primary-light);
    color: var(--primary);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-answer-inner {
    padding: 0 18px 18px 54px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.8;
    border-top: 1px dashed transparent;
}
.faq-item.active .faq-answer-inner {
    border-top-color: var(--border-color);
    padding-top: 10px;
}

/* ==========================================================================
   ۱۳. فوتر سایت و نمادها (Site Footer & Trust Seals)
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.84rem;
    width: 100%;
}

.footer-top {
    padding: 46px 0 30px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.3fr;
    gap: 28px;
    width: 100%;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative; padding-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.footer-col-title::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 24px; height: 2px;
    background: var(--secondary); border-radius: var(--radius-custom);
}

.footer-about p {
    line-height: 1.75;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
}

.footer-socials { display: flex; gap: 8px; }

.social-link {
    width: 34px; height: 34px;
    border-radius: var(--radius-custom);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.social-link:hover { 
    color: #ffffff; 
    background: var(--primary); 
    border-color: var(--primary); 
    transform: none !important;
}

.footer-links-list { display: flex; flex-direction: column; gap: 8px; }
.footer-links-list a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color 0.2s ease;
}
.footer-links-list a::before {
    content: "•"; color: var(--secondary); font-size: 1.1rem; line-height: 0;
}
.footer-links-list a:hover { color: var(--primary); font-weight: 500; }

.contact-items { display: flex; flex-direction: column; gap: 9px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-secondary); font-size: 0.82rem; line-height: 1.55;
    font-weight: 400;
}

.footer-licenses-wrapper {
    width: 100%;
    margin-top: 10px;
}

.footer-licenses-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.license-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    padding: 6px;
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.license-item:hover {
    border-color: var(--primary);
    transform: none !important;
}

.license-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    cursor: pointer;
    border: none !important;
    margin: 0 auto !important;
    display: block !important;
}

.license-item iframe,
.license-item embed {
    max-width: 100% !important;
    max-height: 100% !important;
}

.license-item.placeholder-badge {
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

/* ==========================================================================
   ۱۴. نوار پایانی فوتر و قرارگیری تراز چپ مارون استودیو
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 14px 0;
    width: 100%;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.copyright-txt {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ستون سمت چپ فوتر: کاملاً قفل شده در سمت چپ (Left) */
.footer-developer {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-right: auto;
    direction: rtl;
}

.footer-developer p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.marun-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 2px 6px;
    border-radius: 6px;
}

.marun-brand-link:hover {
    color: var(--secondary-hover);
    background: var(--primary-light);
    transform: none !important;
}

.marun-logo-svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    fill: currentColor !important;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   ۱۵. صفحات تکی نوشته و آرشیو مقالات (Single & Archive Posts)
   ========================================================================== */
.single-container, .archive-container {
    padding-top: 40px;
    padding-bottom: 70px;
    max-width: 900px;
    margin: 0 auto;
}
.article-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.article-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 400;
    flex-wrap: wrap;
}
.article-image {
    width: 100%;
    border-radius: var(--radius-custom);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}
.article-content {
    font-size: 1.06rem;
    line-height: 2.15;
    color: var(--text-primary);
    font-weight: 400;
}
.article-content p { margin-bottom: 22px; }
.comments-wrap {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.comment-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    padding: 16px;
    margin-bottom: 15px;
}
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-custom);
    background: var(--bg-surface);
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ==========================================================================
   ۱۶. ماژول فروشگاه دست‌آفریده‌ها (Shop & Product Catalog)
   ========================================================================== */
.shop-container {
    padding-top: 35px;
    padding-bottom: 70px;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}
.shop-breadcrumb a:hover { color: var(--primary); }
.shop-breadcrumb .sep { color: var(--border-color); }
.shop-breadcrumb .current-item { color: var(--primary); font-weight: 600; }

.product-single-grid,
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: start;
}

.product-media-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.product-image-viewport {
    width: 100%;
    height: 480px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-viewport:hover img {
    transform: none !important;
}

.product-trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--primary);
}

.product-info-col {
    display: flex;
    flex-direction: column;
}

.product-badge-cause {
    display: inline-block;
    width: fit-content;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.product-main-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.product-creator-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    width: fit-content;
    margin-bottom: 22px;
}

.creator-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-avatar-wrap svg {
    width: 18px !important;
    height: 18px !important;
}

.creator-meta { line-height: 1.3; }
.creator-label { font-size: 0.74rem; color: var(--text-muted); display: block; }
.creator-name { font-size: 0.92rem; color: var(--text-primary); }

.product-pricing-card {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
}

[data-theme="dark"] .product-pricing-card {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.price-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.price-lead-label {
    font-size: 0.85rem;
    color: #166534;
    font-weight: 600;
}

[data-theme="dark"] .price-lead-label { color: #34d399; }

.product-sku-code {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-muted);
}

.price-main-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-main-display .amount-num {
    font-size: 2.1rem;
    font-weight: 900;
    color: #15803d;
    letter-spacing: -1px;
}

[data-theme="dark"] .price-main-display .amount-num { color: #10b981; }

.price-main-display .amount-unit {
    font-size: 0.95rem;
    color: #166534;
    font-weight: 700;
}

.product-order-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.order-box-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-box-title svg {
    width: 18px !important;
    height: 18px !important;
    color: var(--primary);
}

.order-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-field { margin-bottom: 14px; }

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input-text,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input-text:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-checkout-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: background 0.2s ease;
    margin-top: 6px;
}

.btn-checkout-submit:hover {
    transform: none !important;
}

.btn-checkout-submit svg {
    width: 20px !important;
    height: 20px !important;
}

.product-story-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 10px;
}

.story-heading {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.story-body {
    font-size: 0.96rem;
    line-height: 2.1;
    color: var(--text-secondary);
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
}

.story-body p { margin-bottom: 16px; }
.story-body h2, .story-body h3 { font-size: 1.15rem; color: var(--text-primary); margin: 20px 0 10px; }

.shop-archive-header {
    position: static !important;
    display: block !important;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
}

.shop-badge {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--secondary-hover);
    padding: 5px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.shop-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.shop-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.shop-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
    position: relative;
    clear: both;
}

.filter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 95px;
    box-shadow: var(--card-shadow);
}

.filter-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.cat-radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
}

.cat-radio-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.cat-radio-label input { accent-color: var(--primary); }

.filter-submit-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    justify-content: center;
}

.reset-filter-link {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: #ef4444;
    margin-top: 10px;
    text-decoration: underline;
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.modern-prod-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-prod-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 89, 56, 0.1);
    transform: none !important;
}

.prod-media-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--bg-body);
}

.prod-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-prod-card:hover .prod-media-wrap img {
    transform: none !important;
}

.prod-tag-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 28, 20, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.prod-details-wrap {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-artist-name {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.prod-item-title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 6px;
}

.prod-item-summary {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.prod-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.prod-price-box .price-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
}

.prod-price-box strong {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 900;
}

.btn-buy-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-buy-icon:hover {
    background: var(--primary-hover);
    transform: none !important;
}

.empty-shop-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--bg-surface);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
}
.empty-shop-state svg { color: var(--text-muted); margin-bottom: 14px; }
.empty-shop-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-primary); }
.empty-shop-state p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }

.shop-receipt-container {
    max-width: 600px;
    padding-top: 50px;
    padding-bottom: 80px;
}
.ref-code-font { font-family: monospace; font-size: 1rem; }

.related-products-section {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 35px;
}
.related-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 22px;
    color: var(--text-primary);
}

/* ==========================================================================
   ۱۷. صفحه‌بندی عمومی (Pagination)
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.pagination-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-btn:hover:not(.disabled) {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: bold;
}

/* ==========================================================================
   ۱۸. سامانه نیکوکاری آنلاین و استایل اصیل فرم پرداخت (Donation Module)
   ========================================================================== */
.donation-page-wrapper {
    padding-top: 35px;
    padding-bottom: 75px;
}

.mahak-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: stretch;
}

.donation-hero-col {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 55px 45px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.donation-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 28, 20, 0.94) 0%, rgba(0, 89, 56, 0.90) 100%);
    z-index: 1;
}

.donation-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 580px;
}

.donation-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    color: #bef264;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.donation-hero-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.donation-hero-desc {
    font-size: 0.98rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    text-align: justify;
}

.donation-hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dh-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #f1f5f9;
}

.dh-bullet {
    width: 22px;
    height: 22px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* کارت فرم پرداخت با استایل بانکی تمیز و معتبر */
.mahak-card {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2ece5);
    border-radius: 20px;
    padding: 35px 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.block-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #0f1c14);
    margin-bottom: 12px;
}

.method-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.method-card {
    border: 1.5px solid var(--border-color, #e2ece5);
    background: var(--bg-surface);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.method-card.active {
    border-color: var(--primary, #005938);
    background: var(--primary-light, #e6f4ea);
}

.method-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary, #005938);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.method-radio .radio-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary, #005938);
}

.method-card.disabled-card {
    border-color: var(--border-color);
    background: var(--bg-body);
    opacity: 0.65;
    cursor: not-allowed;
}

.method-radio.disabled { border-color: var(--border-color); }
.method-radio.disabled .radio-inner { background: transparent; }

.method-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.badge-sub-pill {
    background: var(--secondary-light, #f4fce3);
    color: var(--secondary-hover, #4d7c0f);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
}

.method-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

/* باکس حرفه‌ای درگاه زرین‌پال */
.gateway-select-box {
    margin-top: 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
}

.gateway-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gw-logo-wrap {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gw-badge-secure {
    font-size: 0.74rem;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: bold;
}

/* اینپوت مبلغ و ارز */
.custom-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-amount-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.currency-tag {
    padding: 0 16px;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-left: 1px solid var(--border-color);
}

.custom-amount-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
}

.btn-clear-amount {
    background: none;
    border: none;
    padding: 0 14px;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.btn-clear-amount:hover { color: #dc2626; }

/* دکمه‌های مقادیر پیش‌فرض */
.preset-amounts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.preset-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.preset-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.preset-btn.is-active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-input-wrap {
    position: relative;
}

.donor-field-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.donor-field-input:focus { border-color: var(--primary); }

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.field-hint {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* دکمه پرداخت با رنگ سبز عمیق سپاس (بدون هیچ‌گونه رنگ قرمز نئونی) */
.btn-mahak-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #007a4d 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-mahak-submit:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #005938 100%);
    transform: none !important;
}

/* هشدار باوقار و نامحسوس فیلترشکن */
.vpn-warning-box {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 500;
}

[data-theme="dark"] .vpn-warning-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.result-card.success { border-top: 6px solid #10b981; }
.result-card.failed { border-top: 6px solid #ef4444; }

.result-icon-wrap {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-card.success .result-icon-wrap { background: #d1fae5; color: #10b981; }
.result-card.failed .result-icon-wrap { background: #fee2e2; color: #ef4444; }
.result-icon-wrap svg { width: 38px; height: 38px; }

.result-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.result-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.receipt-details-box {
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-retry {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-return-home {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: bold;
}

/* ==========================================================================
   ۱۹. منوی کشویی سبد خرید از چپ (Slide-over Left Cart)
   ========================================================================== */
.cart-toggle-icon {
    position: relative;
}

.cart-badge-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-left {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 370px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface-elevated, #ffffff);
    z-index: 2000;
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: none;
    transition: transform 0.35s ease, visibility 0.35s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer-left.is-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
}

.cart-drawer-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.cart-items-count-pill {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    position: relative;
    transition: border-color 0.2s ease;
}

.cart-item-row:hover {
    border-color: var(--secondary);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
    height: 24px;
}

.btn-qty {
    background: transparent;
    border: none;
    width: 24px;
    height: 100%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-qty:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.qty-num {
    padding: 0 8px;
    font-size: 0.76rem;
    font-weight: bold;
    color: var(--text-primary);
}

.btn-remove-cart {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-remove-cart:hover {
    color: #ef4444;
    background: #fee2e2;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 10px;
    color: var(--text-muted);
}

.cart-empty-state svg {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.cart-empty-state h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-empty-state p {
    font-size: 0.84rem;
}

.cart-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.btn-checkout-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--primary-glow);
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-checkout-cart:hover {
    transform: none !important;
}

/* ==========================================================================
   ۲۰. نوار ناوبری اپلیکیشنی پایین صفحه مخصوص موبایل (Mobile App Bottom Bar)
   ========================================================================== */
.mobile-app-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .logo-text {
        display: none !important;
    }

    .logo-icon-wrap img {
        height: 44px !important;
        max-width: 140px !important;
    }

    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-app-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(0, 89, 56, 0.08);
        z-index: 1050;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .mobile-app-bottom-bar {
        background: rgba(14, 23, 19, 0.92);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
    }

    .bottom-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 600;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        flex: 1;
        height: 100%;
        transition: color 0.15s ease;
    }

    .bottom-bar-item:active {
        transform: none !important;
    }

    .bottom-bar-item.active {
        color: var(--primary);
        font-weight: 800;
    }

    .bar-icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 22px;
    }

    .bar-icon-wrap svg {
        width: 20px !important;
        height: 20px !important;
    }

    .bottom-bar-item.active .bar-icon-wrap svg {
        stroke-width: 2.5;
        color: var(--primary);
    }

    .center-cta-item {
        position: relative;
    }

    .center-cta-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), #007a4d);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -24px;
        box-shadow: 0 4px 15px rgba(0, 89, 56, 0.3);
        border: 3.5px solid var(--bg-surface);
    }

    .center-cta-circle svg {
        width: 22px !important;
        height: 22px !important;
        color: #ffffff !important;
    }

    .center-cta-item:active .center-cta-circle {
        transform: none !important;
    }

    .center-cta-item span {
        margin-top: 2px;
        color: var(--primary);
        font-weight: 800;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   ۲۱. نقاط شکست و واکنش‌گرایی جامع (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .hamburger-btn { display: flex; order: 1; }
    .nav-left { order: 2; }
    .products-showcase-container { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 992px) {
    .mahak-split-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .donation-form-col {
        order: 1;
        width: 100%;
    }

    .donation-hero-col {
        order: 2;
        width: 100%;
        padding: 35px 25px;
    }

    .donation-hero-title {
        font-size: 1.65rem;
    }

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-visual-card {
        height: 380px;
    }

    .about-heading {
        font-size: 1.55rem;
    }

    .product-single-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-image-viewport { height: 360px; }
    .shop-layout-grid { grid-template-columns: 1fr; }
    .filter-card { position: static; }
}

@media (max-width: 860px) {
    .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(5, 17, 11, 0.4) 0%, rgba(5, 17, 11, 0.9) 70%, rgba(5, 17, 11, 0.98) 100%);
    }
    .hero-slide-content { text-align: center; align-items: center; margin: 0 auto; }
    .hero-actions { justify-content: center; width: 100%; }
    .slider-control-btn { display: none; }
    
    .blog-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 14px; padding-bottom: 12px; scrollbar-width: none;
    }
    .blog-grid::-webkit-scrollbar { display: none; }
    .blog-card { flex: 0 0 260px; scroll-snap-align: start; }

    .products-compact-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 12px; padding-bottom: 10px; scrollbar-width: none;
    }
    .products-compact-grid::-webkit-scrollbar { display: none; }
    .product-card-compact { flex: 0 0 190px; scroll-snap-align: start; }
}

@media (max-width: 680px) {
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .faq-answer-inner { padding: 0 14px 14px 14px; }
    .faq-question-btn { padding: 14px 12px; font-size: 0.88rem; }
    
    .footer-bottom-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 12px; 
    }
    .footer-bottom-right {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .footer-bottom-links { 
        justify-content: center; 
    }
    .footer-developer {
        margin-right: 0;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body { padding-top: 66px; }
    .navbar { padding-top: 9px; padding-bottom: 9px; }
    .logo-icon-wrap img { height: 40px !important; }
    .hero-slider-section { height: calc(100vh - 66px); min-height: 500px; }
    .btn-donate span { display: inline-block !important; font-size: 0.8rem; }
    .btn-donate { padding: 6px 12px !important; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    
    .product-main-title { font-size: 1.55rem; }
    .order-form-grid { grid-template-columns: 1fr; }
    .product-image-viewport { height: 280px; }
    .product-trust-badges { flex-direction: column; gap: 8px; }

    .about-visual-card {
        height: 320px;
    }
    .about-center-emblem {
        padding: 16px 20px;
    }
    .about-emblem-logo {
        max-height: 40px;
    }
    .about-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .about-action-bar .btn-donate {
        width: 100%;
        justify-content: center;
    }
}