/* Product Page Styles */
.product-banner {
    height: 400px; /* Default mobile/small screen height */
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px; /* Space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #333; /* Fallback */
}

/* PC mode banner height adjustment */
@media (min-width: 992px) {
    .product-banner {
        height: 400px;
    }
}

.product-banner-title {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-secondary-menu {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.product-menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.product-menu-item {
    margin: 0 10px;
    flex: 1;
}

.product-menu-link {
    text-decoration: none;
    color: #333;
    font-size: 26px;
    padding: 8px 30px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: color 0.3s;
    width: 100%;
    text-align: center;
}

/* Parallelogram background for active/hover state */
.product-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transform: skewX(-20deg);
    z-index: -1;
    transition: background-color 0.3s;
}

.product-menu-link:hover::before, .product-menu-link.active::before {
    background-color: #0056b3; /* Darker blue */
}

.product-menu-link:hover, .product-menu-link.active {
    color: #fff;
    /* Removed border-radius and background-color from here to use ::before */
}

.product-content-section {
    padding: 30px 0;
    background-color: #fff;
}

.product-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #409EFF;
}

.product-breadcrumb-separator {
    margin: 0 5px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Horizontal Card Style */
.product-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* Removed box-shadow as per user request */
    /* box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1); */
    transition: transform 0.3s;
    /* border: 1px solid #eee; */
    margin-bottom: 20px; /* Add spacing between cards */
    text-decoration: none; /* For anchor tag */
    color: inherit; /* Prevent default link color */
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.15); */
}

.product-card-img-wrapper {
    width: 396px;
    flex-shrink: 0;
    height: 226px;
    border-radius:8px;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 25px;
    padding-top: 0px;
    padding-bottom: 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-title {
    font-size: 24px;
    color: #032D60;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-card-desc {
    font-size: 18px;
    color: #252525;
    line-height: 25px;
    margin-bottom: 15px;
    /* Limit to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-btn-wrapper {
    margin-top: auto;
    padding-bottom: 15px; /* Space between button and line */
    border-bottom: 1px solid #E3E3E3; /* The divider line below the button */
    transition: border-color 0.3s;
    width: 100%; /* Ensure line spans full width of content area */
}

.product-card:hover .product-card-btn-wrapper {
    border-color: #003D8F;
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    color: #4F4F4F;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.product-card:hover .product-card-btn {
    color: #003D8F;
}

.product-card:hover .product-card-btn i {
    transform: translateX(5px);
}

.product-pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover {
    color: #409EFF;
    border-color: #409EFF;
}

.pagination-btn.active {
    background: #409EFF;
    color: #fff;
    border-color: #409EFF;
}

.pagination-btn.disabled {
    color: #c0c4cc;
    background-color: #f4f4f5;
    border-color: #ebeef5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
    }
    
    .product-card-img-wrapper {
        width: 100%;
        height: 200px;
    }
    
    .product-menu-link {
        font-size: 14px;
        padding: 8px 10px; /* Reduced padding */
        white-space: nowrap; /* Prevent text wrapping inside the tab */
    }
    
    .product-menu-item {
        margin: 0 5px;
        flex: 0 0 auto; /* Don't stretch, just fit content */
    }
    
    .product-menu-list {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping to new lines */
        overflow-x: auto;
        justify-content: flex-start; /* Align start for scrolling */
        padding: 10px 15px;
        padding-bottom: 5px; /* Space for scrollbar if any */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Hide scrollbar but allow scrolling */
    .product-menu-list::-webkit-scrollbar {
        display: none; 
    }

    .product-banner {
        height: 250px;
    }

    /* Add padding for breadcrumb and product list on mobile */
    .product-breadcrumb, .product-list {
        padding-left: 15px;
        padding-right: 15px;
    }
    .product-card-body{
        padding: 0px;
        padding-top:10px;
    }
    .product-card-btn{
        display: none;
    }
}

/* Product Detail Page Styles */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.product-detail-title {
    font-size: 32px;
    color: #032D60;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.product-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.product-detail-content img, 
.product-detail-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.product-detail-content p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 0 15px;
    }
    
    .product-detail-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}
