/* ===== VARIABLES ===== */
:root {
    --header-height: 68px;
    --header-gap: 20px;
    --primary: #6c5ce7;
    --primary-hover: #5a4bd1;
    --success: #00b894;
    --danger: #d63031;
    --text: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --border: #e9ecef;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.8;
    padding: 0; /* حذف padding بدنه – فاصله‌ها توسط container مدیریت می‌شه */
}

/* ===== CONTAINER (محتوا) ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    margin-top: calc(var(--header-height) + var(--header-gap)); /* فاصله از هدر ثابت */
    margin-bottom: 60px; /* فاصله تا فوتر (مثل margin-top فوتر) */
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    box-shadow: var(--shadow-lg);
    overflow: hidden; /* لبه‌های گرد به درستی نمایش داده بشه */
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #a29bfe);
    border-radius: 4px;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ===== HEADER / NAVBAR (ثابت و مخفی‌شونده) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* دکمه همبرگر */
.header-toggle {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-toggle:hover {
    background: var(--primary-hover);
}

/* منوی اصلی (اوورلی) */
.nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: -110%;
    background: #fff;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), top 0.35s;
    transform: translateY(-10px);
    z-index: 1250;
    box-shadow: var(--shadow-md);
    padding: 18px 0;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 18px;
    font-size: 1.05rem;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
}

/* وقتی منو بازه */
.navbar.open #nav-menu {
    top: var(--header-height);
    transform: translateY(0);
}

/* بک‌دراپ */
.header-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 1240;
}

.header-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* دسکتاپ: منو به صورت خطی و همیشه visible */
@media (min-width: 901px) {
    .header-toggle {
        display: none; /* دکمه همبرگر مخفی */
    }

    .nav-menu {
        position: static;
        top: auto;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        transition: none;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 10px;
    }

    .nav-menu a {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .navbar.open #nav-menu {
        top: auto;
        transform: none;
    }

    .header-backdrop {
        display: none;
    }
}

/* ===== PRODUCTS GRID ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(108,92,231,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.product-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-body h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-card .actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    text-decoration: none;
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #00a381;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== TABLES ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

th {
    background: var(--bg-light);
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-light);
}

/* ===== MESSAGES ===== */
.message {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== CART BADGE ===== */
.cart-badge {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 4px;
    vertical-align: super;
    line-height: 1.4;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(214,48,49,0.3);
}

/* ===== EMPTY CART / CHECKOUT ===== */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-cart .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.checkout-box {
    text-align: center;
    padding: 60px 20px;
}

.checkout-box .icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.checkout-box h2 {
    color: var(--success);
    margin-bottom: 15px;
}

/* ===== CART LINK ===== */
.cart-link-container {
    text-align: center;
    margin-top: 30px;
}

.cart-link {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary), #a29bfe);
    color: #fff;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.cart-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.4);
    text-decoration: none;
    color: #fff;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.product-detail img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-detail .info {
    flex: 1;
    min-width: 250px;
}

.product-detail .info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.product-detail .info .description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.9;
}

/* ===== CATEGORIES ===== */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.category-card {
    background: #fff;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.1);
}

.category-card a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.category-card a:hover {
    color: var(--primary);
}

/* ===== ADMIN ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin-bottom: 0;
}

.admin-header .actions {
    display: flex;
    gap: 10px;
}

/* ===== GATEWAY OPTIONS ===== */
.gateway-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.gateway-option:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(108,92,231,0.1);
}

.gateway-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.gateway-option span {
    font-size: 1rem;
}

/* ===== PROFILE ===== */
.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    max-width: 700px;
    margin: 20px auto;
}

.profile-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.profile-section p {
    margin: 8px 0;
    font-size: 1rem;
    color: #555;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section li {
    background: var(--bg-light);
    padding: 10px 15px;
    margin: 6px 0;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* ===== ABOUT PAGE ===== */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.about-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}

.about-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-section p {
    line-height: 1.9;
    color: #555;
    font-size: 1.05rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
}

