:root {
    --c: #2E8B57;
    --bg: #FFF;
    --muted: #F5F0E6;
    --txt: #222;
    --txt2: #666;
    --r: 8px;
    --color-brand: #2E8B57;
    --color-brand-light: #3da66a;
    --color-brand-dark: #236b43;
    --color-background: #FFFFFF;
    --color-background-muted: #F5F0E6;
    --color-background-light: #FBFBFB;
    --color-text: #222222;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-border: #E5E5E5;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Font Sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 36px;

    /* Transitions */
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box
}


/* فونت فارسی */
@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* پروفایل کاربری */
/* پروفایل کاربری - منوی کناری */
.profile-section {
    background: linear-gradient(180deg, var(--color-background-light) 0%, var(--color-background) 100%);
    min-height: 60vh;
}

.profile-sidebar .profile-sidebar-header {
    border-bottom: 1px solid var(--color-border) !important;
}

.profile-sidebar .profile-avatar {
    width: 56px;
    height: 56px;
}

.profile-section .profile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-section .profile-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--r);
    background: transparent;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: right;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-right: 3px solid transparent;
}

.profile-section .profile-tab-btn .profile-tab-icon {
    width: 1.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--color-brand);
}

.profile-section .profile-tab-btn .profile-tab-text {
    flex: 1;
}

.profile-section .profile-tab-btn:hover {
    background: var(--color-background-light);
    color: var(--color-text);
}

.profile-section .profile-tab-btn:hover .profile-tab-icon {
    color: var(--color-brand);
}

.profile-section .profile-tab-btn.active {
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-brand);
    font-weight: 600;
    border-right-color: var(--color-brand);
}

.profile-section .profile-tab-btn.active .profile-tab-icon {
    color: var(--color-brand);
}

.navbar-profile-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .navbar-profile-name {
        max-width: 160px;
    }
}

.navbar-profile-menu {
    min-width: 220px;
}

.navbar-profile-menu .dropdown-item:hover {
    background: var(--color-background-light);
}

.navbar-profile-menu .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
}

.navbar-profile-link.dropdown-toggle::after {
    margin-right: 0.35rem;
}

.profile-products-scroll,
.profile-contact-scroll,
.profile-comments-scroll,
.profile-my-articles-scroll {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.profile-my-articles-scroll {
    max-height: 480px;
}

.profile-products-scroll-tall {
    max-height: 520px;
}

.profile-products-scroll .product-price-input {
    max-width: 140px;
}

.profile-section .tab-content .card {
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.profile-section .tab-content .card-header {
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.profile-section .tab-content .card-header .text-success {
    opacity: 0.9;
}

.profile-section .tab-pane .card-body {
    padding: 1.25rem 1.5rem;
}

@media (max-width: 991.98px) {
    .profile-section .profile-sidebar {
        margin-bottom: 1rem;
    }

    .profile-section .profile-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .profile-section .profile-tab-btn {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: center;
    }

    .profile-section .profile-tab-btn.active {
        border-right: none;
        border-bottom: 3px solid var(--color-brand);
    }
}

body,
p,
a,
li,
ul {
    font-family: Vazir !important;
    line-height: 30px;
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Vazir !important;
    line-height: 30px;
}

body {
    font-family: Vazir, Tahoma, sans-serif;
    color: var(--txt);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    overflow-x: hidden !important;

}

a {
    color: var(--c);
    text-decoration: none
}

a:hover {
    color: #236b43
}

.btn-primary {
    background: var(--c);
    border-color: var(--c)
}

.btn-primary:hover {
    background: #236b43;
    border-color: #236b43
}

.navbar-brand {
    font-weight: 700;
}

.navbar-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Navbar with centered search */
.navbar-with-search .navbar-row {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.navbar-with-search .navbar-search-center {
    min-width: 0;
}

.navbar-with-search .navbar-search-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.navbar-with-search .navbar-search-box {
    transition: box-shadow 0.2s, border-color 0.2s;
}

.navbar-with-search .navbar-search-box:focus-within {
    box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.25);
    border-color: var(--c) !important;
}

.navbar-with-search .navbar-search-input {
    font-size: 0.95rem;
}

.navbar-with-search .navbar-search-input::placeholder {
    color: #999;
}

.navbar-with-search .navbar-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1020;
    display: none;
}

.navbar-with-search .navbar-search-suggestions.show {
    display: block;
    animation: navbarSuggestFade 0.15s ease;
}

@keyframes navbarSuggestFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

.navbar-search-suggestions .navbar-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: #333;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.15s;
}

.navbar-search-suggestions .navbar-suggest-item:hover {
    background: var(--bg);
}

.navbar-search-suggestions .navbar-suggest-item i {
    color: var(--c);
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .navbar-with-search .navbar-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-with-search .navbar-brand {
        order: 1;
        flex-shrink: 0;
    }

    .navbar-with-search .navbar-links-wrap {
        order: 2;
        flex-grow: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
    }

    .navbar-with-search .navbar-links-wrap:has(.navbar-collapse.show) {
        width: 100%;
        flex-basis: 100%;
    }

    .navbar-with-search .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        order: 3;
        background: #fff;
        max-height: 85vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.25rem 0 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid #eee;
    }

    .navbar-with-search .navbar-collapse:not(.show) {
        display: none !important;
    }

    .navbar-with-search .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .navbar-with-search .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .navbar-with-search .navbar-nav .nav-item:last-child {
        border-bottom: 0;
    }

    .navbar-with-search .navbar-nav .nav-link {
        display: block;
        padding: 0.75rem 0.5rem;
    }

    .navbar-with-search .navbar-search-center {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-with-search .navbar-search-wrapper {
        max-width: 100%;
    }

    .navbar-with-search .navbar-end {
        order: 5;
        flex-shrink: 0;
    }
}

/* مگا منوی دسته‌بندی‌ها */
.dropdown-mega .dropdown-menu.mega-menu-dropdown {
    display: none;
    min-width: min(320px, 100vw);
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
    margin-top: 0.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-direction: column;
    z-index: 1050;
}

.dropdown-mega .dropdown-menu.mega-menu-dropdown.show {
    display: flex;
}

@media (min-width: 576px) {
    .dropdown-mega .dropdown-menu.mega-menu-dropdown {
        width: 600px;
        max-width: 95vw;
    }
}

@media (min-width: 768px) {
    .dropdown-mega .dropdown-menu.mega-menu-dropdown {
        width: 800px;
        max-width: 95vw;
    }
}

@media (min-width: 992px) {
    .dropdown-mega .dropdown-menu.mega-menu-dropdown {
        width: 1000px;
        max-width: 95vw;
    }
}

@media (min-width: 1200px) {
    .dropdown-mega .dropdown-menu.mega-menu-dropdown {
        width: 1200px;
        max-width: 95vw;
    }
}

.mega-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 85vh;
    overflow: hidden;
}

.mega-menu-header {
    flex-shrink: 0;
}

.mega-menu-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

@media (min-width: 576px) {
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .mega-menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .mega-menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
}

.mega-menu-item {
    display: block;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s;
}

.mega-menu-item:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-brand);
}

.mega-menu-item .mega-menu-item-icon,
.mega-menu-item .mega-menu-item-img {
    display: inline-block;
    vertical-align: middle;
    margin-inline-end: 0.25rem;
}

.mega-menu-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 0.35rem;
}

