/**
 * Ahanit Theme Stylesheet (Desktop First)
 *
 * Version: 2.0 (Optimized & Refactored)
 * This file contains all global, header, footer, and archive styles.
 * Single product page styles are now located within their respective template parts.
 *
 * @package Ahanit
 * @since 1.0
 */

:root {
    /* == 1. Colors Palette == */
    --brand-primary: #6057a5;
    --brand-secondary: #6057a5;
    --brand-gradient: linear-gradient(45deg, #6057a5, #6057a5);
    --brand-primary-rgb: 2, 120, 255;
    --brand-secondary-rgb: 7, 107, 228;

    --text-dark: #1a1a2e;
    --text-on-accent: #ffffff;
    --text-muted: #6c757d;

    --bg-page: #ffffff;
    --bg-surface: #f8f9fa;
    --border-color: #e0e0e0;
    --bg-glass-light: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --border-color-glass: rgba(255, 255, 255, 0.2);
    --brand-primary-light: #e0e0ff;
    --error-bg: #fff0f0;
    --overlay-dark: rgba(24, 20, 60, 0.2);
    --shadow-dark-color: #23272f99;

    --success: #16a34a;
    --error: #c62828;
    --rating-star: #ffc107;
    --success-light: #22c55e;
    --success-bg: #eafff3;
    --success-dark: #14532d;
    --success-darker: #1e7d37;
    --error-dark: #c1121f;
    --error-bg-light: rgba(220, 20, 60, 0.12);
    --success-bg-light: rgba(34, 197, 94, 0.12);

    /* -- Comment-specific colors -- */
    --color-like: #3b82f6;
    --color-dislike: #ef4444;

    /* == 2. Typography (Fluid Sizing) == */
    --font-family-base: 'YekanBakhFaNum', sans-serif;
    --font-size-xs: clamp(0.75rem, 0.7vw + 0.1rem, 0.85rem);
    --font-size-sm: clamp(0.875rem, 0.8vw + 0.2rem, 1rem);
    --font-size-base: clamp(1rem, 1vw + 0.2rem, 1.1rem);
    --font-size-md: clamp(1.125rem, 1.2vw + 0.3rem, 1.5rem);
    --font-size-lg: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
    --font-size-xl: clamp(2rem, 3vw + 0.75rem, 3.5rem);
    --line-height-base: 1.7;
    --line-height-heading: 1.4;

    /* == 3. Spacing & Layout == */
    --spacing-xxs: 0.24vw;
    --spacing-xs: 0.4vw;
    --spacing-sm: 0.8vw;
    --spacing-md: 1.2vw;
    --spacing-lg: 1.6vw;
    --spacing-xl: 2vw;
    --spacing-xxl: 3vw;
    --spacing-section: 4vw;
    --container-width: 90vw;
    --header-height: 4vw;

    /* == 4. Borders & Shadows == */
    --radius-sm: 0.6vw;
    --radius-md: 0.8vw;
    --radius-lg: 1.2vw;
    --radius-full: 50%;

    --shadow-soft: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.12);
    --shadow-hard: 0 0.8vw 2.4vw rgba(0, 0, 0, 0.18);
    --shadow-focus: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.25);
    --shadow-glass: 0 0.12vw 0.32vw rgba(0, 0, 0, 0.15),
        0 0.24vw 0.64vw rgba(0, 0, 0, 0.2),
        0 0 0.48vw rgba(var(--brand-primary-rgb), 0.4);

    /* == 5. Transitions & Animations == */
    --transition-fast: all 0.2s ease-in-out;
    --transition-base: all 0.3s ease-in-out;

    /* == 6. Images == */
    --logo-main: url('../img/logo.png');
}
    /*
    * 1.0 - Local Font Definitions
    * -------------------------------------------------------------------------
    */
    @font-face {
        font-family: 'YekanBakhFaNum';
        src: url('../fonts/YekanBakhFaNum-Thin.woff2') format('woff2');
        font-weight: 100;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'YekanBakhFaNum';
        src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'YekanBakhFaNum';
        src: url('../fonts/YekanBakhFaNum-ExtraBold.woff2') format('woff2');
        font-weight: 800;
        font-style: normal;
        font-display: swap;
    }
    /*
    * 2.0 - General Styles
    * -------------------------------------------------------------------------
    */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-base);
}
body {
    background-color: var(--bg-page);
    direction: rtl;
    color: var(--text-dark);
}
a {
    text-decoration: none;
    color: inherit;
    }
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    /*
    * 3.0 - Header & Navigation (Desktop)
    * -------------------------------------------------------------------------
    */
.header-wrap {
    width: var(--container-width);
    max-width: calc(var(--container-width));
    margin: var(--spacing-lg) auto 0 auto;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
        display: flex;
        justify-content: center;
        pointer-events: none;
        background: transparent;
    }
.header-nav-glass {
    width: 100%;
    min-height: var(--header-height);
    background: var(--bg-glass-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: calc(var(--spacing-xs) * 1.25) var(--spacing-md);
    border: 1px solid var(--border-color-glass);
    pointer-events: all;
    -webkit-backdrop-filter: blur(1vw);
    backdrop-filter: blur(1vw);
    transition: var(--transition-base), box-shadow 0.3s ease;
}
.header-nav-glass:hover {
    transform: translateY(-0.16vw);
    box-shadow: 0 0.4vw 0.96vw rgba(0, 0, 0, 0.25), 0 0 0.48vw rgba(106, 90, 205, 0.4);
}
    .header-logo-center {
        flex: 0 0 10%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
.header-logo-center img {
    display: block;
    width: 3.8vw;
    height: 3.8vw;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
    .header-logo-center img:hover {
        transform: scale(1.1);
    }
.menu-section {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    gap: var(--spacing-xxs);
    justify-content: flex-start;
}
.menu-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxs);
    flex-wrap: nowrap;
    list-style: none;
}
    .menu-item {
        position: relative;
        display: flex;
        align-items: center;
    }
.menu-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-base);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: none;
    text-decoration: none;
}
.menu-link .fas.fa-chevron-down {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    margin-right: calc(var(--spacing-xs) * 0.8);
    transition: var(--transition-fast);
    color: var(--text-dark);
}
    .menu-item:hover .menu-link .fas.fa-chevron-down {
        transform: rotate(180deg);
    }
