.page-header {
    background: linear-gradient(135deg, #d8a81a 0%, #7092be 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

@keyframes slidePattern {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50px);
    }
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

.category-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.category-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(216, 168, 26, 0.15);
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #d8a81a, #7092be);
    border-radius: 2px;
}

.category-description {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* گرید ریسپانسیو محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(112, 146, 190, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(112, 146, 190, 0.1);
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(216, 168, 26, 0.15);
    border-color: rgba(216, 168, 26, 0.3);
}

/* تصاویر مربعی 1:1 */
.product-card-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* نسبت 1:1 برای تصاویر مربعی */
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* تصاویر مربعی را کامل پر می‌کند */
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 0;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* placeholder برای عدم وجود تصویر */
.no-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dee2e6;
    text-align: center;
    z-index: 1;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.no-image-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #d8a81a, #7092be);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(216, 168, 26, 0.3);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.rating {
    color: #d8a81a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.views {
    color: #7092be;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-btn {
    width: 100%;
    background: linear-gradient(45deg, #d8a81a, #7092be);
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
}

.product-btn:hover {
    background: linear-gradient(45deg, #c19616, #5a7aa3);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(216, 168, 26, 0.3);
}

.view-all-section {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    background: transparent;
    color: #7092be;
    border: 2px solid #7092be;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-all-btn:hover {
    background: #7092be;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 146, 190, 0.3);
    text-decoration: none;
}

.view-all-btn .badge {
    background: #d8a81a !important;
    font-size: 0.8rem;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: white;
    border-radius: 20px;
    margin: 2rem 0;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #7092be;
}

.no-products h3 {
    margin-bottom: 1rem;
    color: #495057;
}

.category-divider {
    margin: 4rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(216, 168, 26, 0.3), transparent);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .category-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
        min-height: 2.4rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .category-section {
        padding: 1rem;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
        min-height: 2.2rem;
    }

    .product-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* انیمیشن بارگذاری */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation برای تصاویر */
.product-card-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d8a81a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



        .breadcrumb-nav {
            /*background: white;*/
            /*padding: 1rem 2rem;*/
            /*border-radius: 10px;*/
            /*margin-bottom: 2rem;*/
            /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
        }

        .breadcrumb-nav .breadcrumb {
            margin: 0;
            background: transparent;
            padding: 0;
        }

        .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
            content: '←';
            color: #d8a81a;
            font-weight: bold;
        }

        .breadcrumb-nav .breadcrumb-item a {
            color: #7092be;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .breadcrumb-nav .breadcrumb-item a:hover {
            color: #d8a81a;
        }

        .breadcrumb-nav .breadcrumb-item.active {
            color: #495057;
            font-weight: 600;
        }
