/* Product Gallery */
.product-gallery-wrapper {
    position: relative;
    max-width: 100%;
    margin-bottom: 2em;
}

.product-main-image {
    position: relative;
    margin-bottom: 1em;
    border-radius: 8px;
    overflow: hidden;
}

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

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    flex: 1 1 22%;
    min-width: 80px;
    max-width: 22%;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-thumb img:hover {
    opacity: 0.8;
}

.gallery-thumb.active img {
    border: 2px solid #000;
}

/* Technical Info */
.product-technical-info {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #ddd;
}

.technical-info-heading {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 1em;
}

.product-specs-list {
    margin: 1em 0;
    padding-left: 0;
    list-style-type: none;
}

.product-specs-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.8em;
    line-height: 1.5;
}

.product-specs-list li:before {
    content: "•";
    color: #0073aa;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.product-specs-list strong {
    font-weight: 600;
}

/* Product CTA */
.product-cta {
    margin-top: 2em;
}

.product-cta .wp-block-button {
    margin-bottom: 1em;
}

.product-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
    padding: 1em 2em;
}

/* Breadcrumb */
.product-breadcrumb {
    margin-bottom: 2em;
    padding: 1em 0;
    border-bottom: 1px solid #ddd;
}

/* Related Products */
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5em;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    border-radius: 6px;
    margin-bottom: 1em;
}

.product-card h4 {
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

/* Product Tabs */
.product-tabs-container {
    margin-top: 3em;
    border-top: 1px solid #ddd;
    padding-top: 2em;
}

.product-tabs-nav {
    display: flex;
    gap: 1.5em; /* Space between tab links */
    margin-bottom: 1.5em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1em;
}

.product-tabs-nav .tab-link,
.product-tabs-nav .tab-active {
    cursor: pointer;
    padding: 0.5em 0; /* Adjust padding as needed */
    font-size: 1.1em; /* Adjust font size */
    font-weight: 400;
    color: #555; /* Default color for inactive tabs */
    text-decoration: none;
    border-bottom: 3px solid transparent; /* Placeholder for active indicator */
    transition: color 0.3s ease, border-color 0.3s ease;
}

.product-tabs-nav .tab-link:hover {
    color: #000;
}

.product-tabs-nav .tab-active {
    font-weight: 600;
    color: #000; /* Color for active tab */
    border-bottom-color: #000; /* Active indicator */
}

.product-tab-content {
    padding-top: 1.5em;
}

.product-tab-content h3 {
    font-size: 1.3em;
    margin-bottom: 1em;
}

/* Initially hide inactive tab content (JS also handles this) */
.product-tab-content:not(.active) {
    display: none;
}

/* Edge Profiles Specific Styles */
.edge-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

.edge-profile-item {
    text-align: center;
    border: 1px solid #eee;
    padding: 1em;
    border-radius: 4px;
}

.edge-profile-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.8em;
    border-radius: 4px;
}

.edge-profile-item h4 {
    font-size: 1em;
    margin-bottom: 0.5em;
}

.edge-profile-item p {
    font-size: 0.9em;
    color: #666;
}

/* Product Specs Table */
.product-specs-table {
    width: 100%; /* Make table take full container width */
    border-collapse: collapse;
    margin-top: 1em;
}

.product-specs-table td {
    padding: 0.8em 1em;
    border: 1px solid #eee;
    vertical-align: top;
}

.product-specs-table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.product-specs-table strong {
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .product-gallery-thumbs {
        justify-content: center;
    }
    
    .gallery-thumb {
        flex: 0 1 calc(25% - 10px);
    }
}