.menu-link:hover,
    .menu-link.active {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        transform: translateY(-0.08vw);
    }
    .menu-link:hover .fas, .menu-link.active .fas {
        color: var(--text-on-accent);
    }
    /* 3.1 - Mega Menu (Desktop) */
    .has-mega-dropdown {
        position: relative;
    }
    .mega-dropdown {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 0.1vw;
        width: 45vw;
        min-width: 380px;
        z-index: 1000;
        background-color: var(--bg-page);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-medium);
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-lg) var(--spacing-sm);
        flex-direction: row;
        gap: 0;
        animation: slideIn 0.3s ease;
    }
    .mega-dropdown::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: 0;
        background: var(--bg-glass-light);
        border: 1px solid var(--border-color-glass);
        border-radius: var(--radius-lg);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    @keyframes slideIn {
        from { opacity: 0; transform: translateY(0.4vw); }
        to { opacity: 1; transform: translateY(0); }
    }
    .has-mega-dropdown:hover .mega-dropdown {
        display: flex;
    }
    .mega-products-list,
    .mega-factories-list,
    .mega-category-preview {
        width: 33.33%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .mega-products-list {
        border-left: 1.2px solid rgba(0, 0, 0, 0.15);
        padding-left: var(--spacing-sm);
    }
    .mega-factories-list {
        padding-right: var(--spacing-sm);
    }
    .mega-products-list ul,
    .mega-factories-list ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .mega-products-list li,
    .mega-factories-list li {
        margin-bottom: var(--spacing-sm);
    }
    .mega-products-list a,
    .mega-factories-list a {
        width: 100%;
        background: transparent;
        color: var(--brand-primary);
        font-size: calc(var(--font-size-base) * 0.9);
        border: none;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-xs);
        padding: calc(var(--spacing-xs) * 1.2) calc(var(--spacing-xs) * 1.4);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        text-decoration: none;
    }
    .mega-products-list a .fas.fa-chevron-left {
        color: var(--brand-primary);
        transition: color 0.2s ease;
    }
    .mega-products-list li.active a,
    .mega-products-list a:hover,
    .mega-factories-list a:hover {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        transform: translateX(-0.16vw);
    }
    .mega-products-list li.active a .fas.fa-chevron-left,
    .mega-products-list a:hover .fas.fa-chevron-left {
        color: var(--text-on-accent);
    }
    .mega-category-preview {
        min-width: 108px;
        padding-right: var(--spacing-md);
        align-items: center;
        gap: var(--spacing-sm);
    }
    .mega-category-img {
        width: 100%;
        max-width: 6.4vw;
        border-radius: var(--radius-sm);
        box-shadow: 0 1.6px 11.2px rgba(0, 0, 0, 0.4);
        margin-bottom: var(--spacing-sm);
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    .mega-category-img:hover {
        transform: scale(1.05);
    }
    .mega-category-btn {
        display: inline-block;
        padding: calc(var(--spacing-xs) * 1.4) calc(var(--spacing-lg) * 1.1);
        border-radius: var(--radius-md);
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        font-weight: bold;
        font-size: calc(var(--font-size-base) * 0.9);
        border: none;
        box-shadow: var(--shadow-medium);
        transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
        text-align: center;
        cursor: pointer;
        text-decoration: none;
    }
    .mega-category-btn:hover {
        background: var(--brand-primary-light);
        color: var(--text-dark);
        transform: translateY(-0.16vw);
    }
    /* 3.2 - Search, User & Contact (Desktop) */
    .search-user-contact-section {
        flex: 0 0 45%;
        display: flex;
        align-items: center;
        gap: 0.64vw;
        justify-content: flex-end;
        position: relative;
    }
    .search-btn,
    .user-btn,
    .contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.8vw;
        height: 2.8vw;
        border-radius: 50%;
        border: 1px solid transparent;
        background: var(--bg-glass-light);
        color: var(--text-dark);
        box-shadow: var(--shadow-glass);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        z-index: 10;
        text-decoration: none;
    }
    .contact-btn {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
    }
    .search-btn i,
    .user-btn i,
    .contact-btn i {
        font-size: var(--font-size-md);
    }
    .search-btn:hover,
    .user-btn:hover,
    .contact-btn:hover {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        transform: scale(1.1);
        box-shadow: 0 0 0.8vw rgba(106, 90, 205, 0.7);
    }
    .search-btn.active {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
    }

    .user-cart {
        position: relative;
    }
    .user-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1vw;
        width: 15vw;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(0.8vw);
        backdrop-filter: blur(0.8vw);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0.8vw;
        box-shadow: 0 0.4vw 1vw rgba(0, 0, 0, 0.15);
        padding: 0.5rem 0;
        z-index: 200;
    }
    .user-dropdown.open {
        display: block;
    }
    .user-dropdown .account-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .user-dropdown .account-menu li a {
        display: block;
        padding: 0.5rem 1rem;
        color: var(--text-dark);
        text-decoration: none;
    }
    .user-dropdown .account-menu li a:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    .user-dropdown .account-panel-btn {
        display: block;
        margin: 0.5rem 1rem 0;
        padding: 0.5rem;
        text-align: center;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        border-radius: 0.4rem;
        text-decoration: none;
    }

    .woocommerce-notices-wrapper {
        position: fixed;
        bottom: 1.2rem;
        right: 1.2rem;
        z-index: 300;
        max-width: 90vw;
    }
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        position: relative;
        background: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: blur(0.8vw);
        backdrop-filter: blur(0.8vw);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 0.8vw;
        padding: 1rem 2.5rem 1rem 1rem;
        margin-bottom: 1rem;
        color: var(--text-dark);
        box-shadow: 0 0.4vw 1vw rgba(0, 0, 0, 0.15);
    }
    .notice-close {
        position: absolute;
        top: 0.4rem;
        left: 0.4rem;
        background: transparent;
        border: none;
        color: var(--text-dark);
        font-size: var(--font-size-base);
        cursor: pointer;
        width: 90%;
        margin: 0 auto 2vw auto;
    }
    .woocommerce-message,
    .woocommerce-info {
        background: var(--bg-surface);
        border-right: 0.4vw solid var(--brand-primary);
        padding: 1vw 2vw;
        border-radius: 0.8vw;
        color: var(--text-dark);
    }
    .woocommerce-error {
        background: var(--error-bg);
        border-right: 0.4vw solid var(--error);
        padding: 1vw 2vw;
        border-radius: 0.8vw;
        color: var(--text-dark);
    }

    .site-main {
    }
    .search-container {
        position: relative;
    }
    .search-input {
        display: none;
        width: 0;
        height: 2.4vw;
        padding: 0 2.4vw 0 0.8vw;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.6vw;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        color: var(--text-dark);
        font-size: var(--font-size-sm);
        outline: none;
        position: absolute;
        left: 2.24vw;
        top: 50%;
        transform: translateY(-50%);
        -webkit-backdrop-filter: blur(1vw);
        backdrop-filter: blur(1vw);
        transition: width 0.3s ease, opacity 0.3s ease;
        z-index: 9;
    }
    .search-input.active {
        display: block;
        width: 20vw;
        opacity: 1;
        animation: slideInSearch 0.3s ease forwards;
    }
    .search-close {
        position: absolute;
        left: 0.4vw;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: var(--text-dark);
        font-size: var(--font-size-base);
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: 11;
    }
    .search-input.active ~ .search-close {
        opacity: 1;
    }
    .search-results {
        position: absolute;
        top: 110%;
        left: 2.24vw;
        width: 20vw;
        background: #fff;
        border-radius: 0.6vw;
        box-shadow: 0 0.4vw 1vw rgba(0,0,0,0.1);
        display: none;
        z-index: 99;
        overflow: hidden;
    }
    .search-results.active { display: block; }
    .search-results-item {
        display: flex;
        align-items: center;
        padding: 0.4vw;
        border-bottom: 1px solid #eee;
        color: var(--text-dark);
        text-decoration: none;
    }
    .search-results-item img {
        width: 3vw;
        height: 3vw;
        object-fit: cover;
        margin-left: 0.4vw;
        border-radius: 0.3vw;
    }
    .search-results-item .result-title {
        flex-grow: 1;
    }
    .search-results-item .result-price {
        margin-right: 0.4vw;
        font-weight: bold;
    }
    .no-results {
        padding: 0.4vw;
        text-align: center;
        color: var(--text-dark);
    }
    @keyframes slideInSearch {
        from { width: 0; opacity: 0; }
        to { width: 20vw; opacity: 1; }
    }
    /* 3.3 - Contact Modal (Desktop) */
    .contact-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 2222;
        width: 100vw;
        height: 100vh;
    }
    .contact-modal.active {
        display: block;
    }
    .contact-modal .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(24, 20, 60, 0.2);
        -webkit-backdrop-filter: blur(0.96vw) saturate(130%);
        backdrop-filter: blur(0.96vw) saturate(130%);
        z-index: 1;
    }
    .contact-modal .modal-card-flex {
        display: flex;
        flex-direction: row-reverse;
        align-items: stretch;
        gap: 1.6vw;
        width: 27vw;
        max-width: 36vw;
        min-width: 13.5vw;
        height: 56vh;
        border-radius: 1.6vw;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
        padding: 0;
        overflow: hidden;
        position: absolute;
        left: 2.4vw;
        bottom: 4vw;
        box-shadow: 0 3.2px 32px rgba(0, 0, 0, 0.4), 0 0 0.48vw rgba(106, 90, 205, 0.4);
        z-index: 3;
        animation: callIn 0.44s cubic-bezier(0.61, 0.3, 0.28, 1.2);
    }
    @keyframes callIn {
        from { opacity: 0; transform: translateY(48%) scale(0.93); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .modal-side-bg {
        width: 4.8vw;
        height: 100%;
        background: var(--text-dark);
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        border-radius: 0 1.6vw 1.6vw 0;
        overflow: hidden;
        z-index: 3;
    }
    .modal-close {
        margin-top: 0.96vw;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        border: none;
        border-radius: 50%;
        font-size: var(--font-size-lg);
        width: 2.3vw;
        height: 2.3vw;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
        box-shadow: 0 0.12vw 0.32vw rgba(0, 0, 0, 0.15);
    }
    .modal-close:hover {
        background: var(--brand-primary-light);
        color: var(--text-dark);
        transform: scale(1.1);
        box-shadow: 0 0 0.48vw rgba(106, 90, 205, 0.4);
    }
    .side-close-label {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        color: var(--text-on-accent);
        font-size: var(--font-size-sm);
        font-weight: 500;
        letter-spacing: -0.02em;
        margin-top: 0.56vw;
        text-shadow: 0 0.1vw 0.64vw var(--shadow-dark-color);
        user-select: none;
        opacity: 0.9;
        text-align: center;
    }
    .contact-modal .modal-content-box {
        flex: 1 1 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
        min-width: 7.2vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        padding: 0.8vw;
        border-radius: 1.6vw 0 0 1.6vw;
        height: 100%;
        z-index: 2;
        -webkit-backdrop-filter: blur(1vw);
        backdrop-filter: blur(1vw);
    }
    .modal-logo {
        width: 2.5vw;
        height: 2.5vw;
        margin: 0.8vw 0.8vw 0 0;
        filter: grayscale(100%) brightness(0%);
        transition: transform 0.3s ease;
    }
    .modal-logo:hover {
        transform: scale(1.1);
    }
    .modal-title-sub {
        font-size: var(--font-size-base);
        color: var(--text-dark);
        margin-top: 0.8vw;
        margin-right: 0.12vw;
        letter-spacing: 0.01em;
        font-weight: 600;
    }
    .modal-contact-details {
        margin-bottom: 0.96vw;
        font-size: var(--font-size-sm);
        color: var(--text-dark);
    }
    .contact-detail {
        margin-bottom: 0.48vw;
        line-height: 1.8;
    }
    .contact-detail a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .contact-detail a:hover {
        color: var(--brand-primary);
    }
    .modal-cta-btn {
        margin-top: 0.64vw;
        margin-bottom: 0.96vw;
        font-size: var(--font-size-base);
        width: 100%;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        font-weight: bold;
        border-radius: 0.8vw;
        box-shadow: 0 0.12vw 0.32vw rgba(0, 0, 0, 0.15), 0 0 0.48vw rgba(106, 90, 205, 0.4);
        border: none;
        transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
        padding: 0.56vw;
        cursor: pointer;
    }
    .modal-cta-btn:hover {
        background: var(--brand-primary-light);
        color: var(--text-dark);
        transform: translateY(-0.16vw);
    }
    .modal-socials {
        display: flex;
        justify-content: center;
        gap: 0.8vw;
        margin-bottom: 0.96vw;
        width: 100%;
    }
    .modal-social {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2vw;
        height: 2vw;
        border-radius: 0.64vw;
        background: var(--text-dark);
        box-shadow: 0 0.12vw 0.32vw rgba(0, 0, 0, 0.15);
        color: var(--text-on-accent);
        font-size: var(--font-size-base);
        transition: background 0.2s ease, transform 0.2s ease;
        text-decoration: none;
    }
    .modal-social:hover {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        transform: scale(1.1);
    }
    /* 3.4 - Mobile Navigation (Hidden on Desktop) */
    .mobile-nav,
    .mobile-bottom-nav,
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none;
    }
    /*
    * 4.0 - Page Sections (Homepage, etc.)
    * -------------------------------------------------------------------------
    */
    /* 4.1 - Intro Section */
    .intro-section {
        width: 100%;
        margin: 8vw auto 4vw auto;
        padding: 2vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .intro-container {
        width: 90vw;
        max-width: calc(90vw);
        display: flex;
        flex-direction: row-reverse;
        align-items: stretch;
        justify-content: space-between;
        gap: 2vw;
    }
    .intro-content {
        flex: 0 0 60%;
        padding: 2vw;
        text-align: right;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .intro-title {
        font-size: var(--font-size-xl);
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 1vw;
        line-height: 1.4;
        text-shadow: 0 0.1vw 0.2vw rgba(0, 0, 0, 0.1);
    }
    .intro-description {
        font-size: var(--font-size-md);
        color: var(--text-dark);
        margin-bottom: 2vw;
        line-height: 1.8;
        opacity: 0.9;
    }
    .intro-cta {
        display: flex;
        gap: 1vw;
    }
    .intro-btn {
        padding: 0.8vw 2vw;
        border-radius: 0.8vw;
        font-size: var(--font-size-base);
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
        box-shadow: 0 0.12vw 0.32vw rgba(0, 0, 0, 0.15);
    }
    .intro-btn.primary {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
    }
    .intro-btn.primary:hover {
        background: var(--brand-primary-light);
        color: var(--text-dark);
        transform: translateY(-0.16vw);
    }
    .intro-btn.secondary {
        background: transparent;
        border: 1px solid rgba(106, 90, 205, 0.4);
        color: var(--brand-primary);
    }
    .intro-btn.secondary:hover {
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        transform: translateY(-0.16vw);
    }
    .intro-logo {
        flex: 0 0 40%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .intro-img {
        width: 50%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    .intro-img:hover {
        transform: scale(1.1);
    }
    /* 4.2 - Intro Links */
    .intro-links {
        width: 90%;
        max-width: calc(90vw);
        margin: 2vw auto 0 auto;
    }
    .intro-links-list {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
    }
    .intro-link {
        display: inline-block;
        padding: 0.5vw 1.8vw;
        border-radius: 0.5vw;
        background: transparent;
        border: 1px solid rgba(106, 90, 205, 0.3);
        color: var(--text-dark);
        font-size: var(--font-size-sm);
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    .intro-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0.1vw;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }
    .intro-link:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
    .intro-link:hover {
        color: var(--brand-primary);
        border-color: rgba(106, 90, 205, 0.6);
        transform: translateY(-0.1vw);
    }
    /* 4.3 - Products Section *//* 4.3 - Products Section (v1.3) */
.products-section {
  width: 90vw;
  max-width: 90vw;
  margin: 4vw auto;
}
.products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5vw;
}
.product-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  border-radius: 0.8vw;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.2vw;
  box-shadow: 0 0.1vw 0.3vw rgba(0,0,0,0.1), 0 0 0.2vw rgba(106,90,205,0.3);
  transition: transform .3s ease, box-shadow .3s ease;
  -webkit-backdrop-filter: blur(.8vw);
  backdrop-filter: blur(.8vw);
}
.product-box:hover {
  transform: translateY(-.2vw);
  box-shadow: 0 0.3vw 0.8vw rgba(0,0,0,0.2), 0 0 0.4vw rgba(106,90,205,0.5);
}
.category-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.8vw 0 0.4vw;
  text-align: right;
}
.category-description {
  font-size: var(--font-size-xs);
  color: var(--text-dark);
  margin-bottom: 0.8vw;
  text-align: right;
}
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1vw;
}
.product-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: background .2s ease;
}
.product-table tr:hover {
  background: rgba(106,90,205,0.12);
}
.product-table td {
  padding: 0.6vw;
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--text-dark);
  vertical-align: middle;
}
.factory-logo {
  width: 2.2vw;
  height: 2.2vw;
  object-fit: contain;
  border-radius: 0.3vw;
}
.product-link {
  color: var(--brand-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.product-link:hover { color: var(--brand-secondary); }
.price { font-weight: 600; color: var(--text-dark); }

/* price difference state */
.price-diff {
  display: inline-block;
  margin-inline-start: .5em;
  font-weight: 600;
  font-size: var(--font-size-xs);
  padding: .2em .5em;
  border-radius: .4em;
}
.price-diff.up   { background: var(--error-bg-light); color: var(--error-dark); } /* گران‌تر */
.price-diff.down { background: var(--success-bg-light); color: var(--success-darker); } /* ارزان‌تر */

.chart-btn {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  padding: 0.4vw;
  border-radius: 0.4vw;
  cursor: pointer;
  transition: all .2s ease;
}
.chart-btn i { font-size: var(--font-size-base); }
.chart-btn:hover {
  background: var(--brand-gradient);
  color: var(--text-on-accent);
  transform: scale(1.08);
}

.category-btn {
  display: inline-block;
  padding: 0.5vw 1.5vw;
  border-radius: 0.5vw;
  background: var(--brand-gradient);
  color: var(--text-on-accent);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-decoration: none;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.category-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0.1vw;
  background: var(--brand-primary-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.category-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.category-btn:hover {
  background: var(--brand-primary-light);
  color: var(--text-dark);
  transform: translateY(-0.1vw);
}

/* 4.4 - Chart Modal (v1.3) */
.chart-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.chart-modal.active { display: flex; }
.chart-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 60, 0.6);
  -webkit-backdrop-filter: blur(.6vw);
  backdrop-filter: blur(.6vw);
}
.chart-modal-content {
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
  border-radius: .8vw;
  border: 1px solid rgba(255,255,255,.3);
  padding: 1.2vw;
  width: 35vw;
  max-width: 520px;
  position: relative;
  box-shadow: 0 .3vw 1vw rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(.8vw);
  backdrop-filter: blur(.8vw);
  animation: slideIn .3s ease;
}
.chart-modal-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: .8vw;
  text-align: right;
}
.chart-modal-content .chart-placeholder {
  width: 100%;
  height: 15vw;
  background: rgba(247,247,247,.49);
  border-radius: .4vw;
  margin-bottom: .8vw;
}
.chart-modal-description {
  font-size: var(--font-size-xs);
  opacity: .95;
  margin-bottom: .8vw;
  text-align: right;
  color: var(--text-on-accent);
}

/* CTA area */
.chart-modal-cta {
  display: flex;
  gap: .6vw;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: .4vw;
}
.chart-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55vw 1.5vw;
  border-radius: .6vw;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all .2s ease;
}
.chart-modal-btn i { font-size: var(--font-size-base); }
.chart-modal-btn.cta-primary {
  background: var(--brand-gradient);
  color: var(--text-on-accent);
}
.chart-modal-btn.cta-primary:hover {
  background: var(--brand-primary-light);
  color: var(--text-dark);
  transform: translateY(-.05vw);
}
.chart-modal-btn.cta-secondary {
  background: transparent;
  border: 1px solid rgba(106, 90, 205, .5);
  color: var(--brand-primary);
}
.chart-modal-btn.cta-secondary:hover {
  background: var(--brand-gradient);
  color: var(--text-on-accent);
}

