body {
    font-family: Vazir, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.filters input,
.filters select,
.filters button {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.filters button {
    background: #ff5722;
    color: #fff;
    border: none;
    cursor: pointer;
}

.filters button:hover {
    background: #e64a19;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e91e63;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.badge-outofstock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #9e9e9e;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
    flex: 1;
}

.product-info h3 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}

.price-box {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 8px;
}

.new-price {
    color: #4caf50;
    font-size: 16px;
    font-weight: bold;
}

.btn-addcart {
    width: 100%;
    padding: 10px;
    background: #03a9f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-addcart:hover {
    background: #0288d1;
}

.btn-addcart.disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 3px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
}

.pagination a.active {
    background: #ff5722;
    color: #fff;
    border-color: #ff5722;
}

.pagination a:hover {
    background: #f0f0f0;
}

.no-products {
    text-align: center;
    font-size: 16px;
    color: #777;
}