.mega-menu-item-name {
    display: inline-block;
    vertical-align: middle;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-item.mega-menu-item-no-img {
    padding-right: 0.75rem;
}

.mega-menu-item.mega-menu-item-no-img .mega-menu-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.15);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mega-menu-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mega-menu-item-parent {
    font-weight: 600;
}

.mega-menu-sub {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-inline-start: 0.5rem;
    border-inline-start: 2px solid rgba(46, 139, 87, 0.25);
}

.mega-menu-item-child {
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
}

.mega-menu-item-child .mega-menu-item-img img,
.mega-menu-item-child .mega-menu-item-icon {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

.mega-menu-footer {
    flex-shrink: 0;
}

.mega-menu-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-panel-inner>.mega-menu-grid {
    flex: 1;
    min-width: 0;
}

.mega-menu-tags-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-menu-tags-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.4rem;
}

.mega-menu-tags-grid {
    margin-top: 0;
}

/* تب‌های مگا منو */
.mega-menu-tabbed .mega-menu-tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mega-menu-tabbed .mega-menu-tab {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    white-space: nowrap;
}

.mega-menu-tabbed .mega-menu-tab:hover {
    color: var(--color-brand);
}

.mega-menu-tabbed .mega-menu-tab.active {
    color: var(--color-brand);
    font-weight: 700;
    border-bottom-color: var(--color-brand);
    background: transparent;
}

.mega-menu-tabbed .tab-content {
    background: transparent;
}

.mega-menu-tabbed .tab-pane {
    padding: 0;
}

/* مگامنو به سبک دیجیکالا: تب عمودی چپ، محتوا راست */
.mega-menu-digikala .mega-menu-row {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.mega-menu-digikala .mega-menu-side {
    width: 200px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
}

.mega-menu-digikala .mega-menu-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: #495057;
    font-size: 0.9rem;
    text-align: right;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mega-menu-digikala .mega-menu-nav-item:hover {
    background: rgba(46, 139, 87, 0.08);
    color: var(--color-brand);
}

.mega-menu-digikala .mega-menu-nav-item.active {
    background: rgba(46, 139, 87, 0.12);
    color: var(--color-brand);
    font-weight: 600;
    border-right: 3px solid var(--color-brand);
}

.mega-menu-digikala .mega-menu-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-menu-digikala .mega-menu-nav-item.active .mega-menu-nav-icon {
    background: rgba(46, 139, 87, 0.2);
}

.mega-menu-digikala .mega-menu-nav-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-digikala .mega-menu-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    background: #fff;
}

.mega-menu-digikala .mega-menu-panel {
    display: none;
}

.mega-menu-digikala .mega-menu-panel.show,
.mega-menu-digikala .mega-menu-panel.active {
    display: block;
    animation: megaPanelFade 0.2s ease;
}

@keyframes megaPanelFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mega-menu-digikala .mega-menu-content.mega-menu-search-active .mega-menu-panel {
    display: block !important;
}

.mega-menu-digikala .mega-menu-content.mega-menu-search-active .mega-menu-panel:first-child .mega-menu-panel-search-title {
    margin-top: 0;
}

@media (max-width: 575.98px) {
    .mega-menu-digikala .mega-menu-row {
        flex-direction: column;
        min-height: auto;
    }

    .mega-menu-digikala .mega-menu-side {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: 0;
        border-bottom: 1px solid #e9ecef;
        padding: 0.5rem;
    }

    .mega-menu-digikala .mega-menu-nav-item {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .mega-menu-digikala .mega-menu-nav-item.active {
        border-right: none;
        border-bottom: 3px solid var(--color-brand);
    }
}

@media (max-width: 575.98px) {
    .mega-menu-tabbed .mega-menu-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .mega-menu-tabbed .mega-menu-tab {
        flex-shrink: 0;
    }
}

/* منوی دسته‌بندی موبایل (آف‌کنواس) */
.mobile-categories-offcanvas.offcanvas-end {
    width: 100%;
    max-width: 320px;
}

@media (min-width: 400px) {
    .mobile-categories-offcanvas.offcanvas-end {
        max-width: 360px;
    }
}

.mobile-categories-offcanvas .accordion-button {
    font-size: 0.95rem;
    text-align: right;
}

.mobile-categories-offcanvas .accordion-button:not(.collapsed) {
    background: rgba(46, 139, 87, 0.08);
    color: var(--color-brand);
    box-shadow: none;
}

.mobile-categories-offcanvas .list-group-item {
    border-right: 0;
    border-left: 0;
    text-align: right;
    font-size: 0.9rem;
}

.mobile-categories-offcanvas .list-group-item-action:hover {
    background: rgba(46, 139, 87, 0.06);
}

.mobile-categories-offcanvas .mobile-menu-search-wrap .input-group:focus-within {
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.25);
    border-radius: 9999px;
}

.mega-menu-empty {
    grid-column: 1 / -1;
    padding: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.875rem;
}

@media (max-width: 991.98px) {
    .dropdown-mega.dropdown .dropdown-menu.mega-menu-dropdown {
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.5rem 0 0 0 !important;
        box-shadow: none;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        max-height: 65vh;
        overflow-y: auto;
    }

    .dropdown-mega .dropdown-menu.mega-menu-dropdown:not(.show) {
        display: none !important;
    }

    .dropdown-mega .dropdown-menu.mega-menu-dropdown.show {
        display: block !important;
    }

    .dropdown-mega .nav-link.dropdown-toggle::after {
        transition: transform 0.2s;
    }

    .dropdown-mega.show .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .mega-menu-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .mega-menu-item img {
        width: 40px;
        height: 40px;
    }
}

.hero {
    background: linear-gradient(135deg, var(--muted), var(--bg));
    padding: 2rem 0
}

.search-box {
    max-width: 500px;
    margin: 0 auto 1rem;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.search-box input {
    border: 0;
    padding: .75rem 1rem;
    font-size: 1rem
}

.search-box .input-group-text {
    background: var(--c);
    color: #fff;
    border: 0
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    background-color: var(--color-background-muted);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.chip:hover,
.chip.active {
    background: var(--c);
    color: #fff;
    border-color: var(--c)
}

.chip-pill {
    text-decoration: none;
    color: inherit;
}

.chip-pill:hover {
    color: #fff;
}

/* ========== صفحه اول (index) ========== */
.home-hero {
    position: relative;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #e8f5e9 0%, #f1f8e9 35%, #fff 70%);
    z-index: 0;
}

.home-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(46, 139, 87, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-brand);
    background: rgba(46, 139, 87, 0.12);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
}

.home-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a472a;
    letter-spacing: -0.02em;
}

.home-hero-desc {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.6;
}

.home-hero-search {
    max-width: 480px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.home-hero-search:focus-within {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.home-hero-chips .chip-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

.home-trust {
    background: #f8faf8;
}

.home-trust-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.Home_filterSection {
    background: #f8faf8;
}

.home-filter-card {
    border: 1px solid #e8ece8;
}

.home-section-label {
    letter-spacing: 0.02em;
}

.home-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a472a;
}

.home-section-subtitle {
    letter-spacing: 0.01em;
}

.home-seller-card,
.home-article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
}

.home-seller-card:hover,
.home-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}

.home-seller-icon,
.home-article-icon {
    transition: background-color 0.2s ease;
}