.chart-modal-close {
  position: absolute;
  top: .5vw; left: .5vw;
  background: var(--brand-gradient);
  border: none; color: var(--text-on-accent);
  font-size: var(--font-size-sm); width: 2vw; height: 2vw;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease;
}
.chart-modal-close:hover {
  background: var(--brand-primary-light);
  color: var(--text-dark);
  transform: scale(1.08);
}
    }

.chart-modal-btn.cta-call {
  background: linear-gradient(45deg, var(--success-light), var(--success));
  color: var(--text-on-accent);
  border: 1px solid rgba(34, 197, 94, .25);
}
.chart-modal-btn.cta-call:hover {
  background: var(--success-bg);
  color: var(--success-dark);
  transform: translateY(-.05vw);
}

/* آیکن تلفن مینیمال */
.phone-anim .phone-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
}

/* امواج سیگنال با انیمیشن Pulse */
.phone-anim .signal {
  opacity: 0;
  transform-origin: center;
  animation: phone-signal 1.8s ease-in-out infinite;
}
.phone-anim .signal-1 { animation-delay: .15s; }
.phone-anim .signal-2 { animation-delay: .45s; }

@keyframes phone-signal {
  0%   { opacity: 0;   transform: scale(0.9); }
  35%  { opacity: .9;  transform: scale(1);   }
  80%  { opacity: 0.15;transform: scale(1.05);}
  100% { opacity: 0;   transform: scale(1.05);}
}

