/* 产品列表页独立样式 */

/* Our Projects 区域 - 产品列表页版本 */
.products-page .portfolio-section {
    background-color: #ffffff;
    background-image: none;
}

/* 覆盖 s-overlay.ds 的蓝色背景 */
.products-page .portfolio-section.ds:before {
    background-color: transparent !important;
    opacity: 0 !important;
}

.products-page .special-heading {
    color: #333;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.products-page .divider-50 {
    height: 50px;
}

.products-page .divider-30 {
    height: 30px;
}

.products-page .filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.products-page .filters a {
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: transparent;
    cursor: pointer;
}

.products-page .filters a:hover {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.products-page .filters a.active,
.products-page .filters a.selected {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.products-page .isotope-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.products-page .isotope-wrapper .col-xl-4,
.products-page .isotope-wrapper .col-sm-6 {
    display: flex;
}

.products-page .vertical-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.products-page .vertical-item.item-gallery {
    aspect-ratio: 3 / 4;
}

.products-page .item-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.products-page .item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products-page .vertical-item:hover .item-media img {
    transform: scale(1.05);
}

.products-page .item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.products-page .vertical-item:hover .item-content {
    transform: translateY(0);
}

.products-page .links-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.products-page .links-wrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ff6b35;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.products-page .links-wrap a:hover {
    background-color: #ff8c5a;
}

.products-page .item-content h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.products-page .item-content h6 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.products-page .item-content h6 a:hover {
    color: #ff6b35;
}

.products-page .mt--30 {
    height: 30px;
}

.products-page .btn-maincolor2 {
    background-color: #fff;
    color: #333;
    border: 2px solid #fff;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.products-page .btn-maincolor2:hover {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .products-page .isotope-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-page .isotope-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .products-page .special-heading {
        font-size: 36px;
    }

    .products-page .filters {
        gap: 10px;
    }

    .products-page .filters a {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-page .isotope-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .products-page .special-heading {
        font-size: 24px;
    }

    .products-page .filters {
        gap: 8px;
    }

    .products-page .filters a {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* 分页按钮样式 */
.products-page .pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.products-page .pagination-wrapper .btn {
    padding: 10px 16px;
    border: 2px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

.products-page .pagination-wrapper .btn:hover {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.products-page .pagination-wrapper .btn.active {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}