.home-seller-card:hover .home-seller-icon,
.home-article-card:hover .home-article-icon {
    background: rgba(46, 139, 87, 0.18) !important;
}

/* محدود کردن متن به چند خط (عنوان و خلاصه مقالات) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.home-article-card .card-body {
    min-height: 0;
}

.home-article-title {
    line-height: 1.4;
}

.home-article-excerpt {
    line-height: 1.45;
}

.home-footer {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
    border-top: 1px solid #e8ece8;
}

.home-footer a:hover {
    color: var(--color-brand) !important;
}

.home-footer .btn-outline-secondary:hover {
    background: #f0f0f0;
    border-color: #dee2e6;
    color: #333;
}

.card {
    border-radius: var(--r);
    overflow: hidden;
    transition: .2s
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px)
}

.card-img-wrap {
    aspect-ratio: 1;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--c);
    opacity: 1;
}

.card-img-wrap i {
    font-size: 4rem;
    opacity: .35;
}

/* محصولات مشابه: تصویر کمی عریض‌تر و یکدست‌تر */
.similar-products .card-img-wrap {
    aspect-ratio: 4/3;
}

/* محصولات مشابه: اسلایدر متحرک */
.similar-products-slider-wrapper {
    overflow: hidden;
    margin: 0 -0.25rem;
}

.similar-products-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.25rem 0.75rem;
    margin: 0 -0.25rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.similar-products-track:active {
    cursor: grabbing;
}

.similar-products-track::-webkit-scrollbar {
    height: 6px;
}

.similar-products-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.similar-products-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
}

.similar-products-track::-webkit-scrollbar {
    height: 8px;
}

.similar-products-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.similar-products-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
}

.similar-product-item {
    flex: 0 0 auto;
    width: 220px;
    /* کوچیک‌تر از حالت گرید */
    scroll-snap-align: start;
}

@media (max-width: 576px) {
    .similar-product-item {
        width: 190px;
    }
}

.similar-products .card {
    height: 100%;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c)
}

.tag {
    font-size: .75rem;
    padding: .2rem .5rem;
    background: var(--muted);
    border-radius: 999px;
    margin: .15rem
}

.seller-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem;
    border: 1px solid #dee2e6;
    border-radius: var(--r);
    margin-bottom: .5rem
}

.seller-row .info,
.seller-row .seller-info {
    flex: 1
}

.seller-row .price {
    font-weight: 600;
    color: var(--c)
}

.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.footer .footer-main-row a:hover {
    color: var(--color-brand, #2E8B57) !important;
}

/* صفحه دسته‌بندی (category.html) */
.category-hero-inner {
    border: 1px solid #e9ecef;
}

.category-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-title {
    font-weight: 700;
    color: #1a472a;
}

.category-product-card {
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.category-product-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
}

.category-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.category-product-title {
    font-weight: 600;
    color: #333;
}

.category-product-link {
    font-weight: 500;
}

/* صفحه دسته‌بندی */
.category-page-wrap {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 120px);
}

.category-page-title {
    font-size: 1.35rem;
    color: #1a3d2a;
}

.category-page-title-en {
    font-size: 0.9rem;
    font-weight: 400;
}

.category-hero-v2 {
    padding-top: 0;
}

.category-hero-v2-inner {
    border: 1px solid #e8ece8;
}

.category-hero-v2-img {
    width: 140px;
    height: 140px;
}

.category-hero-v2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-v2-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-brand);
    background: rgba(46, 139, 87, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.category-hero-v2-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a472a;
}

.category-hero-name-en {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.85;
}

/* صفحه تگ: هیرو و سئو */
.tag-hero {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 120px);
}

.tag-hero-inner {
    border: 1px solid #e8ece8;
}

.tag-hero-icon {
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.tag-hero-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.tag-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a472a;
}

.tag-hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 60ch;
}

.category-sidebar-v2 {
    top: 1rem;
    z-index: 10;
}

.category-sidebar-v2-inner {
    border: 1px solid #e8ece8;
}

.category-sidebar-v2-title {
    color: #333;
    font-weight: 600;
}

/* کارت فیلترهای صفحه دسته — طراحی زیبا */
.category-filters-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(46, 139, 87, 0.12);
    box-shadow: 0 8px 32px rgba(46, 139, 87, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    position: relative;
}

.category-filters-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 100% 0%, rgba(46, 139, 87, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.category-filters-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.12);
}

.category-filters-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e8b57 0%, #228b22 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.category-filters-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3d2a;
    margin: 0;
}

.category-filters-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2e8b57 0%, #228b22 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.35);
}

.category-filter-count {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1) 0%, rgba(46, 139, 87, 0.04) 100%);
    border: 1px solid rgba(46, 139, 87, 0.18);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.category-filter-count-icon {
    font-size: 1.75rem;
    color: rgba(46, 139, 87, 0.7);
    flex-shrink: 0;
}

.category-filter-count-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.category-filter-count-label {
    font-size: 0.8rem;
    color: #5a6c5e;
    font-weight: 500;
}

.category-filter-count-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #198754;
    line-height: 1.2;
}

.category-filter-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.15), transparent);
    margin: 1rem 0;
}

.category-filter-selects {
    padding: 0.25rem 0;
}

.category-filter-select-group {
    margin-bottom: 1rem;
}

.category-filter-select-group:last-child {
    margin-bottom: 0;
}

.category-filter-select-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.category-filter-label-icon {
    font-size: 0.75rem;
    color: #2e8b57;
    opacity: 0.9;
}

.category-filter-select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e2e8e4;
    padding: 0.6rem 2.25rem 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: #1f2937;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%235a6c5e'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-filter-select:hover {
    border-color: rgba(46, 139, 87, 0.35);
}

.category-filter-select:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.18);
    outline: none;
}

.category-filter-select option {
    padding: 0.5rem;
}

.category-filter-btn-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-filter-btn-clear:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.category-filter-btn-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2e8b57 0%, #228b22 100%);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.category-filter-btn-all:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

/* حالت بارگذاری گرید محصولات (بدون رفرش) */
.category-products-loading {
    position: relative;
    min-height: 120px;
    opacity: 0.7;
    pointer-events: none;
}

.category-products-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(46, 139, 87, 0.2);
    border-top-color: #2e8b57;
    border-radius: 50%;
    animation: category-products-spin 0.7s linear infinite;
}

@keyframes category-products-spin {
    to { transform: rotate(360deg); }
}

/* فهرست مطالب صفحه دسته — زیر فیلترها */
.category-toc {
    padding: 1.35rem 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
    border: 1px solid rgba(46, 139, 87, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.category-toc::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 100% 0%, rgba(46, 139, 87, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.category-toc-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3d2a;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.15);
    position: relative;
}

.category-toc-title i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.15) 0%, rgba(46, 139, 87, 0.08) 100%);
    color: var(--c, #2e8b57);
    font-size: 1rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.category-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.category-toc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    color: #374151;
    border-radius: 10px;
    border-right: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-right-color 0.2s ease;
}