/* یک نوسان خیلی خفیف برای کل آیکن، مینیمال و شیک */
.phone-anim .handset {
  animation: phone-wiggle 2.4s ease-in-out infinite;
  transform-origin: 6px 6px; /* حدوداً لولای گوشی */
}
@keyframes phone-wiggle {
  0%   { transform: rotate(0deg); }
  6%   { transform: rotate(-6deg); }
  12%  { transform: rotate(6deg); }
  18%  { transform: rotate(-4deg); }
  24%  { transform: rotate(3deg); }
  30%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}    
    /* 4.5 - Magazine (Blog) Section */
    .magazine-section {
        width: 90vw;
        max-width: 90vw;
        margin: 4vw auto;
    }
    .magazine-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .section-title {
        font-size: var(--font-size-lg);
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 2vw;
        text-align: center;
        position: relative;
    }
    .section-title::after {
        content: '';
        width: 5vw;
        height: 0.2vw;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        position: absolute;
        bottom: -0.5vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5vw;
        width: 100%;
    }
    .blog-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
        border-radius: 0.8vw;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 1vw;
        box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        -webkit-backdrop-filter: blur(0.8vw);
        backdrop-filter: blur(0.8vw);
    }
    .blog-card:hover {
        transform: translateY(-0.2vw);
        box-shadow: 0 0.3vw 0.8vw rgba(0, 0, 0, 0.2), 0 0 0.4vw rgba(106, 90, 205, 0.5);
    }
    .blog-image {
        width: 100%;
        height: 10vw;
        object-fit: cover;
        border-radius: 0.5vw;
        margin-bottom: 0.8vw;
    }
    .blog-title {
        font-size: var(--font-size-base);
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.5vw;
        text-align: right;
    }
    .blog-description {
        font-size: var(--font-size-xs);
        color: var(--text-dark)333;
        margin-bottom: 0.8vw;
        text-align: right;
    }
    .blog-link {
        display: inline-block;
        font-size: var(--font-size-xs);
        color: var(--brand-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    .blog-link:hover {
        color: var(--brand-secondary);
    }
    .all-blogs-btn {
        display: inline-block;
        padding: 0.6vw 2vw;
        border-radius: 0.5vw;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        font-size: var(--font-size-sm);
        font-weight: 500;
        text-decoration: none;
        margin-top: 2vw;
        transition: all 0.3s ease;
    }
    .all-blogs-btn:hover {
        background: var(--brand-primary-light);
        color: var(--text-dark);
        transform: translateY(-0.1vw);
    }
    /*
    * ==========================================================================
    * 5.0 - Site Footer Styles
    * ==========================================================================
    */
    /**
    * Base footer styles for modern, minimal design.
    * Focuses on gradient background, grid layout, and RTL support.
    * Ensures semantic class names for better maintainability.
    *
    * @since 1.0.0
    */
    .site-footer {
        color: #f0f0f0;
        padding-top: 3vw;
        margin-top: 4vw;
        text-align: center; /* Center-align all text for minimal, balanced design */
    }
    .footer-box {
        width: 90vw;
        max-width: calc(90vw);
        margin: 0 auto;
        border-radius: 1.2vw 1.2vw 0 0;
        background: linear-gradient(145deg, #2b2b4a, #3a3a6a);
        overflow: hidden;
        box-shadow: 0 -0.2vw 0.5vw rgba(0, 0, 0, 0.2);
        padding: 2vw 2vw 0.5vw 2vw;
    }
    .footer-container {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; /* 5-column layout for balanced distribution */
        gap: 2vw;
        padding-bottom: 2vw;
        justify-items: center; /* Center grid items horizontally */
    }
    .footer-column {
        padding: 1vw 0;
        text-align: center; /* Center-align column content */
    }
    /* --- Column 1: About --- */
    .footer-about .footer-logo-link {
        display: inline-block;
        margin-bottom: 1rem;
    }
    .footer-about .footer-logo {
        max-width: 80px; /* Adjusted for new white icon logo to fit minimal design */
        height: auto;
        transition: transform 0.3s ease;
    }
    .footer-about .footer-logo:hover {
        transform: scale(1.05);
    }
    .footer-description {
        font-size: var(--font-size-xs);
        line-height: 1.8;
        color: #cccccc;
        max-width: 280px;
        margin: 0 auto; /* Center description block */
    }
    /* --- General Column Titles --- */
    .footer-title {
        font-size: var(--font-size-md);
        font-weight: 600;
        color: var(--text-on-accent);
        margin: 0 0 1.2rem 0;
        position: relative;
        padding-bottom: 0.5rem;
    }
    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%; /* Centered underline for center-aligned design */
        transform: translateX(-50%);
        width: 35px;
        height: 2px;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    }
    /* --- Columns 2 & 3: Dynamic Menus --- */
    .footer-nav .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-nav .footer-links li {
        margin-bottom: 0.7rem;
    }
    .footer-nav .footer-links li a {
        color: #cccccc;
        text-decoration: none;
        font-size: var(--font-size-sm);
        transition: color 0.3s ease, padding-right 0.3s ease;
    }
    .footer-nav .footer-links li a:hover {
        color: var(--brand-secondary);
        padding-right: 8px;
    }
    /* --- Column 4: Trust Badges --- */
    .trust-badges {
        display: flex;
        flex-direction: column; /* Vertical stack for minimal space usage */
        align-items: center; /* Center badges for consistent alignment */
        gap: 1rem;
    }
    .trust-badges .trust-image {
        max-width: 100px;
        height: auto;
        background: var(--text-on-accent);
        border-radius: 8px;
        padding: 5px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .trust-badges .trust-image.enamad-logo {
        padding: 0; /* Specific adjustment for eNamad */
        background: transparent;
    }
    .trust-badges .trust-image:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(138, 74, 243, 0.4);
    }
    /* --- Column 5: Location --- */
    .google-map-embed {
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid #3a3a6a;
        margin-bottom: 1rem;
        margin: 0 auto; /* Center map embed */
    }
    /* --- Footer Address Row (Separate for better UX) --- */
    .footer-address-row {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 20px 0;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }
    .footer-address-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns side-by-side */
        gap: 20px;
        width: 100%;
        max-width: 1200px;
        justify-items: center; /* Center items in grid */
    }
    .footer-address-item {
        display: flex;
        align-items: center;
        font-size: var(--font-size-sm);
        color: #cccccc;
        justify-content: center; /* Center item content */
    }
    .footer-address-item i {
        margin-left: 10px; /* RTL space */
        color: var(--brand-primary);
        flex-shrink: 0;
    }
    .footer-address-item span {
        flex: 1;
    }
    /* --- Footer Bottom Bar --- */
    .footer-bottom {
        text-align: center;
        padding: 1.5vw 0;
        border-top: 1px solid #3a3a6a;
    }
    .footer-copyright {
        font-size: var(--font-size-xs);
        color: #a0a0a0;
    }

	/* Footer Socials */
.footer-socials {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-social-link i {
    font-size: var(--font-size-md);
}
.footer-social-link:hover {
    background: var(--brand-primary);
    color: var(--text-on-accent);
    transform: scale(1.1);
}

.footer-social-link:focus {
    box-shadow: var(--shadow-focus);
}
@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
    }
    
    .footer-social-link {
        width: 36px;
        height: 36px;
    }
}
    /**
    * Responsive styles for footer.
    * Extracted for conditional loading and better organization.
    *
    * @since 1.0.0
    */
    /* Tablet View */
    @media (max-width: 1024px) {
        .footer-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5vw;
        }
        .footer-about {
            grid-column: 1 / -1;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .trust-badges, .footer-address-item {
            justify-content: center;
            align-items: center;
        }
        .footer-title {
            text-align: center;
        }
        .footer-title::after {
            left: 50%;
            transform: translateX(-50%);
        }
        .footer-nav .footer-links {
            text-align: center;
        }
        .footer-nav .footer-links li a:hover {
            padding-right: 0;
        }
        .footer-address-row {
            padding: 15px 0;
        }
        .footer-address-list {
            grid-template-columns: repeat(2, 1fr); /* Maintain two columns */
            gap: 15px;
        }
        .footer-address-item {
            font-size: var(--font-size-xs);
            align-items: center; /* Center in tablet */
        }
    }
    /* Mobile View */
    @media (max-width: 768px) {
        .site-footer {
            padding: 5vw 5vw 0 5vw;
        }
        .footer-container {
            grid-template-columns: 1fr;
            text-align: center; /* Center-align for mobile as requested */
        }
        .footer-column {
            padding: 1.5rem 0;
            border-bottom: 1px solid #3a3a6a;
        }
        .footer-column:last-child {
            border-bottom: none;
        }
        .footer-about, .trust-badges {
            align-items: center; /* Center items in mobile */
            text-align: center;
        }
        .footer-title {
            text-align: center;
        }
        .footer-title::after {
            left: 50%;
            transform: translateX(-50%);
        }
        .footer-nav .footer-links {
            text-align: center;
        }
        .footer-address-list {
            grid-template-columns: 1fr; /* Single column for mobile to avoid crowding, but centered */
            gap: 15px;
        }
        .footer-address-item {
            font-size: var(--font-size-xs);
            justify-content: center; /* Center address items in mobile */
        }
        .footer-copyright {
            font-size: calc(var(--font-size-xs) * 0.8);
            opacity: 0.8;
        }
    }
    /*
    * ==========================================================================
    * 11.0 - Category Article Box Styles
    * ==========================================================================
    */
    .category-article-box {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
        border-radius: 1.2vw;
        padding: 2.5vw;
        margin-top: 3vw;
        box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.1), 0 0 0.2vw rgba(106, 90, 205, 0.3);
        -webkit-backdrop-filter: blur(0.8vw);
        backdrop-filter: blur(0.8vw);
    }
    .category-article-box .section-title::after {
        content: '';
        width: 6vw;
        height: 0.2vw;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        position: absolute;
        bottom: -0.7vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .category-article-box .article-content {
        font-size: var(--font-size-base);
        line-height: 2;
        color: var(--text-dark);
    }
    .category-article-box .article-content p,
    .category-article-box .article-content ul,
    .category-article-box .article-content ol {
        margin-bottom: 1em;
    }
    .category-article-box .article-content h2,
    .category-article-box .article-content h3 {
        font-size: var(--font-size-md);
        font-weight: 600;
        color: var(--text-dark);
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }
    .category-article-box .article-content a {
        color: var(--brand-primary);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid rgba(106, 90, 205, 0.3);
        transition: all 0.2s ease;
    }
    .category-article-box .article-content a:hover {
        color: var(--text-on-accent);
        background-color: var(--brand-primary);
        border-bottom-color: var(--brand-primary);
    }
    /*
    * ==========================================================================
    * 12.0 - Breadcrumb & Table of Contents (TOC) - OLD STYLES
    * ==========================================================================
    */
    /* These styles are deprecated and have been removed as they are now in template parts. */
    /*
    * ==========================================================================
    * 13.0 - Boxed Archive Header & Main Container Styles
    * ==========================================================================
    */
    /* Main container for Shop & Archive pages to match site width */
    .woocommerce-page-container.main-content {
        width: 90vw;
        margin: 8vw auto 4vw;
        margin-top: 8vw;
    }
    .archive-header-boxed {
        background-color: var(--text-on-accent);
        border-radius: .8rem;
        padding: 2.5rem;
        margin-bottom: 2rem;
        border: 1px solid #e9ecef;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    .archive-header-boxed .woocommerce-breadcrumb {
        font-size: var(--font-size-xs);
        color: #6c757d;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        white-space: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .archive-header-boxed .woocommerce-breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .archive-header-boxed .woocommerce-breadcrumb a {
        color: #6c757d;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .archive-header-boxed .woocommerce-breadcrumb a:hover {
        color: var(--brand-primary);
    }
    .archive-header-boxed .woocommerce-breadcrumb .breadcrumb-separator {
        font-size: calc(var(--font-size-xs) * 0.8);
    }
    .archive-header-boxed h1.woocommerce-products-header__title {
        display: none; /* Hide H1 from this box */
    }
    /*
    * ==========================================================================
    * 14.0 - Archive Content Content Header
    * ==========================================================================
    */
    .content-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2vw;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .content-header .page-title {
        margin: 0;
        font-size: var(--font-size-lg);
        font-weight: 700;
        color: #212529;
        flex-shrink: 0;
    }
    .content-header .sort-options {
        margin: 0;
    }
    /* Styling for the new STRONG title in the category article box */
    .category-article-box .article-content-title {
        display: block;
        font-size: var(--font-size-lg);
        font-weight: 700;
        margin-bottom: 1.2rem;
        color: var(--text-dark);
    }
    /* Remove the old ::after pseudo-element from the container title */
    .category-article-box .section-title::after {
        display: none;
    }
    /*
    * ==========================================================================
    * 15.0 - Responsive for Archive Pages
    * ==========================================================================
    */
    @media (max-width: 1024px) {
        .archive-grid-layout {
            grid-template-columns: 1fr; /* Stack sidebar and content */
        }
        .sidebar {
            position: static;
            margin-bottom: 2vw;
        }
    }
    @media (max-width: 768px) {
        .woocommerce-page-container.main-content {
            padding: 4vw 2vw;
            margin-top: 12vw;
        }
        .sidebar h2, .price-table h2 { font-size: var(--font-size-lg); }
        .filter-group label, .price-table table, .sort-options select, .filter-group select, .download-csv { font-size: var(--font-size-base); }
        .archive-header-boxed h1.woocommerce-products-header__title { font-size: var(--font-size-lg); }
        .content-header .page-title {
            font-size: var(--font-size-lg);
            width: 100%;
            text-align: right;
            margin-bottom: 1rem;
        }
        .content-header {
            margin-bottom: 3vw;
        }
        .category-article-box .article-content-title {
            font-size: var(--font-size-lg);
        }
    }
    /* --- استایل سفارشی برای نقل‌قول (Blockquote) با آیکون در سمت چپ --- */
    blockquote {
        /* استایل اصلی کادر شیشه‌ای */
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 20px 0 rgba(106, 90, 205, 0.1);
        padding: 1.5rem;
        position: relative;
        overflow: hidden;
        margin: 1.5rem 0;
    }
    blockquote::before {
        /* علامت بزرگ نقل‌قول در پس‌زمینه */
        content: "\f10d";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 1rem;
        left: 1.5rem; /* <<-- تغییر در این خط اعمال شد */
        font-size: var(--font-size-xl);
        color: rgba(106, 90, 205, 0.08);
        z-index: 0;
    }
    blockquote p {
        /* استایل متن داخل نقل‌قول */
        font-size: var(--font-size-sm);
        line-height: 1.9;
        font-weight: 400;
        color: #343a40;
        margin: 0;
        position: relative;
        z-index: 1;
    }
    /* --- Styles for Stacked Price & Price Difference --- */
    .price-cell {
        /* No special style needed, stacking is handled by child elements */
    }
    .price-cell .price {
        display: block; /* Makes the price take up the full line */
        font-size: var(--font-size-xs);
        font-weight: 700;
    }
    .price-cell .price-diff {
        display: inline-block; /* Allows it to have padding and background */
        margin-top: 0.3vw; /* Adds space above */
        padding: 0.15vw 0.4vw;
        font-size: var(--font-size-xs);
        font-weight: 700;
        border-radius: 0.3vw;
        line-height: 1.2;
        color: var(--text-on-accent);
        direction: ltr;
    }
    /* Price went DOWN (Green) */
    .price-cell .price-diff.positive {
        background-color: #2e7d32; /* Dark Green */
    }
    /* Price went UP (Red) */
    .price-cell .price-diff.negative {
        background-color: #c62828; /* Dark Red */
    }
    /* ==========================================================================
    FIX for Dynamic Hero Quick Links Menu
    ========================================================================== */
    .intro-links-list {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
    }
    .intro-links-list li a {
        display: inline-block;
        padding: 0.5vw 1.8vw;
        border-radius: 0.5vw;
        background: transparent;
        border: 1px solid rgba(106, 90, 205, 0.3);
        color: var(--text-dark);
        font-size: var(--font-size-sm);
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    .intro-links-list li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0.1vw;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }
    .intro-links-list li a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
    .intro-links-list li a:hover {
        color: var(--brand-primary);
        border-color: rgba(106, 90, 205, 0.6);
        transform: translateY(-0.1vw);
    }
    /*
    * ==========================================================================
    * 3.5 - Ahanit Toolkit Section (Home Calculator)
    * ==========================================================================
    */
    .ahanit-toolkit-section {
        width: 90vw;
        max-width: 90vw;
        margin: 4vw auto;
    }
    .ahanit-toolkit-container {
        display: grid;
        grid-template-columns: 1fr 22vw;
        gap: 1.5vw;
    }
    .calculator-main, .calculator-sidebar {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 1.2vw;
        padding: 2.5vw;
        box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.1), 0 0 0.2vw rgba(106, 90, 205, 0.3);
        -webkit-backdrop-filter: blur(0.8vw);
        backdrop-filter: blur(0.8vw);
    }
    .calculator-header h2 {
        font-size: var(--font-size-lg);
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.5vw;
    }
    .calculator-header p {
        font-size: var(--font-size-base);
        color: #6c757d;
        margin-bottom: 2vw;
    }
    .calc-tabs {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        margin-bottom: 2vw;
    }
    .calc-tab-trigger {
        background: none;
        border: none;
        font-size: var(--font-size-base);
        font-weight: 600;
        color: var(--text-dark);
        opacity: 0.7;
        padding: 1vw 0;
        margin: 0 1.5vw -1px 0;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.5vw;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
    }
    .calc-tab-trigger:hover {
        opacity: 1;
    }
    .calc-tab-trigger.active {
        color: var(--brand-primary);
        border-bottom-color: var(--brand-primary);
        opacity: 1;
    }
    .calc-tab-trigger .fas {
        font-size: var(--font-size-md);
        width: 1.5em;
        text-align: center;
    }
    .calc-panel {
        display: none;
        animation: fadeIn 0.5s ease;
    }
    .calc-panel.active {
        display: block;
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .input-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(12vw, 1fr));
        gap: 1.5vw;
    }
    .input-group {
        display: flex;
        flex-direction: column;
    }
    .input-group label {
        font-size: var(--font-size-sm);
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.5vw;
    }
    .input-group input, .input-group select {
        height: 3vw;
        width: 100%;
        border-radius: 0.6vw;
        padding: 0 1vw;
        font-size: var(--font-size-base);
        font-weight: 500;
        appearance: none;
        background-color: rgba(255,255,255,0.1);
        color: var(--text-dark);
        border: 1px solid rgba(26, 26, 46, 0.15);
        transition: all 0.3s ease;
    }
    .input-group select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: left 0.75rem center;
        background-size: 16px 12px;
        padding-left: 2.5rem;
    }
    .input-group input:focus, .input-group select:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.25);
        outline: none;
        background-color: rgba(255,255,255,0.3);
    }
    .input-group .unit {
        font-size: var(--font-size-xs);
        color: var(--text-dark);
        opacity: 0.7;
        text-align: right;
        margin-top: 0.3vw;
    }
    .calculator-sidebar {
        position: sticky;
        top: 8vw;
        height: fit-content;
    }
    .results-display {
        text-align: center;
    }
    .results-label {
        font-size: var(--font-size-base);
        font-weight: 600;
        color: var(--text-dark);
        opacity: 0.8;
    }
    .results-value-wrapper {
        margin: 0.5vw 0 1.5vw;
    }
    .results-value {
        font-size: var(--font-size-lg);
        font-weight: 800;
        color: var(--text-dark);
    }
    .results-unit {
        font-size: var(--font-size-base);
        font-weight: 600;
        color: var(--text-dark);
        opacity: 0.8;
        margin-right: 0.5vw;
    }
    .results-cta {
        display: inline-block;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        padding: 0.8vw 2vw;
        border-radius: 0.8vw;
        text-decoration: none;
        font-weight: 600;
        font-size: var(--font-size-base);
        transition: all 0.3s ease;
        text-align: center;
    }
    .results-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
    }
    /* ==========================================================================
    Responsive Styles for Ahanit Toolkit Section
    ========================================================================== */
    @media (max-width: 992px) {
        .ahanit-toolkit-container {
            grid-template-columns: 1fr;
        }
        .calculator-sidebar {
            position: static;
            margin-top: 1.5vw;
        }
        .calculator-header h2 { font-size: var(--font-size-lg); }
        .calculator-header p { font-size: var(--font-size-xl); }
        .calc-tab-trigger { font-size: var(--font-size-xl); }
        .input-group label { font-size: var(--font-size-base); }
        .input-group input, .input-group select { height: 8vw; font-size: var(--font-size-xl); }
        .input-group .unit { font-size: var(--font-size-base); }
        .results-label { font-size: var(--font-size-xl); }
        .results-value { font-size: var(--font-size-xl); }
        .results-unit { font-size: var(--font-size-xl); }
        .results-cta { font-size: var(--font-size-xl); padding: 2vw 4vw; }
    }
    /*
    * ==========================================================================
    * 4.4 - Ahanit Purchase Roadmap Section
    * ==========================================================================
    */
    .ahanit-roadmap-section-v2 {
        width: 90vw;
        max-width: 90vw;
        margin: 4vw auto;
        padding: 2.5vw;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 1.2vw;
        box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.1), 0 0 0.2vw rgba(106, 90, 205, 0.3);
        -webkit-backdrop-filter: blur(0.8vw);
        backdrop-filter: blur(0.8vw);
    }
    .roadmap-container-v2 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5vw;
        position: relative;
        align-items: flex-start;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .roadmap-container-v2::before {
        content: '';
        position: absolute;
        top: 3vw;
        left: 12.5%;
        width: 75%;
        height: 1px;
        background: var(--brand-primary);
        opacity: 0.3;
        z-index: 0;
        animation: drawLine-v2 1.5s 0.5s ease-out forwards;
        width: 0;
    }
    @keyframes drawLine-v2 { from { width: 0; } to { width: 75%; } }
    .roadmap-step-v2 {
        text-align: center;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        animation: popIn-v2 0.6s ease-out forwards;
    }
    @keyframes popIn-v2 {
        from { opacity: 0; transform: translateY(1.5vw) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .roadmap-step-v2:nth-child(1) { animation-delay: 0.2s; }
    .roadmap-step-v2:nth-child(2) { animation-delay: 0.4s; }
    .roadmap-step-v2:nth-child(3) { animation-delay: 0.6s; }
    .roadmap-step-v2:nth-child(4) { animation-delay: 0.8s; }
    .step-icon-wrapper-v2 {
        position: relative;
        margin-bottom: 1.2vw;
    }
    .step-number-v2 {
        position: absolute;
        top: -0.4vw;
        right: -0.4vw;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        width: clamp(20px, 1.5vw, 28px);
        height: clamp(20px, 1.5vw, 28px);
        border-radius: 50%;
        font-size: var(--font-size-sm);
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--text-on-accent);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .step-icon-v2 {
        width: clamp(80px, 6vw, 110px);
        height: clamp(80px, 6vw, 110px);
        border-radius: 50%;
        background: linear-gradient(135deg, var(--text-on-accent), #f7f7f7);
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 0.4vw 1.2vw rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .roadmap-step-v2:hover .step-icon-v2 {
        transform: scale(1.08);
        box-shadow: 0 0.6vw 1.8vw rgba(106, 90, 205, 0.25);
    }
    .step-icon-v2 .fas {
        font-size: var(--font-size-xl);
        color: var(--brand-primary);
    }
    .step-title-v2 {
        font-size: var(--font-size-md);
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.6vw;
    }
    .step-description-v2 {
        font-size: var(--font-size-sm);
        color: #6c757d;
        line-height: 1.7;
        max-width: 18vw;
    }
    .roadmap-final-cta {
        display: flex;
        align-items: center;
        gap: 1.5vw;
        margin-top: 2.5vw;
        padding: 1.5vw;
        border-top: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.1);
        border-radius: 0.8vw;
        animation: popIn-v2 0.6s 1s ease-out forwards;
        opacity: 0;
    }
    .cta-icon {
        flex-shrink: 0;
        width: clamp(50px, 4vw, 70px);
        height: clamp(50px, 4vw, 70px);
        background: var(--brand-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-on-accent);
        font-size: var(--font-size-lg);
        box-shadow: 0 0 0 0 rgba(106, 90, 205, 1);
        animation: pulse 2s infinite;
    }
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(106, 90, 205, 0.4); }
        70% { box-shadow: 0 0 0 15px rgba(106, 90, 205, 0); }
        100% { box-shadow: 0 0 0 0 rgba(106, 90, 205, 0); }
    }
    .cta-text {
        flex-grow: 1;
        text-align: right;
    }
    .cta-text h4 {
        font-size: var(--font-size-lg);
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.4vw;
    }
    .cta-text p {
        font-size: var(--font-size-sm);
        color: #6c757d;
        margin: 0;
    }
    .cta-button-wrapper {
        flex-shrink: 0;
    }
    .phone-button-v2 {
        display: inline-flex;
        align-items: center;
        gap: 0.6vw;
        padding: 0.7vw 1.8vw;
        background: var(--brand-gradient);
        color: var(--text-on-accent);
        font-size: var(--font-size-md);
        font-weight: 700;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
        transition: all 0.3s ease;
    }
    .phone-button-v2:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 7px 20px rgba(106, 90, 205, 0.4);
    }
    .phone-button-v2 .fas {
        font-size: var(--font-size-md);
    }
    /*
    * NOTE FOR DEVELOPER:
    * The following @media queries contain the responsive styles for this component.
    * For better organization, it is recommended to move these rules
    * to the dedicated responsive.css file.
    */
    @media (max-width: 992px) {
        .roadmap-final-cta {
            flex-direction: column;
            text-align: center;
        }
        .cta-text {
            margin: 1rem 0;
        }
    }
    @media (max-width: 768px) {
        .ahanit-roadmap-section-v2 {
            width: 100%; /* Overrides the 90vw for mobile */
            max-width: 100%;
            margin: 8vw auto;
            padding: 6vw 4vw;
            border-radius: 0; /* Full-width sections on mobile often have no radius */
        }
        .roadmap-container-v2 {
            grid-template-columns: 1fr;
            gap: 6vw;
        }
        .roadmap-container-v2::before {
            top: 10vw;
            left: auto;
            right: 10vw; /* Position from the right in RTL */
            width: 1px;
            height: 0;
            bottom: 10vw;
            background: var(--brand-primary);
            animation-name: drawLineVertical-v2;
        }
        @keyframes drawLineVertical-v2 {
            from { height: 0; }
            to { height: calc(100% - 20vw); }
        }
        .step-icon-v2 {
            width: 20vw;
            height: 20vw;
        }
        .step-description-v2 {
            max-width: 80%;
        }
    }
    /*
    * ==========================================================================
    * 4.5.1 - Reusable Blog Post Card (content-card.php)
    * ==========================================================================
    */
    .blog-card {
        background: var(--text-on-accent);
        border: 1px solid #e9ecef;
        border-radius: .8rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
    }
    /* The hover effect is now handled by pure CSS, which is more performant */
    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }
    .blog-card-thumbnail {
        position: relative;
        display: block;
    }
    .blog-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }
    .blog-card-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* This makes the content area fill the available space */
    }
    .blog-title {
        font-size: var(--font-size-md);
        font-weight: 700;
        margin: 0 0 1rem;
        line-height: 1.5;
    }
    .blog-title a {
        text-decoration: none;
        color: #212529;
        transition: color 0.2s ease;
    }
    .blog-title a:hover {
        color: var(--brand-primary);
    }
    .blog-description {
        font-size: var(--font-size-sm);
        color: #6c757d;
        line-height: 1.6;
        flex-grow: 1; /* This pushes the footer down */
        margin-bottom: 1rem;
    }
    .blog-card-footer {
        margin-top: auto; /* This pushes the "Read More" link to the bottom */
    }
    .blog-link {
        display: inline-block;
        color: var(--brand-primary);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s ease;
    }
    .blog-link:hover {
        color: #212529;
    }
    /* --- New Meta Bar Styles --- */
    .card-meta-bar {
        position: absolute;
        top: .8rem;
        right: .8rem;
        z-index: 2;
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
    }
    .meta-item {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        background: rgba(26, 26, 46, 0.7); /* Dark, semi-transparent background */
        color: var(--text-on-accent);
        font-size: var(--font-size-xs);
        font-weight: 500;
        padding: 0.25rem 0.6rem;
        border-radius: 4px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px); /* For Safari */
        transition: background-color 0.2s ease;
    }
    .meta-item a {
        color: var(--text-on-accent);
        text-decoration: none;
    }
    .meta-item.meta-category:hover {
        background-color: var(--brand-primary);
    }
    .meta-item .fas {
        font-size: var(--font-size-xs);
    }
    /*
    * NOTE FOR DEVELOPER:
    * The following @media query contains the responsive styles for this component.
    * For better organization, it is recommended to move this rule
    * to the dedicated responsive.css file.
    */
    @media (max-width: 768px) {
        .blog-title {
            font-size: var(--font-size-md);
        }
        .blog-description {
            font-size: var(--font-size-base);
        }
    }
    /* * Ahanit Archive Pro Styles - v5.2 (Unified Breadcrumb Integration)
    * It's HIGHLY recommended to move this to a separate .css file. */

    .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;}
    .woocommerce-page-container { direction: rtl; width: 100%; max-width: 100%; box-sizing: border-box; margin: 0 auto 1.5rem; padding: 0 1rem; }
    .archive-header { margin-bottom: 2.5rem; padding-top: 4vh; }
    .main-page-title-wrapper { text-align: center; }
    .main-page-title { font-size: var(--font-size-lg); color: var(--text-dark); font-weight: 800; margin: 0; padding-bottom: .75rem; border-bottom: 3px solid var(--brand-primary); display: inline-block; }
    .archive-grid-layout, .article-layout-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
    .article-layout-grid { margin-top: 3rem; }
    .sidebar { background: var(--bg-light); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
    .sidebar-title { font-size: 1.3rem; color: var(--text-dark); margin: 0 0 1.5rem 0; }
    .filter-group { margin-bottom: 1rem; }
    .filter-group label { display: block; margin-bottom: .5rem; font-weight: 600; }
    .filter-group select { width: 100%; padding: .75rem; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-page); transition: border-color .2s ease, box-shadow .2s ease; }
    .filter-group select:focus-visible { outline: none; border-color: var(--brand-primary); box-shadow: var(--shadow-focus); }
    .content-header { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
    .sort-options { display: flex; align-items: center; gap: .5rem; }
    .sort-options select { padding: .7rem; border-radius: 6px; border: 1px solid var(--border-color); }
    .sort-options select:focus-visible { outline: none; border-color: var(--brand-primary); box-shadow: var(--shadow-focus); }
    .article-body-content, .sidebar-widget { background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.5rem; }
    .article-body-content { padding: 2.5rem; overflow-x: hidden; }
    .sidebar-widget:not(:last-child) { margin-bottom: 1.5rem; }
    .article-content-title, .widget-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 0 0 1.5rem; }
    .widget-title { font-size: var(--font-size-md); padding-bottom: .75rem; border-bottom: 1px solid var(--border-color); }
    .share-buttons-vertical { display: flex; flex-direction: row; justify-content: center; gap: 1.5rem; }
    .share-buttons-vertical a, .back-to-top-button { color: var(--text-light); font-size: 1.5rem; text-decoration: none; transition: color .2s ease, transform .2s ease; }
    .share-buttons-vertical a:hover, .back-to-top-button:hover { color: var(--brand-primary); transform: translateY(-2px); }
    .back-to-top-widget { padding: 0 !important; background: none !important; border: none !important; box-shadow: none !important; text-align: center; }
    .back-to-top-button { background-color: var(--brand-primary); color: white; width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
    .back-to-top-button:hover { color: white; }
    .cta-widget { background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary)); color: white; }
    .cta-widget .widget-title, .cta-widget p { color: white; border: none; }
    .cta-btn {display: block; width: 100%; text-align: center; margin-top: 1rem; padding: 0.7rem; background-color: var(--text-on-accent); color: var(--brand-primary); border-radius: 6px; text-decoration: none; font-weight: 700; transition: all 0.2s ease;}
    .cta-btn:hover {background-color: var(--brand-primary-light); transform: translateY(-2px);}
    /* --- Tablet Layout (769px - 1199px) --- */
    @media (min-width: 769px) {
        .woocommerce-page-container {
            width: 90%;
            padding: 0;
        }
        .archive-header { padding-top: 6vh; }
        .archive-grid-layout {
            grid-template-columns: 250px minmax(0, 1fr);
            gap: 2rem;
        }
        .sidebar {
            position: sticky;
            top: 100px;
            align-self: start;
        }
        .article-layout-grid {
            grid-template-columns: minmax(0, 1fr) 250px;
            gap: 2rem;
        }
        .meta-sidebar-right {
            display: none;
        }
        .article-body-content {
            grid-column: 1 / 2;
        }
        .toc-sidebar {
            grid-column: 2 / 3;
            grid-row: 1;
            position: sticky;
            top: 100px;
            align-self: start;
        }
    }
    /* --- Desktop Layout (1200px and up) --- */
    @media (min-width: 1200px) {
        .archive-header { padding-top: 8vh; }
        .main-page-title { font-size: var(--font-size-xl); }
        .archive-grid-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 2.5rem; }
        .sidebar { grid-column: 1 / 2; position: sticky; top: 120px; align-self: start; }
        .content-area { grid-column: 2 / 3; }
        .article-layout-grid { grid-template-columns: 100px minmax(0, 1fr) 280px; gap: 2.5rem; }
        .article-body-content { grid-column: 2 / 3; }
        .meta-sidebar-right { display: initial; grid-column: 1 / 2; grid-row: 1; position: sticky; bottom: 40px; align-self: end; }
        .toc-sidebar { grid-column: 3 / 4; grid-row: 1; position: sticky; top: 120px; align-self: start; }
        .share-buttons-vertical { flex-direction: column; }
    }
    /* FAQ Style (Universal FAQ) */
    .faq-section-wrapper { padding: 0 1rem; }
    .faq-container { max-width: 75ch; margin: 0 auto; }
    .faq-item { border-bottom: 1px solid #e9ecef; }
    .faq-item:last-child { border-bottom: none; }
    .faq-question { font-size: var(--font-size-sm); font-weight: 600; color: var(--text-dark); cursor: pointer; position: relative; padding: 1.5rem 2.5rem 1.5rem 0; transition: color .3s ease; }
    .faq-question:hover { color: var(--brand-primary); }
    .faq-question::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 7px;
        height: 7px;
        border-style: solid;
        border-color: var(--text-dark);
        border-width: 0 2px 2px 0;
        transform: translateY(-50%) rotate(45deg); /* Points down (open) */
        transition: transform 0.4s ease, border-color 0.3s ease;
    }
    .faq-item:not(.active) .faq-question::after {
        transform: translateY(-50%) rotate(-45deg); /* Points right (closed) */
    }
    .faq-question:hover::after, .faq-item.active .faq-question::after {
        border-color: var(--brand-primary);
    }
    .faq-item.active .faq-question { color: var(--brand-primary); }
    .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, padding-bottom 0.5s ease-out; padding: 0; color: #6c757d; line-height: 1.8; }
    .faq-item.active .faq-answer { padding-bottom: 1.5rem; max-height: 500px; }
    /* Main Layout Alignment & Spacing */
    .single-post-page-final { padding-top: 4rem; }
    .article-main-container { width: 90vw; margin: 0 auto; }
    .article-header-new { background: var(--text-on-accent); border-radius: .8rem; padding: 2.5rem; margin-bottom: 2rem; border: 1px solid #e9ecef; display: grid; grid-template-columns: 1fr 350px; gap: 2.5rem; align-items: center; }
    .header-image-area { border-radius: .6rem; overflow: hidden; }
    .breadcrumb { font-size: var(--font-size-xs); color: #6c757d; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
    .article-title-main { font-size: var(--font-size-lg); font-weight: 800; color: #212529; line-height: 1.3; margin: 0 0 1.5rem; }
    .article-meta-info { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: #6c757d; font-size: var(--font-size-sm); }
    .author-info-top { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: #212529; }
    .author-info-top img { border-radius: 50%; }
    .meta-dot { background: #ced4da; width: 4px; height: 4px; border-radius: 50%; }
    /* Footer Sections */
    .post-footer-container { margin: 3rem 0 0; }
    .footer-section { padding: 3rem 0; border-top: 1px solid #e9ecef; }
    .section-title { font-size: var(--font-size-lg); font-weight: 700; text-align: center; margin-bottom: 2.5rem; }
    .faq-section-wrapper, .comments-section-wrapper, .related-products-section .section-title { max-width: 90vw; margin-left: auto; margin-right: auto; }
    /* Related Products Style */
    .products-grid-revised { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
    .product-card-revised { background: var(--text-on-accent); border: 1px solid #f0f2f5; border-radius: .8rem; padding: 1rem; display: flex; flex-direction: column; transition: all .3s ease; }
    .product-card-revised:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07); border-color: transparent; }
    .product-revised-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
    .product-factory-logo { flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
    .product-factory-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .product-revised-title-area { flex-grow: 1; }
    .product-revised-title { font-size: var(--font-size-base); font-weight: 600; line-height: 1.4; margin: 0; }
    .product-revised-title a { text-decoration: none; color: #212529; transition: color 0.2s; }
    .product-revised-title a:hover { color: var(--brand-primary); }
    .product-revised-details { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid #f0f2f5; }
    .product-revised-price { font-size: var(--font-size-base); font-weight: 700; color: var(--brand-primary); }
    .btn-price-chart { background-color: var(--bg-surface); color: var(--text-dark); border: 1px solid #dee2e6; border-radius: .5rem; padding: .6rem 1.2rem; font-weight: 600; font-size: var(--font-size-xs); text-decoration: none; transition: all .2s; white-space: nowrap; }
    .btn-price-chart:hover { background-color: #e9ecef; border-color: #ced4da; }
    /* ==========================================================================
    Single Post Specific Styles
    ========================================================================== */
    .article-layout-grid {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr) 280px;
        gap: 2.5rem;
        align-items: flex-start;
        margin-top: 2rem;
    }
    .article-body-content {
        grid-column: 2 / 3;
        background: var(--text-on-accent);
        border: 1px solid #e9ecef;
        border-radius: .8rem;
        padding: 2rem 2.5rem 3rem;
    }
    aside.sticky-from-top {
        grid-column: 3 / 4;
        grid-row: 1;
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        align-self: start;
    }
    aside.sticky-from-bottom {
        grid-column: 1 / 2;
        grid-row: 1;
        position: -webkit-sticky;
        position: sticky;
        bottom: 40px;
        align-self: end;
    }
    /* General Sidebar Widget Styling */
    .sidebar-widget { background: var(--text-on-accent); border: 1px solid #e9ecef; border-radius: .8rem; padding: 1.5rem; }
    .sidebar-widget:not(:last-child) { margin-bottom: 1.5rem; }
    .widget-title { font-size: var(--font-size-base); font-weight: 700; color: #212529; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid #e9ecef; }
    /* Left Sidebar (Share Buttons) */
    .share-buttons-vertical { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
    .share-buttons-vertical a { color: #6c757d; font-size: var(--font-size-md); transition: all .2s; }
    .share-buttons-vertical a:hover { color: var(--brand-primary); transform: scale(1.2); }
    .back-to-top-widget { background: none; border: none; padding: 0 !important; text-align: center; margin-top: 1.5rem; }
    .back-to-top-button { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; background-color: var(--brand-primary); color: var(--text-on-accent); border-radius: 50%; font-size: var(--font-size-md); text-decoration: none; transition: transform 0.2s ease-in-out; }
    .back-to-top-button:hover { transform: scale(1.1); color: var(--text-on-accent); }
    /* Right Sidebar (TOC & CTA) */
    .toc-list { list-style: none; padding: 0; margin: 0; }
    .toc-list a { display: block; padding: .6rem 0; font-size: var(--font-size-sm); color: #6c757d; text-decoration: none; transition: all .2s; border-bottom: 1px solid transparent; }
    .toc-list a.is-active { color: var(--brand-primary); font-weight: 700; border-bottom-color: var(--brand-primary); }
    .toc-list a:hover { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
    .cta-widget { background: var(--brand-gradient); }
    .cta-widget .widget-title, .cta-widget p { color: var(--text-on-accent); border-bottom: none; }
    .cta-widget p { font-size: var(--font-size-sm); line-height: 1.7; opacity: 0.9; }
    .cta-widget .cta-btn { display: block; width: 100%; text-align: center; margin-top: 1rem; padding: 0.7rem; background-color: var(--text-on-accent); color: var(--brand-primary); border-radius: 0.7rem; text-decoration: none; font-weight: 700; transition: all 0.2s ease; }
    .cta-widget .cta-btn:hover { background-color: var(--brand-primary-light); transform: translateY(-2px); }
    /* Rich Content Styles (inside .article-body-content) */
    .article-body-content {color: #343a40; font-size: var(--font-size-base); line-height: 1.8;}
    .article-body-content p {margin-bottom: 1.5em;}
    .article-body-content a {color: var(--brand-primary); text-decoration: none; border-bottom: 2px solid rgba(106, 90, 205, 0.2); transition: all 0.2s ease;}
    .article-body-content a:hover {background-color: rgba(106, 90, 205, 0.1); border-bottom-color: var(--brand-primary);}
    .article-body-content h2, .article-body-content h3, .article-body-content h4 {color: #212529; font-weight: 700; line-height: 1.4;}
    .article-body-content h2 {font-size: var(--font-size-lg); margin: 2.5rem 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 3px solid var(--brand-primary); display: inline-block;}
    .article-body-content h3 {font-size: var(--font-size-lg); margin: 2rem 0 1rem 0; padding-right: 1rem; border-right: 3px solid #ced4da;}
    .article-body-content h4 {font-size: var(--font-size-md); margin: 1.5rem 0 0.5rem 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #495057;}
    .article-body-content ul, .article-body-content ol {padding-right: 2rem; margin-bottom: 1.5rem; list-style: none;}
    .article-body-content ul li, .article-body-content ol li {padding-right: 1.5rem; position: relative; margin-bottom: 0.8rem; line-height: 1.7;}
    .article-body-content ul li::before {font-family: "Font Awesome 6 Free"; content: "\f00c"; font-weight: 900; position: absolute; right: 0; top: 5px; color: var(--brand-primary); font-size: var(--font-size-sm);}
    .article-body-content ol {counter-reset: custom-counter;}
    .article-body-content ol li {counter-increment: custom-counter;}
    .article-body-content ol li::before {content: counter(custom-counter); position: absolute; right: -5px; top: 2px; background-color: var(--brand-primary); color: white; font-size: var(--font-size-xs); font-weight: bold; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;}
    /* ==========================================================================
    Responsive Styles
    ========================================================================== */
    @media(max-width: 1200px) {
        .article-layout-grid { grid-template-columns: 1fr; }
        .meta-sidebar-right, .toc-sidebar { display: none; }
        .article-body-content { grid-column: 1 / -1; }
    }
    #ahanit-comment-component-wrapper {
            --comment-bg: var(--text-on-accent);
            --comment-reply-bg: #f9fafb;
            --comment-container-bg: var(--text-on-accent);
            --comment-border-color: #e5e7eb;
            --comment-form-bg: #f5f7fa;
            --comment-text-color: #374151;
            --comment-meta-color: #6b7280;
            --comment-author-color: #111827;
            --comment-accent-color: var(--brand-secondary); /* رنگ بنفش */
            --comment-radius: 12px;
        }
        #ahanit-comment-component-wrapper .ahanit-comments-area {
            background-color: var(--comment-container-bg);
            padding: clamp(20px, 3vw, 30px);
            margin-top: 50px;
            border-radius: 16px;
            border: 1px solid var(--comment-border-color);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
        }
        /* --- ساختار اصلی دو ستونه --- */
        #ahanit-comment-component-wrapper .comments-layout-wrapper {
            display: flex;
            flex-wrap: wrap; /* برای واکنش‌گرایی */
            gap: 35px;
        }
        /* --- ستون سمت راست: لیست دیدگاه‌ها --- */
        #ahanit-comment-component-wrapper .comments-list-column {
            flex: 1 1 58%;
            min-width: 320px;
            display: flex;
            flex-direction: column;
        }
        /* --- ستون سمت چپ: فرم ارسال دیدگاه --- */
        #ahanit-comment-component-wrapper .comment-form-column {
            flex: 1 1 38%;
            min-width: 300px;
            background-color: var(--comment-form-bg);
            padding: 25px;
            border-radius: var(--comment-radius);
            border: 1px solid var(--comment-border-color);
            position: sticky;
            top: 8vw; /* تنظیم فاصله از بالا با توجه به navbar */
            align-self: flex-start;
            height: fit-content;
        }
        #ahanit-comment-component-wrapper .comments-list-column .comments-title,
        #ahanit-comment-component-wrapper .comment-form-column .comment-reply-title {
            font-size: var(--font-size-lg); font-weight: 700; margin: 0 0 20px 0;
            padding-bottom: 15px; border-bottom: 1px solid var(--comment-border-color);
            color: var(--comment-author-color);
        }
    
        /* --- استایل لیست نظرات --- */
        #ahanit-comment-component-wrapper .comment-list {
            list-style: none; padding: 0; margin: 0;
            overflow-y: visible;
        }
    
        /* استایل کارت‌های دیدگاه اصلی */
        #ahanit-comment-component-wrapper .comment-list > li.comment {
            background: var(--comment-bg);
            border-radius: var(--comment-radius);
            border: 1px solid var(--comment-border-color);
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        }
        #ahanit-comment-component-wrapper .comment-body-container { padding: 18px 22px; }
        #ahanit-comment-component-wrapper .comment-author-avatar .avatar {
            width: 40px;
            height: 40px;
        }
        /* --- استایل پاسخ‌های تودرتو (استایل متفاوت و جذاب) --- */
        #ahanit-comment-component-wrapper .comment-list .children {
            list-style: none; padding: 0; margin-top: 15px;
            padding-right: 30px; /* ایجاد حاشیه برای جدا شدن از کامنت اصلی */
            position: relative;
        }
        #ahanit-comment-component-wrapper .comment-list .children .comment {
            background: var(--comment-reply-bg);
            border: 1px solid var(--comment-border-color);
            border-radius: var(--comment-radius);
            padding: 15px 20px;
            margin-bottom: 10px;
            font-size: var(--font-size-sm);
            box-shadow: none; /* حذف سایه از پاسخ‌ها */
        }
        #ahanit-comment-component-wrapper .comment-list .children .comment .comment-body-container { padding: 0; }
        #ahanit-comment-component-wrapper .comment-list .children .comment .comment-author-avatar .avatar {
            width: 30px;
            height: 30px;
        }
        #ahanit-comment-component-wrapper .comment-list .children .comment-metadata .author-name {
            font-size: var(--font-size-sm);
        }
        #ahanit-comment-component-wrapper .comment-list .children .comment-metadata a {
            font-size: calc(var(--font-size-xs) * 0.7);
        }
        #ahanit-comment-component-wrapper .comment-list .children .comment-content {
            font-size: var(--font-size-sm);
        }
        #ahanit-comment-component-wrapper .comment-list .children::before {
            content: "";
            position: absolute;
            top: 0;
            right: 15px;
            bottom: 0;
            width: 2px;
            background-color: var(--comment-accent-color);
            opacity: 0.5;
        }
    
        /* --- طراحی فرم نظرات --- */
        #ahanit-comment-component-wrapper .comment-form label { display: none; }
        #ahanit-comment-component-wrapper .comment-form p { margin-bottom: 15px; }
        #ahanit-comment-component-wrapper .comment-form input[type="text"],
        #ahanit-comment-component-wrapper .comment-form input[type="email"],
        #ahanit-comment-component-wrapper .comment-form input[type="url"],
        #ahanit-comment-component-wrapper .comment-form textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--comment-border-color);
            border-radius: 8px;
            transition: all 0.2s ease-in-out;
            background-color: var(--comment-bg);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
        }
        #ahanit-comment-component-wrapper .comment-form input:focus,
        #ahanit-comment-component-wrapper .comment-form textarea:focus {
            border-color: var(--comment-accent-color);
            box-shadow: 0 0 0 3px rgba(138, 74, 243, 0.2), inset 0 1px 2px rgba(0,0,0,0.05);
            outline: none;
        }
    
        #ahanit-comment-component-wrapper .comment-form #submit {
            background-color: var(--comment-accent-color);
            color: var(--text-on-accent);
            border: none;
            padding: 12px 25px;
            font-weight: 600;
            cursor: pointer;
            border-radius: 8px;
            transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
            font-size: var(--font-size-md);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        #ahanit-comment-component-wrapper .comment-form #submit:hover {
            background-color: var(--brand-primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
    
        /* --- استایل آیکون user پیش‌فرض --- */
        #ahanit-comment-component-wrapper .comment-author-avatar .avatar[src*="gravatar"] {
            background-color: #f1f1f1;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        #ahanit-comment-component-wrapper .comment-author-avatar .avatar[src*="gravatar"]::before {
            content: "\f007"; /* Font Awesome user icon */
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: var(--font-size-lg);
            color: var(--comment-meta-color);
        }
        /* --- استایل دکمه لایک، دیسلایک و پاسخ --- */
        .comment-footer {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }
        .like-button, .dislike-button, .reply-button-wrapper a {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background-color: #f1f1f1;
            color: var(--comment-meta-color);
            padding: 6px 12px;
            border-radius: 50px;
            font-size: var(--font-size-xs);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none; /* برای دکمه پاسخ */
            white-space: nowrap;
        }
        .like-button:hover, .dislike-button:hover, .reply-button-wrapper a:hover {
            background-color: #e0e0e0;
            color: var(--comment-author-color);
        }
        .like-button.liked {
            background-color: var(--color-like); /* رنگ آبی برای لایک */
            color: var(--text-on-accent);
        }
        .dislike-button.disliked {
            background-color: var(--color-dislike); /* رنگ قرمز برای دیسلایک */
            color: var(--text-on-accent);
        }
        .reply-button-wrapper {
            display: inline-block;
        }
    
        /* --- طراحی فرم پاسخ انیمیشنی --- */
        #ahanit-comment-component-wrapper .reply-form-container {
            display: none;
            overflow: hidden;
            margin-top: 10px;
            animation: slideDown 0.3s ease-out;
        }
        @keyframes slideDown {
            from { max-height: 0; opacity: 0; }
            to { max-height: 500px; opacity: 1; }
        }
    
        /* --- طراحی واکنش‌گرا برای موبایل --- */
        @media (max-width: 820px) {
            #ahanit-comment-component-wrapper .comments-layout-wrapper {
                flex-direction: column;
            }
            #ahanit-comment-component-wrapper .comment-form-column {
                position: static;
                order: -1;
            }
            #ahanit-comment-component-wrapper .comment-list {
                max-height: none;
                overflow-y: visible;
            }
        }
    .header-logo-img {
        width: 3.8vw;
        height: 3.8vw;
        max-width: 100%;
        object-fit: contain;
    }

  /*
 * ==========================================================================
 * 16.0 - Table Styles
 * ==========================================================================
 * Separated table styles for better maintainability and to ensure proper horizontal scrolling.
 * Ensures tables within .article-body-content have a horizontal scrollbar for wide tables.
 * Version: 2.4 (Enhanced for consistent horizontal scrolling without card layout)
 */
