.product-page-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pezm-blue);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.product-sidebar {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h4 {
    font-size: 1.3rem;
    color: var(--pezm-blue);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--pezm-red);
    padding-bottom: 5px;
}

.category-filter-list {
    list-style: none;
}

.category-filter-list li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.category-filter-list li a:hover {
    color: var(--pezm-red);
}

.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--pezm-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--pezm-red);
    color: var(--pezm-white);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 23, 110, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.add-to-cart {
    padding: 6px 6px;
    font-size: 0.9rem;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pezm-blue);
    margin-bottom: 5px;
}

.product-category {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
}

.new-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pezm-red);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.pagination a.active, .pagination a:hover {
    background-color: var(--pezm-blue);
    color: var(--pezm-white);
    border-color: var(--pezm-blue);
}
/* ... (Existing styles from product-page.css) ... */

@media (max-width: 992px) {
    .main-content-grid {
        grid-template-columns: 1fr; /* Stack sidebar and product display */
        gap: 30px;
    }
    .product-sidebar {
        padding: 15px;
    }
    .sort-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .product-image {
        height: 200px;
    }
}
/* ... (existing styles) ... */

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--pezm-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products-found, .error-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 50px 0;
    grid-column: 1 / -1; /* Span across all columns in grid */
}

.price-range-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.price-range-filter input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.price-range-filter span {
    color: var(--text-light);
}

.price-range-filter .btn-primary.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Ensure active category link is highlighted */
.category-filter-list li a.active-category {
    color: var(--pezm-red);
    font-weight: 700;
}