.category-toc-link:hover {
    color: var(--c, #2e8b57);
    background: linear-gradient(90deg, rgba(46, 139, 87, 0.1) 0%, rgba(46, 139, 87, 0.04) 100%);
    border-right-color: var(--c, #2e8b57);
}

.category-toc-link:focus {
    outline: none;
    background: rgba(46, 139, 87, 0.12);
    border-right-color: var(--c, #2e8b57);
}

.category-toc-link-text {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

.category-toc-link-icon {
    font-size: 0.7rem;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-toc-link:hover .category-toc-link-icon {
    opacity: 1;
    transform: translateX(-2px);
}

.category-toc-item--sub .category-toc-link {
    padding-right: 1.25rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.category-toc-item--sub .category-toc-link:hover {
    color: var(--c, #2e8b57);
}

/* اسکرول به بخش: فاصله از بالای صفحه تا زیر نوار ثابت */
.scroll-margin-top {
    scroll-margin-top: 1.5rem;
}

.category-subcategories-inner {
    border: 1px solid #e8ece8;
}

.category-subcategories-title {
    font-weight: 600;
    color: #333;
}

.category-subcat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: #f0f4f0;
    color: #333;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.category-subcat-pill:hover {
    background: var(--color-brand);
    color: #fff;
}

.category-products-title {
    font-weight: 600;
    color: #333;
}

.category-empty-icon {
    font-size: 3rem;
    color: #dee2e6;
}

/* سایدبار فیلترها و بخش توضیحات دسته */
.category-sidebar {
    top: 1rem;
}

.category-sidebar-inner {
    border: 1px solid #e9ecef;
}

.category-sidebar-title {
    letter-spacing: 0.02em;
}

.category-filter-group .form-control:focus,
.category-filter-group .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
    border-color: #198754;
}

.category-description-inner {
    border: 1px solid rgba(46, 139, 87, 0.12);
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.06);
}

/* توضیحات دسته: بدون عنوان «درباره این دسته»، فونت معمولی و فاصله خط بیشتر */
.category-description-content {
    font-weight: 400;
    line-height: 2;
    color: #374151;
    font-size: 1.0625rem;
}

.category-description-content p {
    margin-bottom: 1.35rem;
    margin-top: 0;
}

.category-description-content p + p {
    margin-top: 1rem;
}

.category-description-content strong {
    font-weight: 500;
    color: #1f2937;
}

.category-description-content h1,
.category-description-content h2,
.category-description-content h3,
.category-description-content h4 {
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

.category-description-content h1:first-child,
.category-description-content h2:first-child,
.category-description-content h3:first-child,
.category-description-content h4:first-child {
    margin-top: 0;
}

.category-description-content ul,
.category-description-content ol {
    margin: 1rem 0 1.25rem;
    padding-right: 1.5rem;
}

.category-description-content li {
    margin-bottom: 0.6rem;
    line-height: 1.95;
}

.category-description-content a {
    color: var(--c, #2e8b57);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.category-description-content a:hover {
    color: #1d6b42;
}

.category-description-body {
    line-height: 1.75;
}

.category-description-body p {
    margin-bottom: 1rem;
}

.category-description-body p:last-child {
    margin-bottom: 0;
}

.category-description-body h2,
.category-description-body h3,
.category-description-body h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-description-body h2 { font-size: 1.15rem; }
.category-description-body h3 { font-size: 1.05rem; }
.category-description-body h4 { font-size: 1rem; }

.category-description-body ul,
.category-description-body ol {
    margin-bottom: 1rem;
    padding-right: 1.25rem;
}

.category-description-body li {
    margin-bottom: 0.35rem;
}

.category-description-body strong {
    font-weight: 600;
}

.category-description-body code {
    font-size: 0.875em;
    background: #f1f3f4;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}

/* بلوک دسته‌بندی فوتر - تمام عرض */
.footer-categories-block {
    width: 100%;
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
}

.footer-categories-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .footer-categories-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 992px) {
    .footer-categories-inner {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.footer-categories-wrap {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #e9ecef;
}

.footer-categories-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e2c;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.02em;
}

.footer-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    justify-content: flex-start;
}

.footer-category-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    background: #f8faf8;
    border: 1px solid #e2e8e2;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.footer-category-item:hover {
    border-color: var(--color-brand, #2E8B57);
    background: rgba(46, 139, 87, 0.08);
    color: var(--color-brand, #2E8B57);
    box-shadow: 0 2px 10px rgba(46, 139, 87, 0.15);
}

.footer-category-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8efe8;
}

.footer-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-category-name {
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .footer-category-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .footer-category-img {
        width: 20px;
        height: 20px;
    }

    .footer-category-name {
        max-width: 100px;
    }
}

/* دسته‌بندی متنی فوتر - ۱۰ تا در هر ردیف + دکمه بیشتر */
.footer-categories-text-wrap {
    width: 100%;
    padding: 1.75rem 0 0;
    margin-top: 0;
}

.footer-categories-text-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e2c;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.02em;
}

.footer-categories-text-grid-wrap {
    max-height: 5.5rem;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.footer-categories-text-grid-wrap.footer-categories-text-grid-expanded {
    max-height: 2000px;
}

.footer-categories-text-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.4rem 0.75rem;
    width: 100%;
}

.footer-category-text-link {
    display: block;
    color: #4a5d4a;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-category-text-link:hover {
    color: var(--color-brand, #2E8B57);
    background: rgba(46, 139, 87, 0.08);
    border-color: rgba(46, 139, 87, 0.2);
    transform: translateX(-2px);
}

.footer-categories-text-more-wrap {
    padding-top: 0.25rem;
}

.footer-categories-more-btn {
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.footer-categories-more-btn:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.footer-categories-more-icon {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

@media (max-width: 1199.98px) {
    .footer-categories-text-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .footer-categories-text-grid-wrap {
        max-height: 6rem;
    }
}

@media (max-width: 767.98px) {
    .footer-categories-text-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.35rem 0.5rem;
    }

    .footer-category-text-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.4rem;
    }

    .footer-categories-text-grid-wrap {
        max-height: 5.5rem;
    }
}

@media (max-width: 575.98px) {
    .footer-categories-text-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .footer-categories-text-grid-wrap {
        max-height: 5rem;
    }
}

.Home_filterSection {
    background-color: white;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.Home_filterSection .chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.Home_filterSection .Home_filterLabel {
    font-weight: 600;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* ========== Product Page ========== */
.product-info-header {
    gap: 0.5rem;
}

.product-wishlist {
    font-size: 1.25rem;
    padding: 0.25rem;
}

.product-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.product-price-row .product-price {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--c);
}

.product-price {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--c);
}

.badge-available {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-success);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
}

.product-img-main {
    min-height: 360px;
    aspect-ratio: 1;
    display: block;
    position: relative;
}

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

.product-img-main.product-img-placeholder img {
    object-fit: contain;
}

.product-thumbs {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    /* همان عرض بلوک تصویر اصلی */
}

.product-thumb {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    display: block;
    border: 2px solid transparent;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.product-thumb:hover {
    opacity: 0.9;
}

.product-thumb-clickable {
    cursor: pointer;
}

.product-thumb-clickable:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.product-thumb.active {
    border-color: var(--c) !important;
}

/* Product Image Zoom Effect */
.product-img-zoom-container {
    position: relative;
    overflow: hidden;
}

.product-img-clickable {
    transition: transform 0.3s ease, cursor 0.2s;
}

.product-img-zoom-container:hover .product-img-clickable {
    transform: scale(1.1);
    cursor: zoom-in;
}

/* Product Lightbox Modal */
.product-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.product-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10000;
}

.product-lightbox-image-container {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #000;
}

.product-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.product-lightbox-prev {
    right: 1rem;
}

.product-lightbox-next {
    left: 1rem;
}

.product-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.product-lightbox-counter {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

/* RTL Support for Lightbox */
[dir="rtl"] .product-lightbox-prev {
    left: 1rem;
    right: auto;
}

[dir="rtl"] .product-lightbox-next {
    right: 1rem;
    left: auto;
}

.product-care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.care-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--spacing-md);
    background: var(--muted);
    border-radius: var(--r);
    text-align: center;
}

.care-item i {
    font-size: 1.5rem;
    color: var(--c);
}

.care-label {
    font-size: var(--font-size-xs);
    color: var(--txt2);
}

.care-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.product-sellers-header {
    border-bottom: none;
}

.product-sellers-city {
    display: flex;
    align-items: center;
}

.product-sellers .seller-row {
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
}

.seller-price-contact .price {
    font-weight: 600;
    color: var(--c);
}

/* ========== تب‌های محصول (زیبا و غنی) ========== */
.product-tabs-section {
    background: linear-gradient(180deg, #f8faf8 0%, #eef5ef 50%, #e8f0ea 100%);
}

.product-tabs-card {
    border: 1px solid rgba(46, 139, 87, 0.12);
    box-shadow: 0 4px 24px rgba(46, 139, 87, 0.06);
}

.product-tabs-header {
    background: linear-gradient(180deg, #fff 0%, #fafcfa 100%);
    border-bottom: 1px solid rgba(46, 139, 87, 0.12);
    padding: 0;
}

.product-tabs-nav {
    gap: 0.25rem;
    padding: 0.85rem 1rem 0;
    flex-wrap: wrap;
}

.product-tabs-nav .nav-link {
    color: var(--txt2);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.65rem 1.15rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    border-bottom: none;
    position: relative;
}

.product-tabs-nav .nav-link:hover {
    color: var(--c);
    background: rgba(46, 139, 87, 0.08);
}

.product-tabs-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    box-shadow: 0 2px 12px rgba(46, 139, 87, 0.35);
}

.product-tabs-body {
    min-height: 280px;
    background: #fff;
}

/* توضیحات محصول — تیترها و فاصله‌ها */
.product-description-content {
    color: #444;
    line-height: 1.9;
    font-size: 1.0625rem;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 {
    color: #1a3d2a;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.product-description-content h1:first-child,
.product-description-content h2:first-child,
.product-description-content h3:first-child,
.product-description-content h4:first-child,
.product-description-content h5:first-child,
.product-description-content h6:first-child {
    margin-top: 0;
}

.product-description-content h1 {
    font-size: 1.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.25);
    margin-bottom: 1.1rem;
}

.product-description-content h2 {
    font-size: 1.42rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.22);
    padding-bottom: 0.6rem;
    position: relative;
    padding-right: 0.5rem;
}

.product-description-content h2::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, var(--c) 0%, transparent 100%);
    border-radius: 2px;
}

.product-description-content h3 {
    font-size: 1.22rem;
    color: #234a32;
    padding-right: 0.75rem;
    border-right: 4px solid rgba(46, 139, 87, 0.35);
    margin-right: -0.25rem;
}

.product-description-content h4 {
    font-size: 1.12rem;
    color: #2d5a3d;
}

.product-description-content h5 {
    font-size: 1.05rem;
    color: #356b48;
}

.product-description-content h6 {
    font-size: 1rem;
    color: #3d7a52;
    font-weight: 600;
}

.product-description-content p {
    margin-bottom: 1rem;
    margin-top: 0;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.product-description-content p+h1,
.product-description-content p+h2,
.product-description-content p+h3,
.product-description-content p+h4,
.product-description-content p+h5,
.product-description-content p+h6 {
    margin-top: 2.25rem;
}

.product-description-content h1+p,
.product-description-content h2+p,
.product-description-content h3+p,
.product-description-content h4+p,
.product-description-content h5+p,
.product-description-content h6+p {
    margin-top: 0.6rem;
}

.product-description-content ul,
.product-description-content ol {
    margin: 0.75rem 0 1rem;
    padding-right: 1.5rem;
}

.product-description-content li {
    margin-bottom: 0.4rem;
}

.product-description-content strong {
    color: var(--txt);
    font-weight: 600;
}

/* خلاصه محصول — باکس زیبا */
.product-desc-lead-wrap {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(145deg, rgba(46, 139, 87, 0.08) 0%, rgba(46, 139, 87, 0.03) 50%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(46, 139, 87, 0.18);
    border-radius: 16px;
    border-right: 5px solid var(--c);
    box-shadow: 0 2px 16px rgba(46, 139, 87, 0.06);
    position: relative;
    overflow: hidden;
}

.product-desc-lead-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 100% 0%, rgba(46, 139, 87, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.product-desc-lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #2d3d32;
    position: relative;
}

/* فهرست مطالب توضیحات محصول */
.product-desc-toc {
    position: sticky;
    top: 1rem;
    padding: 1.5rem 1.35rem;
    background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
    border: 1px solid rgba(46, 139, 87, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* sticky داخل کارت‌هایی با overflow hidden کار نمی‌کند */
.product-tabs-card {
    overflow: visible;
}

/* فهرست همیشه قابل استفاده باشد (اگر طولانی شد اسکرول داخلی بگیرد) */
@media (min-width: 992px) {
    .product-desc-toc {
        top: 1.25rem;
        max-height: calc(100vh - 2.5rem);
        overflow: auto;
    }
}

.product-desc-toc-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3d2a;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.15);
}

.product-desc-toc-title i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.15) 0%, rgba(46, 139, 87, 0.08) 100%);
    color: var(--c);
    font-size: 1rem;
    border-radius: 10px;
}

.product-desc-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-desc-toc-item--sub .product-desc-toc-link {
    padding-right: 1.1rem;
    font-size: 0.9rem;
}

.product-desc-toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    color: #4a5d52;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    line-height: 1.4;
    border-right: 3px solid transparent;
}

.product-desc-toc-link:hover {
    color: var(--c);
    background: linear-gradient(90deg, rgba(46, 139, 87, 0.12) 0%, rgba(46, 139, 87, 0.04) 100%);
    border-right-color: var(--c);
}

.product-desc-toc-link-text {
    flex: 1;
    min-width: 0;
}

.product-desc-toc-link-icon {
    font-size: 0.7rem;
    opacity: 0.4;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.product-desc-toc-link:hover .product-desc-toc-link-icon {
    opacity: 1;
    transform: translateX(-3px);
}

/* محتوای توضیحات وقتی فهرست کنارش هست */
.product-description-content--with-toc {
    padding: 0.35rem 0;
}

.product-description-content--with-toc h2 {
    color: #1a3d2a;
    border-bottom-color: rgba(46, 139, 87, 0.22);
    padding-bottom: 0.65rem;
}

/* اسکرول نرم و فاصله برای کلیک روی فهرست */
.product-description-content h1[id],
.product-description-content h2[id],
.product-description-content h3[id],
.product-description-content h4[id],
.product-description-content h5[id],
.product-description-content h6[id] {
    scroll-margin-top: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

.product-desc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-desc-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.6rem;
    color: #4a5d52;
    line-height: 1.6;
}

.product-desc-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--c) 0%, var(--color-brand-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.product-spec-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(180deg, #f8faf8 0%, #f0f4f1 100%);
    border: 1px solid rgba(46, 139, 87, 0.15);
    border-radius: 999px;
    font-size: 0.9rem;
    color: #2d3d32;
    transition: all 0.2s ease;
}

.product-spec-badge:hover {
    border-color: rgba(46, 139, 87, 0.3);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.08);
}

.product-spec-badge i {
    color: var(--c);
    margin-left: 0.35rem;
}

/* عناوین بخش‌های مزایا و مشخصات */
.product-desc-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3d2a;
    display: flex;
    align-items: center;
}