.about-section ul li:last-child {
    border-bottom: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.08);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: var(--text);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2d3436;
    color: #dfe6e9;
    padding: 40px 20px 20px;
    margin-top: 60px;
    direction: rtl;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-section a {
    color: #74b9ff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #636e72;
    font-size: 0.9rem;
    color: #b2bec3;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    text-decoration: none;
    margin-top: 20px;
}

.back-to-top:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin-top: calc(var(--header-height) + 14px);
        margin-bottom: 40px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-detail {
        flex-direction: column;
    }

    .product-detail img {
        max-width: 100%;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .nav-menu a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 56px;
        --header-gap: 14px;
    }
}

/* ===== صفحه‌بندی ===== */
.pagination-btn {
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3436;
    transition: all 0.2s;
    font-size: 0.9rem;
    min-width: 42px;
    text-align: center;
}

.pagination-btn:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #fff;
    text-decoration: none;
}

.pagination-btn.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #fff;
    font-weight: 600;
}

.pagination-btn.disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #b2bec3;
    cursor: not-allowed;
}

/* تنظیم آیکون‌ها در دکمه‌های قبلی/بعدی برای RTL */
.pagination-btn .fa-chevron-right {
    margin-left: 5px;
}

.pagination-btn .fa-chevron-left {
    margin-right: 5px;
}
/* ===== شبکه خدمات ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.service-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.12);
    border-color: #6c5ce7;
}

.service-icon {
    font-size: 2.5rem;
    color: #6c5ce7;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.15rem;
    color: #2d3436;
    margin: 10px 0;
}

.service-card p {
    font-size: 0.9rem;
    color: #636e72;
    margin: 10px 0 18px;
    line-height: 1.5;
}

.service-card .btn {
    display: inline-block;
}

.message.message-error i {
    margin-left: 5px;
}

.message.message-error br + br {
    display: none;
}

/* ===== شبکه دسته‌بندی‌های بزرگ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0 40px;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card-big {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 140px;
}

.category-card-big:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.12);
    border-color: #6c5ce7;
}

.category-card-icon {
    font-size: 2.8rem;
    color: #6c5ce7;
    flex-shrink: 0;
    background: #f0eeff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.category-card-content {
    flex: 1;
}

.category-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 6px 0;
}

.category-card-desc {
    font-size: 0.9rem;
    color: #636e72;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-count {
    font-size: 0.85rem;
    color: #6c5ce7;
    background: #f0eeff;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ===== حالت ریسپانسیو ===== */
@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card-big {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .category-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
    }
}

/* ===== فوتر ===== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #dfe6e9;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid #6c5ce7;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #b2bec3;
}

.footer-section a {
    color: #dfe6e9;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #6c5ce7;
}

/* شبکه‌های اجتماعی */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #6c5ce7;
    color: #fff;
    transform: translateY(-3px);
}

/* بخش اینماد */
.enamad-section {
    text-align: center;
}

.enamad-placeholder {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* پایین فوتر */
.footer-bottom {
    text-align: center;
    padding: 20px 0 10px;
    font-size: 0.85rem;
    color: #636e72;
}

.footer-bottom p {
    margin: 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h4 {
        justify-content: center;
    }
}

/* ===== تب‌های دسته‌بندی (Category Tabs) ===== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 30px;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    text-decoration: none;
    color: #2d3436;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.category-tab i {
    font-size: 1.2rem;
    color: #6c5ce7;
}

.category-tab:hover {
    background: #f0eeff;
    border-color: #6c5ce7;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #fff;
}

.category-tab.active i {
    color: #fff;
}

/* ===== جعبه اطلاعات دسته ===== */
.category-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-right: 4px solid #6c5ce7;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
}

.category-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.category-info-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #2d3436;
}

.category-badge {
    background: #6c5ce7;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-description {
    margin: 0;
    color: #636e72;
    line-height: 1.7;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 600px) {
    .category-tabs {
        gap: 8px;
    }
    .category-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .category-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
}