* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 :root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --dark: #1e293b;
    --dark-light: #334155;
    --red: #ef4444;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f97316;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--gray-light);
    color: var(--dark);
    line-height: 1.8;
    direction: rtl;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
/* .header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.nav-desktop {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
} */

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: var(--dark);
}

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

.icon-btn .badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
}

/* Main Content Layout */
.main-content {
    padding: 32px 0;
    min-height: calc(100vh - 200px);
}

.content-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

/* Sidebar Styles */
.sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: var(--shadow);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.sidebar-title i {
    color: var(--primary);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.filter-item:hover {
    background: var(--gray-light);
}

.filter-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-search-sidebar {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

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

/* Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.results-info {
    font-size: 14px;
    color: var(--gray);
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    padding: 0 20px;
}

.sort-section {
    padding: 0 20px;
}

.sort-dropdown {
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.sort-dropdown:focus {
    outline: none;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-wrapper.bg-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.product-image-wrapper.bg-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-image-wrapper.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.product-image-wrapper.bg-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.new-badge {
    background: var(--primary);
    color: var(--white);
}

.sale-badge {
    background: var(--red);
    color: var(--white);
}

.product-favorite {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    color: var(--white);
}

.product-favorite:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.product-image {
    text-align: center;
    z-index: 1;
    padding: 32px;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.product-icon i {
    width: 40px;
    height: 40px;
}

.product-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.product-card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.product-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 600;
}

.star-filled {
    color: var(--orange);
}

.product-students {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.product-students i {
    color: var(--primary);
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-top: 8px;
}

.product-description {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-light);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.btn-view {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-desktop,
    .header-actions .icon-btn,
    .header-actions .btn-primary {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        border: none;
        background: var(--gray-light);
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--dark);
    }

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

    .footer-bottom {
        flex-direction: column;
    }

    .newsletter {
        width: 100%;
    }

    .newsletter input {
        flex: 1;
        min-width: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

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