.product-desc-section-title i {
    color: var(--c);
    font-size: 1.1rem;
}

/* فوتر توضیحات */
.product-desc-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(46, 139, 87, 0.12);
}

.product-desc-footer-text {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7c72;
    padding: 0.6rem 1rem;
    background: rgba(46, 139, 87, 0.04);
    border-radius: 10px;
    display: inline-block;
}

.care-tip-card {
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: 100%;
    transition: var(--transition);
}

.care-tip-card:hover {
    border-color: var(--c);
    box-shadow: var(--shadow);
}

.care-tip-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(46, 139, 87, 0.12);
    color: var(--c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.care-tip-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 0.5rem;
}

.care-tip-text {
    font-size: var(--font-size-sm);
    color: var(--txt2);
    margin: 0;
    line-height: 1.6;
}

.product-qa-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-qa-item {
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-qa-item:hover {
    border-color: var(--c);
}

.product-qa-question {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--txt);
    display: flex;
    align-items: center;
}

.product-qa-answer {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    padding-right: calc(var(--spacing-lg) + 1.5rem);
}

.product-qa-answer p {
    font-size: var(--font-size-sm);
    color: var(--txt2);
    line-height: 1.7;
}

.product-related-article {
    transition: var(--transition);
}

.product-related-article:hover {
    border-color: var(--c) !important;
    box-shadow: var(--shadow);
}

