﻿.product-page {
    width: 100%;
}

/* Hero */

.product-hero {
    align-items: flex-start;
}

.product-copy {
    font-size: 0.95rem;
    line-height: 1.55;
}

    .product-copy p {
        margin-bottom: 1rem;
    }

    .product-copy ul {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding-left: 1.35rem;
    }

    .product-copy li {
        margin-bottom: 0.25rem;
    }

    .product-copy audio,
    .product-copy img {
        max-width: 100%;
    }

    .product-copy img {
        height: auto;
    }

.product-disclaimer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #d9d9d9;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

    .product-disclaimer p {
        margin: 0 0 12px;
    }

        .product-disclaimer p:last-child {
            margin-bottom: 0;
        }

.product-audio {
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.product-audio-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-audio-card {
    max-width: 340px;
    margin: 0 auto;
    background-color: #aa1f2e;
    padding: 1.25rem;
    border-radius: 2px;
}

    .product-audio-card h2 {
        margin: 0 0 1rem;
        color: #fff;
        font-size: 1.2rem;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .product-audio-card audio {
        width: 100%;
    }

/* Media */

.product-media {
    text-align: center;
}

    .product-media img {
        max-width: 100%;
        height: auto;
    }

.product-finishes {
    margin-top: 1rem;
}

    .product-finishes .d-flex {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .product-finishes .btn {
        min-width: 140px;
    }

    .product-finishes .btn-secondary,
    .product-parts-finishes .btn-secondary {
        color: #fff;
        background-color: #6c757d;
        border-color: #6c757d;
    }

.product-gallery {
    margin-top: 0.75rem;
}

    .product-gallery .row {
        justify-content: center;
    }

    .product-gallery img {
        width: 100%;
        height: auto;
    }

/* Parts */

.product-parts {
    margin-top: 2rem;
}

.product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 3px solid #ddd;
    padding-bottom: 0.35rem;
    margin-bottom: 0.5rem;
}

    .product-section-header h2 {
        margin: 0;
        font-size: 1.5rem;
        text-transform: uppercase;
    }

.product-fitment-status {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.product-parts-finishes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

    .product-parts-finishes .btn {
        padding: 0.25rem 0.65rem;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .product-parts-finishes .btn-secondary {
        font-weight: 600;
    }

.product-parts-wrapper {
    position: relative;
}

.product-parts-list {
    margin-top: 0.5rem;
}

.partListing {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

    .partListing .btn {
        flex-shrink: 0;
        min-width: 110px;
    }

.partListingText {
    line-height: 1.4;
}

.partListingTextLine2 {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #666;
}

/* Parts Overlay */

.product-parts-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255,255,255,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.product-parts-overlay-message {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

    .product-parts-overlay-message p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        line-height: 1.5;
    }

.product-parts-overlay-dismiss {
    display: inline-block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* No Parts */

.product-no-parts-actions {
    margin-top: 1rem;
    text-align: center;
}

.product-no-parts-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .product-no-parts-buttons .btn {
        width: 190px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 1;
    }

/* Tabs */

.product-tabs {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
}

#productTabs {
    border-bottom: 1px solid #ddd;
}

    #productTabs .nav-link {
        font-weight: 600;
        text-transform: uppercase;
        color: #333;
        border: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1rem;
    }

        #productTabs .nav-link.active {
            color: #d71920;
            border-bottom-color: #d71920;
            background: none;
        }

#productTabsContent {
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
}

    #productTabsContent .tab-pane {
        padding: 1.5rem;
    }

#fitment {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    #fitment table {
        min-width: 700px;
    }

#related .card-img-top,
#related img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.product-content-block {
    margin: 2rem 0;
    text-align: center;
}

.product-content-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-content-block img {
    width: 100%;
    max-width: 552px;
    height: auto;
}

/* Desktop */

@media (min-width: 992px) {
    .product-media {
        position: sticky;
        top: 120px;
        padding-top: 2rem;
    }

        .product-media img {
            max-height: 460px;
            object-fit: contain;
        }
}

/* Mobile */

@media (max-width: 991.98px) {
    .product-hero {
        display: flex;
        flex-direction: column;
    }

    .product-media {
        order: 1;
        margin-bottom: 1.5rem;
    }

    .product-copy {
        order: 2;
        font-size: 1rem;
        line-height: 1.5;
    }

        .product-copy ul {
            padding-left: 1.25rem;
        }

    .product-media img {
        width: 100%;
        max-height: 260px;
        object-fit: contain;
    }

    .product-finishes {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

        .product-finishes .btn {
            min-width: 120px;
            font-size: 0.9rem;
        }

    .product-gallery .col-6 {
        max-width: 46%;
    }

    .product-section-header {
        align-items: flex-end;
    }

        .product-section-header h2 {
            font-size: 1.4rem;
        }

    .partListing {
        gap: 0.75rem;
    }

        .partListing .btn {
            min-width: 110px;
        }

    .product-parts-overlay-message {
        padding: 1.5rem;
    }

    #productTabs .nav-link {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }

    #productTabsContent .tab-pane {
        padding: 1rem;
    }

    .product-tabs {
        margin-bottom: 1.5rem;
    }
}