.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) #f1f1f1;
}
.table-container::-webkit-scrollbar {
    height: 8px;
}
.table-container::-webkit-scrollbar-thumb {
    background-color: var(--brand-primary);
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}
.ahanit-table {
    width: 100%;
    min-width: 800px; /* Ensures table is wide enough to trigger scroll */
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    background-color: var(--text-on-accent);
    direction: rtl; /* Ensures right-to-left scrolling */
}
.ahanit-table th,
.ahanit-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    min-width: 120px; /* Ensures columns have sufficient width */
}
.ahanit-table thead th {
    background-color: var(--brand-primary);
    color: var(--text-on-accent);
    font-weight: 600;
    border-bottom: 1px solid var(--brand-secondary);
}
.ahanit-table tbody tr:nth-of-type(even) {
    background-color: var(--bg-surface);
}
.ahanit-table tbody tr:hover {
    background-color: var(--brand-primary-light);
}
.ahanit-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--brand-primary);
}

/* === CTA: Call (مشاوره و خرید) با Font Awesome + Pulse (v1.3-FA) === */
.chart-modal-btn.cta-call {
  background: linear-gradient(45deg, var(--success-light), var(--success));
  color: var(--text-on-accent);
  border: 1px solid rgba(34, 197, 94, .25);
}
.chart-modal-btn.cta-call:hover {
  background: var(--success-bg);
  color: var(--success-dark);
  transform: translateY(-.05vw);
}