/* ========== صفحه مقالات ========== */
.articles-hero {
    background: linear-gradient(135deg, var(--muted) 0%, var(--bg) 100%);
}

.articles-search .form-control:focus {
    box-shadow: none;
    outline: none;
}

.articles-filter .chip {
    margin: 0;
}

.article-card {
    transition: var(--transition);
    border: 1px solid var(--color-border) !important;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--c) !important;
}

.article-card a:hover {
    color: inherit;
}

.article-card-img {
    /* در گرید چندستونه (خصوصاً row-cols-lg-5) نسبت 16/9 خیلی کوتاه می‌شود */
    aspect-ratio: 4 / 3;
    min-height: 130px;
}

.article-card-title {
    font-weight: 600;
    color: var(--txt);
    line-height: 1.5;
}

.article-card-excerpt {
    line-height: 1.6;
}

.article-card-tag {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.pagination .page-link {
    color: var(--c);
}

.pagination .page-item.active .page-link {
    background-color: var(--c);
    border-color: var(--c);
}

/* ========== صفحه جزئیات مقاله — خوانایی و ظاهر ========== */
html {
    scroll-behavior: smooth;
}

.article-page {
    --article-font: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
    --article-text: #1a1a1a;
    --article-text-soft: #444;
    --article-line: 1.95;
    --article-measure: 42rem;
}

.article-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.article-breadcrumb .breadcrumb-item a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.article-breadcrumb .breadcrumb-item a:hover {
    color: var(--c);
}

.article-detail-header {
    max-width: var(--article-measure);
    margin-left: auto;
    margin-right: 0;
}

.article-detail-category {
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.article-detail-title {
    font-family: var(--article-font);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--article-text);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.article-detail-lead {
    font-family: var(--article-font);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--article-text-soft) !important;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.article-detail-header .article-detail-meta {
    margin-top: 1rem;
}

.article-detail-meta {
    font-family: var(--article-font);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-detail-meta i {
    color: var(--c);
}

/* تصویر شاخص مقاله */
.article-detail-featured-wrap {
    max-width: 100%;
    margin-bottom: 2rem;
}

.article-detail-featured {
    min-height: 200px;
    max-height: 320px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* بدنه مقاله — خوانایی */
.article-detail-body.prose,
.article-prose {
    font-family: var(--article-font);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: var(--article-line);
    color: var(--article-text);
    max-width: var(--article-measure);
    margin-left: auto;
    margin-right: 0;
}

.article-detail-body.prose p {
    font-weight: 400;
    line-height: var(--article-line);
    margin-bottom: 1.35rem;
    text-align: justify;
    text-justify: inter-word;
}

.article-detail-body.prose p:first-of-type {
    font-size: 1.0625rem;
    color: var(--article-text-soft);
}

.article-detail-body.prose .lead {
    font-size: 1.1875rem;
    line-height: 1.75;
}

.article-detail-body.prose .article-heading,
.article-detail-body.prose h2 {
    font-family: var(--article-font);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--article-text);
    line-height: 1.4;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.2);
}

.article-detail-body.prose h3 {
    font-family: var(--article-font);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--article-text);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-detail-body.prose strong {
    font-weight: 400;
    color: var(--article-text);
}

.article-detail-body.prose em {
    font-style: normal;
    font-weight: 400;
}

.article-detail-body.prose ul,
.article-detail-body.prose ol {
    padding-right: 1.75rem;
    margin-bottom: 1.35rem;
}

.article-detail-body.prose ul li,
.article-detail-body.prose ol li {
    margin-bottom: 0.5rem;
    line-height: var(--article-line);
}

.article-detail-body.prose ul {
    list-style-type: disc;
}

.article-detail-body.prose ol {
    list-style-type: decimal;
}

.article-detail-body.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    padding-right: 1.25rem;
    border-right: 4px solid var(--c);
    background: var(--color-background-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.0625rem;
    color: var(--article-text-soft);
    font-style: normal;
}

.article-detail-body.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.article-detail-body.prose a {
    color: var(--c);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-detail-body.prose a:hover {
    color: var(--color-brand-dark);
}

/* محتوای غنی یکپارچه — مقالات، توضیحات محصول، توضیحات دسته‌بندی */
.rich-content {
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }

.rich-content p {
    margin-top: 0;
    margin-bottom: 1.1rem;
}

.rich-content p + p { margin-top: 0.5rem; }

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: #1a3d2a;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.rich-content h1:first-child,
.rich-content h2:first-child,
.rich-content h3:first-child,
.rich-content h4:first-child,
.rich-content h5:first-child,
.rich-content h6:first-child { margin-top: 0; }

.rich-content h1 {
    font-size: 1.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.25);
    margin-bottom: 1.1rem;
}
.rich-content h2 {
    font-size: 1.42rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(46, 139, 87, 0.22);
    position: relative;
}
.rich-content h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, var(--c, #2e8b57) 0%, transparent 100%);
    border-radius: 2px;
}
.rich-content h3 {
    font-size: 1.22rem;
    color: #234a32;
    padding-right: 0.75rem;
    border-right: 4px solid rgba(46, 139, 87, 0.35);
    margin-right: -0.25rem;
}
.rich-content h4 { font-size: 1.12rem; color: #2d5a3d; }
.rich-content h5 { font-size: 1.05rem; color: #356b48; }
.rich-content h6 { font-size: 1rem; color: #3d7a52; font-weight: 600; }

.rich-content h1 + p,
.rich-content h2 + p,
.rich-content h3 + p,
.rich-content h4 + p,
.rich-content h5 + p,
.rich-content h6 + p { margin-top: 0.6rem; }

.rich-content ul,
.rich-content ol {
    margin: 0.85rem 0 1.1rem;
    padding-right: 1.6rem;
}

.rich-content li {
    margin-bottom: 0.45rem;
    line-height: 1.8;
}

.rich-content ul { list-style-type: disc; }
.rich-content ol { list-style-type: decimal; }

.rich-content strong {
    font-weight: 600;
    color: #1f2937;
}

.rich-content a {
    color: var(--c, #2e8b57);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rich-content a:hover { color: #1d6b42; }

.rich-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    padding-right: 1.25rem;
    border-right: 4px solid var(--c, #2e8b57);
    background: rgba(46, 139, 87, 0.06);
    border-radius: 0 12px 12px 0;
    color: #4b5563;
    font-size: 1rem;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rich-content code {
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    color: #1f2937;
}

.rich-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.2), transparent);
    margin: 1.5rem 0;
}

.rich-content h1[id],
.rich-content h2[id],
.rich-content h3[id],
.rich-content h4[id],
.rich-content h5[id],
.rich-content h6[id] {
    scroll-margin-top: 1.5rem;
}

/* سایدبار مقاله */
.article-sidebar {
    font-family: var(--article-font, 'Vazir', Tahoma, sans-serif);
}

.article-sidebar-box {
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
}

.article-sidebar-box h3 {
    font-family: var(--article-font, 'Vazir', Tahoma, sans-serif);
    font-weight: 600;
    color: var(--article-text, var(--txt));
}

/* فهرست مطالب مقاله */
.article-toc.article-sidebar-box {
    border-right: 3px solid var(--c);
}

.article-toc-link {
    color: var(--txt2);
    transition: var(--transition);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.article-toc-link:hover,
.article-toc-link.active {
    color: var(--c);
    background: rgba(46, 139, 87, 0.08);
}

.article-toc-list li {
    margin-bottom: 0.35rem;
}

/* بخش‌های مقاله برای اسکرول نرم */
.article-section {
    scroll-margin-top: 1.5rem;
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--txt);
    text-decoration: none;
    transition: var(--transition);
}

.article-tag:hover {
    background: var(--c);
    color: #fff;
    border-color: var(--c);
}

.article-sidebar-box ul li a:hover {
    color: var(--c);
}

.article-related-products .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

/* ========== صفحه لیست فروشندگان ========== */
.sellers-hero {
    background: linear-gradient(135deg, var(--muted) 0%, var(--bg) 100%);
}

.sellers-search .form-control:focus {
    box-shadow: none;
    outline: none;
}

.seller-card {
    transition: var(--transition);
    border: 1px solid var(--color-border) !important;
}

.seller-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--c) !important;
}

.seller-card-header {
    border-bottom: 1px solid var(--color-border);
}

.seller-card-name {
    font-weight: 600;
    color: var(--txt);
}

.seller-card-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-card-rating .seller-stars i {
    font-size: 0.9rem;
}

.seller-card-meta i {
    color: var(--c);
}

/* ========== صفحه جزئیات فروشنده ========== */
.seller-profile-card {
    border: 1px solid var(--color-border);
}

.seller-profile-logo {
    width: 120px;
    height: 120px;
}

.seller-profile-name {
    font-weight: 700;
    color: var(--txt);
}

.seller-profile-rating .seller-stars i {
    font-size: 1rem;
}

.seller-profile-about {
    line-height: 1.7;
}

.seller-products .card:hover,
.seller-articles .article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

/* ========== بخش نظرات (محصول، فروشنده، مقاله) ========== */
.comments-section .comment-item:last-child {
    border-bottom: none !important;
}

.comment-avatar {
    width: 48px;
    height: 48px;
}

.comment-author {
    font-size: var(--font-size-base);
}

.comment-text {
    line-height: 1.6;
}

.comment-form-card {
    border: 1px solid var(--color-border) !important;
}

.comment-form .form-control:focus,
.comment-form .form-select:focus {
    border-color: var(--c);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.15);
}

@media(max-width:576px) {

    .list-view .card,
    .list-view .card .card-img-wrap {
        width: 100%;
        height: auto;
        min-height: 180px
    }

    .product-care-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== دسته‌بندی‌ها - اسلایدر ========== */
.categories-section {
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-light) 100%);
}

.categories-slider-wrapper {
    overflow: hidden;
    margin: 0 calc(-1 * var(--spacing-md));
    padding: var(--spacing-sm) 0;
}

.categories-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: var(--spacing-md);
    margin: 0 calc(-1 * var(--spacing-md));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.categories-track.categories-dragging {
    scroll-snap-type: none;
}

.categories-track.categories-dragging .category-card {
    pointer-events: none;
}

.categories-track::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c);
}

