* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

h1,h2,h3,h4,h5,h6{
    font-family: 'poppins', sans-serif;
}

p,a,input,label,textarea,span,ul,li{
    font-family: 'poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 0;
    margin-bottom: 2rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #666;
}

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

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb li:last-child {
    color: #333;
    font-weight: 500;
}

/* Product Section */
.product-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Image Gallery */
.product-images {
    flex: 1;
    min-width: 300px;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    max-width: 400px;
}

.thumbnail-grid {
    display: flex;
    gap: 50px;
}

.thumbnail {
    width: 70px;
    cursor: pointer;
}

/* Product Info */
.product-info {
    flex: 1;
    min-width: 300px;
}

.product-number-sku {
    font-size: 1.5rem;
}

.product-name-sku {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.product-meta {
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    margin-bottom: 10px;
}

.meta-row img {
    width: 8%;
    height: auto;
}

.meta-label {
    width: 120px;
    color: #666;
}

.certificates {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    margin-bottom: 60px
}

.certificates img {
    width: 55%;
    height: auto;
}

.send-inquiry {
    display: block;
    border: none;
    padding: 15px 40px;
    background-color: #233b55;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.send-inquiry:hover {
    background-color: #005587;
}

/* Tabs Section */
.tab-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab {
    overflow: hidden;
    background-color: #f1f1f1;
}
  
/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}
  
/* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ddd;
}
  
/* Create an active/current tablink class */
  .tab button.active {
    background-color: #ccc;
}
  
/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
}

/* All Tabs Contents*/
.feature-des-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    background-color: #fff;
}

.feature-product-images {
    flex: 1;
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
}

.feature-product-images img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.feature-product-details {
    flex: 1;
    padding: 1rem 0;
}

.feature-product-category {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.feature-product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.5;
}

.functions-container {
    background: #f7f7f7;
    overflow: hidden;
    padding: 20px 30px 40px 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.functions-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    width: 100%;
}

.functions-container ul li {
    font-size: 14px;
    font-weight: 600;
    color: #646464;
    border-bottom: 1px solid #ccc;
    padding: 10px 0px;
    width: 50%;
    float: left;
    list-style: none;
}

.download-content {
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: 100%;  
    padding: 20px;
    border: 1px solid #ccc;
}

.video-content {
    margin-top: 40px;
    margin-bottom: 40px; 
}

.responsive-video {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.download-btn {
    display: block;
    border: none;
    padding: 15px 40px;
    background-color: #233b55;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #005587;
}


/* Related Products */
.related-products {
    margin-top: 40px;
    flex-grow: 1;
}

.related-title {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-decoration: none;
    cursor: pointer;
}


/* Product Grid Container */
.product-grid-container {
    flex-grow: 1;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    text-decoration: none;
    cursor: pointer;
}

.product-card-item {
    border: 1px solid #eee;
    padding: 1rem;
    text-align: left;
}

.product-image {
    width: 100%;
    background-color: none;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.product-category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-number {
    font-size: 1.1rem;
    color: #233b55;
}

.product-title {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .product-section {
        flex-direction: column;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .feature-des-container {
        flex-direction: column;
        padding: 1rem;
    }

    .feature-product-images {
        padding: 1rem;
    }
}



/*
tech and spec
.function-grid {
    display: flex;
    gap: 60px;
}
*/


/* Default: 2-column layout */
.function-grid li {
    width: 48%;
    float: left;
    margin-bottom: 8px;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-weight: 600;
}

/* 單一功能時 class: no-border */
.function-grid li.no-border {
    border-bottom: none !important;
}

/* 如果你要兼容手機下 1 欄排法（optional） */
@media (max-width: 600px) {
    .function-grid li {
        width: 100%;
    }
}



.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}
.spec-table td:first-child {
    font-weight: 600;
    color: #333;
}


.slider {
    width: 100%;
}

.main-slider {
    text-align: center;
    margin-bottom: 20px;
}

.main-slider img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 480px;
    object-fit: contain;
    background: #fff;
}

.thumbnail-slider {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.thumbnail-slider img {
    width: 60px;          /* 原本是 80px，縮細 */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}


.thumbnail-slider img:hover {
    border-color: #888;
}

.thumbnail-slider img.active {
    border-color: #005587;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 40px;
    padding: 10px 0;
    max-width: 800px;
}

.function-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 6px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    white-space: nowrap;
}

.function-item i {
    color: #555;
    margin-right: 10px;
}