/* آیکن FA با حلقه پالس */
.fa-call .fa-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  margin-inline-end: .6em;
}
.fa-call .fas.fa-phone,
.fa-call .fa-solid.fa-phone {
  font-size: var(--font-size-base);
  line-height: 1;
}

/* حلقه پالس دور آیکن (مینیمال) */
.fa-call .fa-pulse-ring {
  position: absolute;
  inset: 0;
  border: 0.14em solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  animation: fa-ring-pulse 1.8s ease-out infinite;
}

/* انیمیشن پالس */
@keyframes fa-ring-pulse {
  0%   { opacity: .0;  transform: scale(0.8); }
  20%  { opacity: .45; transform: scale(1.0); }
  60%  { opacity: .15; transform: scale(1.15); }
  100% { opacity: 0;   transform: scale(1.2); }
}

/* متن دوخطی کنار آیکن */
.cta-call-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.cta-call-text > strong {
  font-weight: 800;
  margin-bottom: .15em;
}

/* تایپوگرافی شماره */
.cta-call-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .01em;
}
.cta-call-num .l1 { font-size: calc(var(--font-size-base) * 0.92); opacity: .9; }
.cta-call-num .l2 { font-size: calc(var(--font-size-base) * 1.08); letter-spacing: .02em; }

/* واکنش‌گرا */
@media (max-width: 768px) {
  .cta-call-text { line-height: 1.2; }
  .cta-call-num .l1 { font-size: var(--font-size-lg); }
  .cta-call-num .l2 { font-size: var(--font-size-lg); }
  .fa-call .fa-wrap { width: 1.9em; height: 1.9em; }
}
    .notice-bell {
        display: none;
        position: absolute;
        bottom: -0.3rem;
        right: -0.3rem;
        width: 1.2rem;
        height: 1.2rem;
        background: var(--error);
        color: var(--text-on-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: calc(var(--font-size-xs) * 0.8);
        animation: bellshake 1.2s infinite;
    }
    .user-cart.has-notice .notice-bell {
        display: flex;
    }
    @keyframes bellshake {
        0%,100% { transform: rotate(0); }
        50% { transform: rotate(20deg); }
    }
/* === My Account Layout (Optimized for Clean Two-Column Display, Fixed Sticky and Button Width) === */
.myaccount-wrapper {
    display: flex;
    flex-wrap: nowrap; /* جلوگیری از wrap شدن در نمایشگرهای کوچک */
    gap: 2.5rem; /* فاصله بین ستون‌ها */
    margin: 0 auto; /* وسط‌چین کردن */
    padding: 2rem 1rem; /* پدینگ برای فضای بهتر */
    position: relative; /* محدود کردن sticky به این wrapper */
}

.myaccount-wrapper > div:first-child { /* هدف قرار دادن div نوار کناری */
    position: sticky;
    top: 6rem; /* فاصله از بالا */
    height: fit-content; /* محدود کردن ارتفاع به محتوای خودش */
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(0.8vw);
    backdrop-filter: blur(0.8vw);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.myaccount-content {
    flex: 1; /* گرفتن باقی فضای موجود */
    background: var(--text-on-accent);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.myaccount-content-inner {
    width: 100%;
}

.myaccount-wrapper .woocommerce-MyAccount-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.myaccount-wrapper .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.myaccount-wrapper .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.75rem;
}

.myaccount-wrapper .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: var(--font-size-md);
    white-space: nowrap; /* جلوگیری از دوخطی شدن متن */
    overflow: hidden; /* مخفی کردن متن اضافی */
    text-overflow: ellipsis; /* نمایش ... برای متن بلند */
    width: 100%; /* استفاده از کل عرض container */
    box-sizing: border-box; /* اطمینان از محاسبه پدینگ در عرض */
    transition: background 0.3s ease, color 0.3s ease;
}

.myaccount-wrapper .woocommerce-MyAccount-navigation li.is-active a,
.myaccount-wrapper .woocommerce-MyAccount-navigation li a:hover {
    background: var(--brand-primary);
    color: var(--text-on-accent);
}
.author-box {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.author-box:hover {
    box-shadow: var(--shadow-medium);
}

.author-box-avatar .avatar {
    border-radius: var(--radius-full);
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 2px solid var(--brand-primary-light);
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text-dark);
}

.author-box-name a {
    text-decoration: none;
    color: var(--brand-primary);
    transition: color var(--transition-fast);
}

.author-box-name a:hover {
    color: var(--brand-secondary);
}

.author-box-bio {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-base);
    color: var(--text-muted);
    line-height: var(--line-height-base);
}