.category-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--muted);
}

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

.category-card-body {
    padding: var(--spacing-md);
}

.category-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--txt);
    line-height: 1.4;
}

.category-card-subtitle {
    font-size: var(--font-size-xs);
    color: var(--txt2);
    margin: 0;
    font-style: italic;
}

@media (min-width: 576px) {
    .category-card {
        width: 180px;
    }
}

@media (min-width: 768px) {
    .category-card {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .categories-slider-wrapper {
        margin: 0 -24px;
    }

    .categories-track {
        padding: var(--spacing-lg);
        margin: 0 -24px;
    }

    .category-card {
        width: 220px;
    }
}

/*! CSS Used from: Embedded */
*,
::after,
::before {
    box-sizing: border-box;
}

h1,
h3 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width:1200px) {
    h1 {
        font-size: 2.5rem;
    }
}

h3 {
    font-size: calc(1.3rem + .6vw);
}

@media (min-width:1200px) {
    h3 {
        font-size: 1.75rem;
    }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;
}

a:hover {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

button {
    border-radius: 0;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

button {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    text-transform: none;
}

button {
    -webkit-appearance: button;
}

button:not(:disabled) {
    cursor: pointer;
}

.btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

@media (prefers-reduced-motion:reduce) {
    .btn {
        transition: none;
    }
}

.btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

:not(.btn-check)+.btn:active {
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
}

.btn:disabled {
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
    background-color: var(--bs-btn-disabled-bg);
    border-color: var(--bs-btn-disabled-border-color);
    opacity: var(--bs-btn-disabled-opacity);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}

.btn-sm {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}

.badge {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}

.badge:empty {
    display: none;
}

.me-1 {
    margin-left: .25rem !important;
}

.me-2 {
    margin-left: .5rem !important;
}

.text-success {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-success-rgb), var(--bs-text-opacity)) !important;
}

.text-dark {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
}

.bg-success {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

/*! CSS Used from: Embedded */
.bi::before,
[class*=" bi-"]::before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-feature-settings: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bi-brightness-high::before {
    content: "\f1d2";
}

.bi-check-circle::before {
    content: "\f26b";
}

.bi-droplet::before {
    content: "\f30d";
}

.bi-geo-alt::before {
    content: "\f3e8";
}

.bi-heart::before {
    content: "\f417";
}

.bi-patch-check-fill::before {
    content: "\f4b5";
}

.bi-rulers::before {
    content: "\f523";
}

.bi-shop::before {
    content: "\f543";
}

.bi-telephone::before {
    content: "\f5c1";
}

.bi-thermometer-half::before {
    content: "\f5cd";
}

/*! CSS Used from: Embedded */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1,
h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-brand-dark);
}

