/* Iranyekan Font Import */
@import url('https://fonts.googleapis.com/css2?family=Iranyekan:wght@400;700&display=swap');

body {
    font-family: 'Iranyekan', sans-serif;
    background-color: #f5f5f5;
}


.pm-product-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazir', sans-serif;
    background: #f4f4f4; /* Light background for contrast */
    border-radius: 10px; /* Rounded corners */
}

.pm-search-form {
    background: #ffffff; /* White background for the search form */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Increased gap for better spacing */
}

.filter-input, .filter-select, .price-input {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9; /* Slightly darker background */
    font-size: 14px;
    flex-grow: 1;
    min-width: 120px;
    transition: border-color 0.3s;
}

.filter-input:focus, .filter-select:focus, .price-input:focus {
    border-color: #2563eb; /* Highlight border on focus */
}

.filter-button {
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.filter-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px); /* Slight lift effect */
}


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

.spd-section-title {
    font-size: 22px;
    color: #374151;
    margin: 25px 0 15px;
    font-weight: 700;
}

.spd-scroll-container {
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.spd-scroll-container::-webkit-scrollbar {
    display: none;
}

.spd-scroll-track {
    display: flex;
    gap: 15px;
}

.spd-scroll-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spd-scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.spd-product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    background: #f9fafb;
}

.spd-product-content {
    padding: 15px;
}

.spd-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.spd-product-group {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.spd-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #d12f2f;
    margin-bottom: 15px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.star {
    color: #eab308;
    font-size: 16px;
}

.rating-count {
    font-size: 12px;
    color: #6b7280;
    margin-right: 5px;
}

.spd-product-btn {
    display: block;
    background-color: #e11d48;
    color: white;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.spd-product-btn:hover {
    background-color: #be123c;
}

.spd-multi-color-line {
    height: 4px;
    background: linear-gradient(to left, #e11d48, #d946ef, #6366f1);
    margin: 30px 0;
    border-radius: 2px;
}

.spd-gallery {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.spd-gallery-segment {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.spd-gallery-segment img {
    width: 100%;
    display: block;
}

.spd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.pm-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pm-pagination a {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

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

.pm-pagination .page-number.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column; /* Change to column on small screens */
    }
    
    .filter-input, .filter-select, .price-input, .price-range {
        width: 95%; /* Make inputs full width */
        margin-left: 2%;
    }
    
    .price-range {
        flex-direction: column; /* Stack price inputs vertically */
    }
/*     
    .pm-product-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    } */
}