.author-box-stats {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.author-box-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

.author-box-stat i {
    color: var(--brand-primary);
    font-size: var(--font-size-base);
}

.author-box-socials {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
}

.author-box-social-link {
    color: var(--brand-primary);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    text-decoration: none;
}

.author-box-social-link:hover {
    color: var(--brand-secondary);
    transform: scale(1.2);
}

/*
* ==========================================================================
* 17.0 - Filter Components
* ==========================================================================
*/

/* Container for the whole price slider component */
.price-slider-container {
    padding: 10px 0;
}

/* Styles for the min-max value display */
.price-slider-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

/* Container for the two range sliders */
.price-slider-control {
    position: relative;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 5px;
}

/* General styles for both range inputs */
.price-slider-control input[type="range"] {
    position: absolute;
    top: -5px; /* Vertically center the thumb on the track */
    left: 0;
    width: 100%;
    -webkit-appearance: none;
    background-color: transparent;
    pointer-events: none; /* Let the top slider handle events */
    margin: 0;
}

/* The top slider should have pointer events */
.price-slider-control input[type="range"]#price-range-max-slider {
    pointer-events: auto;
}

/* Webkit (Chrome, Safari) specific styles for the thumb */
.price-slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background-color: var(--brand-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    pointer-events: auto; /* Thumbs should always be interactive */
    margin-top: -5px; /* Adjust to align with the track */
    border: 2px solid var(--text-on-accent);
    box-shadow: var(--shadow-soft);
}

