/* Product Detail Page Styles */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-language-switcher {
    text-align: right;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.product-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 10px;
}

.product-language-switcher li {
    display: inline-block;
}

.product-language-switcher a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
}

.product-language-switcher a:hover {
    background: #f0f0f0;
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.entry-title {
    font-size: 2.5em;
    color: #222;
    margin-bottom: 15px;
}

.product-basic-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: #555;
}

.product-model,
.product-certification,
.product-warranty {
    padding: 8px 15px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 3px;
}

.product-model strong,
.product-certification strong,
.product-warranty strong {
    color: #333;
    margin-right: 8px;
}

/* Product Gallery Styles */
.product-featured-image {
    margin: 30px auto;
    max-width: 800px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-gallery-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-gallery-image img:hover {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    border-color: #ddd;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Content */
.entry-content {
    margin: 30px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.entry-content p {
    margin-bottom: 1em;
}

/* Product Tabs */
.product-info {
    margin-top: 40px;
}

.product-tabs {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.product-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    transition: all 0.2s ease;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background: #fff;
    color: #333;
}

.tab-button.active {
    background: white;
    color: #007cba;
    font-weight: bold;
    border-bottom: 3px solid #007cba;
}

.product-tabs-content {
    padding: 25px;
    background: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tab-pane p, .tab-pane ul, .tab-pane ol {
    margin-bottom: 15px;
}

.tab-pane table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tab-pane th {
    background: #f8f9fa;
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
    font-weight: bold;
}

.tab-pane td {
    padding: 12px;
    border: 1px solid #ddd;
}

.tab-pane tr:nth-child(even) {
    background: #fafafa;
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.related-articles h3 {
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background: white;
    border-left: 4px solid #007cba;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-articles li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.related-articles a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

.related-articles a:hover {
    color: #007cba;
}

/* Additional Info */
.additional-info {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-left: 4px solid #007cba;
    border-radius: 5px;
}

.additional-info h3 {
    color: #222;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2em;
    }
    
    .product-basic-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-gallery {
        gap: 15px;
    }
    
    .main-gallery-image {
        max-width: 100%;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 12px 10px;
        font-size: 0.9em;
    }
    
    .product-tabs-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 1.7em;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .tab-button {
        min-width: 100px;
        padding: 10px 8px;
        font-size: 0.85em;
    }
}