.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.badge {
    border-radius: var(--radius-full);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* ========== Product detail (صفحه محصول) ========== */
.product-detail .product-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.product-detail .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.product-detail .product-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.product-scientific-name {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0;
}

.product-favorite-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    background-color: white;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 24px;
    flex-shrink: 0;
}

.product-favorite-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    transform: scale(1.05);
}

.product-status-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--color-background-light);
    border-radius: var(--radius);
}

.product-status-badge {
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-md);
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}

.product-price-amount {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--color-brand);
}

.product-price-currency {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

.product-price-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-right: var(--spacing-sm);
}

.product-sellers-list {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-background-light);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.product-sellers-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.product-sellers-city-filter {
    display: flex;
    align-items: center;
}

.product-sellers-city-filter .form-select {
    min-width: 120px;
}

.product-sellers-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.product-seller-offers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding-inline: 2px;
}

.product-seller-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.product-seller-city {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
}

.product-seller-city i {
    color: var(--color-brand);
}

.product-seller-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 0.75rem;
    background-color: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.product-seller-info {
    flex: 1 1;
    min-width: 0;
}

.product-seller-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.product-seller-phone {
    font-size: var(--font-size-xs);
    color: var(--color-brand);
    text-decoration: none;
    display: block;
    margin-top: 2px;
}

.product-seller-phone:hover {
    color: var(--color-brand-dark);
    text-decoration: underline;
}

.product-seller-price {
    text-align: left;
    white-space: nowrap;
}

.product-offer-price {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-brand);
}

.product-offer-currency {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-right: var(--spacing-xs);
}

.product-quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: var(--spacing-md);
    gap: var(--spacing-md);
}

.product-info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--color-background-light);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.product-info-card i {
    font-size: 32px;
    color: var(--color-brand);
}

.product-info-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.product-info-value {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
}

.product-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.product-tag {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-background-muted) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border);
}

@media (max-width: 991px) {
    .product-detail .product-title {
        font-size: var(--font-size-3xl);
    }

    .product-price-amount {
        font-size: var(--font-size-3xl);
    }

    .product-quick-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-detail .product-title {
        font-size: var(--font-size-2xl);
    }

    .product-price-amount {
        font-size: var(--font-size-2xl);
    }

    .product-status-price {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .product-info-card {
        padding: var(--spacing-sm);
    }

    .product-info-card i {
        font-size: 24px;
    }
}

/*! CSS Used fontfaces */
@font-face {
    font-display: block;
    font-family: "bootstrap-icons";
    src: url(http://localhost:3000/_next/static/media/bootstrap-icons.154365ac.woff2) format("woff2"), url(http://localhost:3000/_next/static/media/bootstrap-icons.ac1a99b3.woff) format("woff");
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* پروفایل - تکرار برای specificity (پایان فایل) */
.profile-section .profile-tab-btn.active {
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-brand);
    font-weight: 600;
    border-right-color: var(--color-brand);
}

.profile-section .profile-tab-btn:hover {
    background: var(--color-background-light);
    color: var(--color-text);
}

/* دکمه شناور «ویرایش در پنل» — فقط برای ادمین */
.admin-edit-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
}

.admin-edit-fab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-edit-fab-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.5);
}

.admin-edit-fab-link i {
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .admin-edit-fab-text {
        display: none;
    }

    .admin-edit-fab-link {
        padding: 0.75rem;
        border-radius: 50%;
    }
}

/* ========== استایل‌های زیبا برای جداول ========== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* هدر جدول */
table thead {
    background: linear-gradient(135deg, #f8faf9 0%, #f0f5f2 100%);
}

table thead th {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
    border-bottom: 2px solid var(--color-border);
    font-size: var(--font-size-sm);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    vertical-align: middle;
}

table thead th:first-child {
    border-top-right-radius: var(--radius-lg);
}

table thead th:last-child {
    border-top-left-radius: var(--radius-lg);
}

/* بدنه جدول */
table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody tr:hover {
    background: rgba(46, 139, 87, 0.04);
    transform: translateX(-2px);
    box-shadow: inset 4px 0 0 var(--color-brand);
}

table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* استایل برای جدول با کلاس table-hover */
table.table-hover tbody tr:hover {
    background: rgba(46, 139, 87, 0.06);
    cursor: pointer;
}

/* استایل برای جدول با کلاس table-striped */
table.table-striped tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

table.table-striped tbody tr:nth-child(even):hover {
    background: rgba(46, 139, 87, 0.08);
}

/* استایل برای جدول با کلاس table-bordered */
table.table-bordered {
    border: 1px solid var(--color-border);
}

table.table-bordered th,
table.table-bordered td {
    border: 1px solid var(--color-border);
}

/* استایل برای جدول با کلاس table-light در thead */
table thead.table-light {
    background: #f8f9fa;
}

table thead.table-light th {
    background: #f8f9fa;
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}

/* استایل برای جدول با کلاس table-dark */
table.table-dark {
    background: #212529;
    color: #fff;
}

table.table-dark thead {
    background: #212529;
}

table.table-dark thead th {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

table.table-dark tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

table.table-dark tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

table.table-dark tbody td {
    color: #fff;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* استایل برای جدول کوچک (table-sm) */
table.table-sm thead th,
table.table-sm tbody td {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-xs);
}

/* استایل برای جدول در card */
.card table {
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.card table thead th:first-child {
    border-top-right-radius: 0;
}

.card table thead th:last-child {
    border-top-left-radius: 0;
}

/* استایل برای responsive table */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive table {
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

/* استایل برای align-middle */
table.align-middle td,
table.align-middle th {
    vertical-align: middle;
}

/* استایل برای text-center در سلول‌ها */
table td.text-center,
table th.text-center {
    text-align: center;
}

table td.text-end,
table th.text-end {
    text-align: left;
}

table td.text-start,
table th.text-start {
    text-align: right;
}

/* استایل برای لینک‌ها در جدول */
table tbody td a {
    color: var(--color-brand);
    text-decoration: none;
    transition: var(--transition);
}

table tbody td a:hover {
    color: var(--color-brand-dark);
    text-decoration: underline;
}

/* استایل برای دکمه‌ها در جدول */
table tbody td .btn {
    margin: 0 2px;
}

/* استایل برای تصاویر در جدول */
table tbody td img {
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* استایل برای badge در جدول */
table tbody td .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* استایل برای empty state در جدول */
table tbody tr.empty-row td {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* استایل برای جدول در حالت موبایل */
@media (max-width: 768px) {
    table {
        font-size: var(--font-size-xs);
    }

    table thead th,
    table tbody td {
        padding: 0.75rem 0.5rem;
    }

    table thead th:not(:first-child),
    table tbody td:not(:first-child) {
        display: none;
    }

    table thead th:first-child,
    table tbody td:first-child {
        display: table-cell;
        width: 100%;
    }
}

/* استایل برای جدول با border-radius */
table.rounded {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table.rounded thead th:first-child {
    border-top-right-radius: var(--radius-lg);
}

table.rounded thead th:last-child {
    border-top-left-radius: var(--radius-lg);
}

table.rounded tbody tr:last-child td:first-child {
    border-bottom-right-radius: var(--radius-lg);
}

table.rounded tbody tr:last-child td:last-child {
    border-bottom-left-radius: var(--radius-lg);
}
