/* Product Page Styles - Defu Homepage */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
  background: #ffffff !important;
  padding-top: calc(30px + 1rem) !important;
}

/* Product Hero Section */
.product_hero {
    width: 100%;
    background-image: url('../images/组 232.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.product_hero_container {
    max-width: 1600px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.product_hero_text {
    flex: 1;
    max-width: 600px;
}

.product_hero_title {
    font-family: DM_Sans_bold;
    font-weight: 700;
    font-size: 48px;
    color: #06ADA9;
    line-height: 78px;
    margin-bottom: 30px;
    text-align: left;
}

.product_hero_desc {
    font-family: DM_Sans_light;
    font-weight: 300;
    font-size: 16px;
    color: #666666;
    line-height: 28px;
    text-align: left;
}

.product_hero_img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product_hero_img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Product Center Section */
.product_center {
    width: 100%;
    padding: 80px 0;
    background-color: #ffffff;
}

.product_center_container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

.product_center_header {
    text-align: center;
    margin-bottom: 50px;
}

.product_center_subtitle {
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 24px;
    color: #06ADA9;
    line-height: 34px;
    margin-bottom: 30px;
}

.product_filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product_filter {
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 16px;
    color: #666666;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 22px;
}

.product_filter:hover {
    border-color: #06ADA9;
    color: #06ADA9;
}

.product_filter.active {
    background: #06ADA9;
    border-color: #06ADA9;
    color: #ffffff;
}

/* Product Grid */
.product_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product_card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product_card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product_card a:hover {
    text-decoration: none;
}

.product_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product_card_img {
    width: 100%;
    height: 375px;
    overflow: hidden;
    background: #ffffff;
}

.product_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product_card:hover .product_card_img img {
    transform: scale(1.05);
}

.product_card_title {
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 16px;
    color: #333333;
    line-height: 24px;
    padding: 20px;
    text-align: left;
}

.product_card_title:hover {
    color: #06ADA9;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .product_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .product_hero_container {
        flex-direction: column;
        gap: 40px;
    }

    .product_hero_text {
        max-width: 100%;
    }

    .product_hero_title {
        font-size: 36px;
        line-height: 56px;
    }

    .product_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .product_hero {
        padding: 60px 0;
    }

    .product_hero_title {
        font-size: 28px;
        line-height: 42px;
    }

    .product_hero_desc {
        font-size: 14px;
        line-height: 24px;
    }

    .product_center {
        padding: 60px 0;
    }

    .product_filters {
        flex-direction: column;
        gap: 12px;
    }

    .product_filter {
        width: 100%;
    }

    .product_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product_card_img {
        height: 200px;
    }
}

/* Pagination Styles */
.product_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.pagination_btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination_btn:hover {
    border-color: #06ADA9;
    background: #06ADA9;
}

.pagination_btn:hover img {
    filter: brightness(0) invert(1);
}

.pagination_btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.pagination_numbers {
    display: flex;
    gap: 8px;
    margin: 0 8px;
}

.pagination_number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 16px;
    color: #666666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination_number:hover {
    color: #06ADA9;
}

.pagination_number.active {
    background: #06ADA9;
    color: #FFFFFF;
}

/* Responsive pagination */
@media screen and (max-width: 768px) {
    .product_pagination {
        gap: 8px;
    }

    .pagination_btn {
        width: 36px;
        height: 36px;
    }

    .pagination_number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .product_hero {
        padding: 40px 0;
    }

    .product_hero_container {
        width: 94%;
        gap: 20px;
    }

    .product_hero_title {
        font-size: 22px;
        line-height: 32px;
        margin-bottom: 20px;
    }

    .product_hero_desc {
        font-size: 13px;
        line-height: 22px;
    }

    .product_center {
        padding: 40px 0;
    }

    .product_center_container {
        width: 94%;
    }

    .product_center_subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .product_filter {
        padding: 8px 20px;
        font-size: 14px;
    }

    .product_grid {
        gap: 15px;
    }

    .product_card_img {
        height: 180px;
    }

    .product_card_title {
        font-size: 14px;
        padding: 15px;
    }

    .product_pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .pagination_btn {
        width: 32px;
        height: 32px;
    }

    .pagination_btn img {
        width: 14px;
        height: 14px;
    }

    .pagination_number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
