/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@font-face {
  font-family: 'titr';
  src: url('fonts/B Titr Bold_0.ttf') format('ttf');
}
@font-face {
  font-family: 'iran';
  src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'vazir';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
}
/* products.css */
.products-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
}

.products-section .section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.products-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #e67e22, #f39c12);
    border-radius: 2px;
}

.category-filter {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.category-filter h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: #ecf0f1;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    color: #7f8c8d;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

.product-shop {
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.product-category {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.product-description {
    color: #5a6c7d;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: #e74c3c;
    margin: 15px 0;
    text-align: center;
}

.product-info .btn-primary {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    width: 100%;
    display: block;
    text-align: center;
}

.product-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #7f8c8d;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-section {
        margin: 20px;
        padding: 20px;
    }
    
    .category-filter {
        padding: 20px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}