/* ==========================================
   PRODUCT PAGE STYLES - CLEAN & PROFESSIONAL
   ========================================== */

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2rem 0 2.5rem;
    margin-bottom: 3rem;
}

.product-header .breadcrumbs {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-header .breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.product-header .breadcrumbs a:hover {
    opacity: 0.8;
}

.product-header .separator {
    color: rgba(255, 255, 255, 0.6);
}

.product-header .current {
    color: rgba(255, 255, 255, 0.95);
}

.product-header-content {
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.product-header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-sku {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Product Main */
.product-main {
    padding: 0 0 3rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin: 0 auto 3rem;
    max-width: 1400px;
    padding: 0 1rem;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Product Gallery */
.product-gallery {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-main {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.main-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #adb5bd;
    padding: 3rem;
}

.no-image-placeholder span {
    font-size: 1rem;
    color: #6c757d;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #1e3c72;
    transform: translateY(-2px);
}

/* Product Features */
.product-features {
    margin-top: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.features-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1.25rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-label {
    font-size: 0.8125rem;
    color: #495057;
    line-height: 1.3;
}

/* Specifications Card */
.product-specs {
    position: sticky;
    top: 20px;
    align-self: start;
}

.specs-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.specs-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1e3c72;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6c757d;
    flex: 0 0 50%;
}

.spec-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
    flex: 1;
}

/* Technical Drawing */
.technical-drawing {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.drawing-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem 0;
}

.drawing-wrapper {
    position: relative;
}

.drawing-image {
    width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s, box-shadow 0.3s;
}

.drawing-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.drawing-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

/* Product Variations */
.product-variations {
    margin: 3rem auto 0;
    max-width: 1400px;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.variations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.variations-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
}

.variations-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.875rem;
}

.variations-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.variations-table tbody tr:last-child {
    border-bottom: none;
}

.variations-table tbody tr:hover {
    background-color: #f8f9fa;
}

.variations-table td {
    padding: 1rem 1.25rem;
}

.sku-cell {
    font-weight: 600;
    color: #1e3c72;
    font-family: monospace;
}

.action-column {
    text-align: right;
}

.btn-request-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #1e3c72;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-request-quote:hover {
    background: #163159;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* Product Documents */
.product-documents {
    margin: 3rem auto 0;
    max-width: 1400px;
    padding: 0 1rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.document-card:hover {
    border-color: #1e3c72;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.document-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #1e3c72;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.8125rem;
    color: #6c757d;
}

.document-download {
    flex-shrink: 0;
    color: #1e3c72;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: 1fr 380px;
        gap: 2.5rem;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 992px) {
    .product-header {
        padding: 2rem 0 2.25rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-specs {
        position: static;
    }

    .gallery-main {
        min-height: 350px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .modal-close {
        top: -40px;
        right: 0;
    }
}

@media (max-width: 768px) {
    .product-header {
        padding: 1.75rem 0 2rem;
    }

    .product-header .breadcrumbs {
        font-size: 0.8125rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-sku {
        font-size: 0.875rem;
        padding: 0.3125rem 0.75rem;
    }

    .product-description {
        font-size: 0.9375rem;
    }

    .product-layout {
        gap: 1.5rem;
    }

    .product-gallery {
        padding: 1.5rem;
    }

    .gallery-main {
        min-height: 300px;
    }

    .gallery-thumbnails {
        gap: 0.5rem;
    }

    .thumbnail-image {
        width: 70px;
        height: 70px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 1rem;
    }

    .feature-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
    }

    .specs-card {
        padding: 1.5rem;
    }

    .specs-title {
        font-size: 1.25rem;
    }

    .spec-row {
        padding: 0.75rem 0;
    }

    .spec-label,
    .spec-value {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .variations-table {
        font-size: 0.8125rem;
    }

    .variations-table th,
    .variations-table td {
        padding: 0.75rem 0.625rem;
    }

    .btn-request-quote {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .variations-table th,
    .variations-table td {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }

    .btn-request-quote {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn-request-quote svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .product-header {
        padding: 1.5rem 0;
    }

    .product-header-main {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }

    .product-title {
        font-size: 1.25rem;
        line-height: 1.3;
        text-align: center;
        width: 100%;
    }

    .product-description {
        font-size: 0.875rem;
        text-align: center;
    }

    .featured-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }

    .product-gallery {
        padding: 1.25rem;
    }

    .gallery-main {
        min-height: 250px;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .product-features {
        padding: 1.25rem;
    }

    .features-title {
        font-size: 1.125rem;
    }

    .specs-card {
        padding: 1.25rem;
    }

    .specs-title {
        font-size: 1.125rem;
    }

    .spec-label {
        font-size: 0.8125rem;
    }

    .spec-value {
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .table-responsive {
        border-radius: 8px;
    }

    .document-card {
        padding: 1rem;
    }

    .document-icon {
        width: 40px;
        height: 40px;
    }

    .document-icon svg {
        width: 24px;
        height: 24px;
    }

    .document-name {
        font-size: 0.875rem;
    }

    .modal-close {
        top: -35px;
        right: 0;
        width: 35px;
        height: 35px;
    }

    .modal-overlay {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .product-title {
        font-size: 1.125rem;
    }

    .gallery-main {
        min-height: 220px;
    }

    .thumbnail-image {
        width: 50px;
        height: 50px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.75rem;
    }

    .feature-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }

    .feature-label {
        font-size: 0.75rem;
    }
}

/* Print */
@media print {
    .product-header {
        background: none;
        color: #000;
    }

    .breadcrumbs,
    .featured-badge,
    .btn-request-quote,
    .modal-overlay {
        display: none !important;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-specs {
        break-inside: avoid;
    }

    .variations-table {
        font-size: 0.75rem;
    }
}