/* Mozilla (Firefox) specific styles for the thumb */
.price-slider-control input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: var(--brand-primary);
    border: 2px solid var(--text-on-accent);
    border-radius: var(--radius-full);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--shadow-soft);
}

/* Styles for the track (for firefox) */
.price-slider-control input[type="range"]::-moz-range-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 5px;
}

/* The button to apply the price filter */
.apply-price-filter {
    width: 100%;
    margin-top: 15px;
    padding: 8px;
    background: var(--brand-gradient);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.apply-price-filter:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
/* === Author-Related Wrapper Styles === */
.author-related-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.author-column, .related-column {
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.related-content-widget .related-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--brand-primary);
    display: inline-block;
}

.related-content-widget .related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-content-widget .related-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.related-content-widget .related-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.related-content-widget .related-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.related-content-widget .related-link:hover {
    color: var(--brand-primary);
}

.related-content-widget .no-related {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/*
* ==========================================================================
* 18.0 - Product Archive & Table Styles
* ==========================================================================
*/

.ahanit-product-table-container {
    box-shadow: var(--shadow-medium);
    margin-bottom: 2.5rem;
    background: var(--bg-surface);
}

.ahanit-product-table-container .table-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.ahanit-product-table-container .table-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ahanit-product-table-container .table-title {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.ahanit-product-table-container .ahanit-table {
    min-width: auto; /* Override generic min-width */
}

.ahanit-product-table-container .ahanit-table tbody tr:hover {
    background-color: var(--brand-primary-light);
}

.ahanit-product-table-container .ahanit-table td a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ahanit-product-table-container .ahanit-table td a:hover {
    color: var(--brand-secondary);
}

.ahanit-product-table-container .table-footer {
    padding: 1rem;
    text-align: center;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.ahanit-product-table-container .download-csv-button {
    display: inline-block;
    background: var(--brand-gradient);
    color: var(--text-on-accent);
    padding: .7rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.ahanit-product-table-container .download-csv-button:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

/* Responsive card-based layout for product tables on mobile */
@media (max-width: 768px) {
    .ahanit-product-table-container.table-container {
        overflow-x: hidden; /* Disable scroll for card view */
    }

    .ahanit-product-table-container .ahanit-table thead {
        display: none; /* Hide desktop headers */
    }

    .ahanit-product-table-container .ahanit-table tr {
        display: block;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin: 0 1rem 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-soft);
    }

    .ahanit-product-table-container .ahanit-table tbody tr {
        border-bottom: 1px solid var(--border-color);
    }

    .ahanit-product-table-container .ahanit-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .7rem 0;
        border-bottom: 1px dashed var(--border-color);
        white-space: normal;
        word-break: break-word;
        text-align: left;
        min-width: auto;
    }

    .ahanit-product-table-container .ahanit-table td:last-child {
        border-bottom: none;
    }

    .ahanit-product-table-container .ahanit-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        padding-left: 1rem;
        text-align: right;
    }
}

/* === Author Column Override to Fix Display Issue === */
.author-column.show-author-column {
    display: block !important; /* Ensures author box is always visible, overriding any hidden styles */
    visibility: visible !important;
}

/* === About Section in home page === */



/* About Us Section */
.ahanit-about-section {
    background: var(--bg-surface);
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-timeline {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-icon {
    font-size: var(--font-size-md);
    color: var(--brand-primary);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    background: var(--brand-primary-light);
}

.timeline-text {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    line-height: var(--line-height-base);
    margin: 0;
}

.timeline-text strong {
    color: var(--text-dark);
}

.about-ctas {
    display: flex;
    gap: var(--spacing-sm);
}

.about-image-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0;
    transform: scale(0.9);
    animation: zoomIn 0.5s ease forwards;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-button {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: bold;
    transition: var(--transition-fast);
}

.cta-button.primary {
    background: var(--brand-primary);
    color: var(--text-on-accent);
}

.cta-button.primary:hover {
    background: var(--brand-secondary);
    box-shadow: var(--shadow-focus);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.cta-button.secondary:hover {
    background: var(--brand-primary-light);
    color: var(--brand-secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-ctas {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-image-wrapper {
        margin-top: var(--spacing-md);
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-icon {
        margin-bottom: var(--spacing-xs);
    }
}