/* Shared styles for the seven material product pages. */
.page-title {
    margin: 40px 0;
    color: var(--deep-blue);
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.product-detail-section {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.product-left {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border: 1px solid #eee;
    cursor: crosshair;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: var(--x) var(--y);
    transition: transform 0.1s ease-out;
}

.main-image-container:hover .main-image {
    transform: scale(2);
}

.thumbnails-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.thumbnail-carousel {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.thumbnails-viewport {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.thumbnails-viewport::-webkit-scrollbar {
    display: none;
}

.thumbnail-carousel .thumbnails-row {
    display: grid;
    grid-auto-columns: calc((100% - 30px) / 4);
    grid-auto-flow: column;
    width: 100%;
}

.thumbnail-carousel .thumbnail {
    width: 100%;
}

.thumbnail-scroll-btn {
    min-width: 0;
    padding: 0;
    color: #fff;
    font-size: 14px;
    background: #003366;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.thumbnail-scroll-btn:hover:not(:disabled),
.thumbnail-scroll-btn:focus-visible {
    background: #002244;
}

.thumbnail-scroll-btn:focus-visible {
    outline: 2px solid #4da3ff;
    outline-offset: 2px;
}

.thumbnail-scroll-btn:disabled {
    cursor: default;
    opacity: 0.35;
}

.thumbnail {
    width: calc(25% - 7.5px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #003366;
    opacity: 1;
}

.product-right {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.introduction-text {
    margin-bottom: 20px;
    color: #444;
    font-size: 18px;
    line-height: 1.6;
}

.rfq-container {
    padding-top: 20px;
    text-align: center;
}

.rfq-btn {
    display: inline-block;
    padding: 15px 60px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    background-color: #003366;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.rfq-btn:hover {
    background-color: #002244;
}

.section-header {
    margin-bottom: 30px;
    color: var(--deep-blue);
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

.advantages-box {
    width: 90%;
    margin: 0 auto;
    padding: 30px;
    color: #333;
    font-size: 18px;
    line-height: 1.8;
    background-color: #f9f9f9;
    border-left: 5px solid #003366;
}

.advantages-full-width {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.advantages-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.centered-image-box {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 0 auto;
}

.centered-image-box img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 95%;
    margin: 0 auto 80px;
}

.applications-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.applications-grid img:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
