/* ============================================================
   PRODUCT DETAIL PAGE STYLING
   ============================================================ */

.product-detail-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.product-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ============================================================
   LEFT COLUMN - IMAGES
   ============================================================ */

.product-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-images-section {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.image-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.thumbnail-btn {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid var(--border-color2, #3a8a3493);
    border-radius: 0.5rem;
    background: var(--background-color4, #f0efef);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbnail-btn:hover {
    border-color: var(--primary-color, #1d6316);
    transform: scale(1.05);
}

.thumbnail-btn.active {
    border-color: var(--primary-color, #1d6316);
    border-width: 3px;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-image-container {
    flex: 1;
    position: relative;
    background: var(--background-color4, #f0efef);
    border: 2px solid var(--border-color2, #3a8a3493);
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color, #2b6924);
    font-size: 1.386rem;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
}

/* ============================================================
   LEFT COLUMN - DETAILS SECTION
   ============================================================ */

.product-details-left-section {
    background: var(--background-color4, #f0efef);
    border: 2px solid var(--border-color2, #3a8a3493);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.product-details-left-section h2 {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.89rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid var(--border-color2, #3a8a3493);
    padding-bottom: 0.75rem;
}

.product-details-left-section h3 {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.575rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 1.5rem 0 1rem 0;
}

.product-details-left-section h3:first-of-type {
    margin-top: 0;
}

.description-content {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.26rem;
    color: var(--text-color, #2b6924);
    line-height: 1.6;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item h4 {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.386rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0 0 0.5rem 0;
}

.detail-content {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
    line-height: 1.6;
}

.specs-table-full {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.specs-table-full tr {
    border-bottom: 1px solid var(--border-color2, #3a8a3493);
}

.specs-table-full tr:last-child {
    border-bottom: none;
}

.specs-table-full td {
    padding: 0.75rem 0.5rem;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
}

.spec-name {
    color: var(--text-color2, #165510);
    font-weight: 600;
    width: 40%;
}

.spec-value {
    color: var(--text-color, #2b6924);
}

/* ============================================================
   RIGHT COLUMN - PRODUCT INFO PANEL
   ============================================================ */

.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-name {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 2.52rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0;
    line-height: 1.2;
}

.product-identifiers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-color4, #f0efef);
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.5rem;
}

.identifier-item {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
}

.identifier-item strong {
    color: var(--text-color2, #165510);
    margin-right: 0.5rem;
}

.identifier-item a {
    color: var(--primary-color, #1d6316);
    text-decoration: none;
}

.identifier-item a:hover {
    text-decoration: underline;
}

.basic-specs {
    padding: 1rem;
    background: var(--background-color4, #f0efef);
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.5rem;
}

.basic-specs h3 {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.575rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0 0 0.75rem 0;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color2, #3a8a3493);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li strong {
    color: var(--text-color2, #165510);
    margin-right: 0.5rem;
}

.product-price-section {
    padding: 1.5rem;
    background: var(--background-color4, #f0efef);
    border: 2px solid var(--border-color2, #3a8a3493);
    border-radius: 0.75rem;
}

.base-price,
.options-price,
.total-price,
.quote-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
}

.total-price {
    border-top: 2px solid var(--border-color2, #3a8a3493);
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1.575rem;
    font-weight: bold;
}

.price-label {
    color: var(--text-color2, #165510);
    font-weight: 600;
}

.price-value {
    color: var(--primary-color, #1d6316);
    font-weight: bold;
    font-size: 1.386rem;
}

.total-price .price-value {
    font-size: 1.89rem;
}

.quote-price .price-label {
    font-size: 1.386rem;
    color: var(--primary-color, #1d6316);
}

.hidden {
    display: none;
}

/* ============================================================
   CUSTOM OPTIONS
   ============================================================ */

.custom-options-section {
    padding: 1rem;
    background: var(--background-color4, #f0efef);
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.5rem;
}

.custom-options-title {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.575rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0 0 1rem 0;
}

.product-option {
    margin-bottom: 1.25rem;
}

.product-option label {
    display: block;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    font-weight: 600;
    color: var(--text-color2, #165510);
    margin-bottom: 0.5rem;
}

.product-option .required {
    color: var(--error-color, #b85c5c);
}

.product-option-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.35rem;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
    background: white;
    box-sizing: border-box;
}

.radio-options,
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
    cursor: pointer;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    cursor: pointer;
}

/* ============================================================
   ORDER SECTION
   ============================================================ */

.order-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-color4, #f0efef);
    border: 2px solid var(--border-color2, #3a8a3493);
    border-radius: 0.75rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input-group label {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    font-weight: 600;
    color: var(--text-color2, #165510);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn-decrease,
.quantity-btn-increase {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.35rem;
    background: white;
    color: var(--primary-color, #1d6316);
    font-size: 1.575rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quantity-btn-decrease:hover,
.quantity-btn-increase:hover {
    background: var(--primary-color, #1d6316);
    color: white;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.35rem;
    text-align: center;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.26rem;
    color: var(--text-color, #2b6924);
}

.add-to-order-group {
    width: 100%;
}

.btn-add-to-order {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color, #1d6316);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.575rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow-color, rgba(0, 0, 0, 0.6));
}

.btn-add-to-order:hover {
    background: var(--highlight-color, #2e8a25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color, rgba(0, 0, 0, 0.8));
}

.btn-add-to-order:active {
    transform: translateY(0);
}

/* ============================================================
   COLLAPSIBLE SECTIONS
   ============================================================ */

.collapsible-sections {
    margin-top: 1rem;
}

.collapsible-section {
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.collapsible-header {
    width: 100%;
    padding: 1rem;
    background: var(--background-color4, #f0efef);
    border: none;
    text-align: left;
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.386rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background: var(--background-color3, #e4e3e3);
}

.collapsible-icon {
    transition: transform 0.3s ease;
}

.collapsible-header[aria-expanded="true"] .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 1rem;
    background: white;
    display: none;
}

.collapsible-content.active {
    display: block;
}

.resource-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color2, #3a8a3493);
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.resource-title {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
    flex: 1;
}

.resource-title strong {
    color: var(--text-color2, #165510);
}

.btn-resource-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color, #1d6316);
    color: white;
    border: none;
    border-radius: 0.35rem;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.134rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-resource-download:hover {
    background: var(--highlight-color, #2e8a25);
}

/* ============================================================
   RELATED RESOURCES SECTION
   ============================================================ */

.related-resources-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color2, #3a8a3493);
}

.related-resources-title {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 1.638rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0 0 1rem 0;
}

/* ============================================================
   DOCUMENT ACCORDION
   ============================================================ */

.document-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-accordion-item {
    border: 1px solid var(--border-color2, #3a8a3493);
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s ease;
}

.document-accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-header {
    width: 100%;
    padding: 1rem;
    background: var(--background-color4, #f0efef);
    border: none;
    text-align: left;
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.197rem;
    color: var(--text-color, #2b6924);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.document-header:hover {
    background: var(--background-color3, #e4e3e3);
}

.document-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-title strong {
    color: var(--text-color2, #165510);
}

.document-filename {
    color: var(--text-color, #2b6924);
}

.document-icon {
    font-size: 1.008rem;
    color: var(--primary-color, #1d6316);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.document-header[aria-expanded="true"] .document-icon {
    transform: rotate(180deg);
}

.document-content {
    display: none;
    padding: 0;
    background: white;
}

.document-content.active {
    display: block;
}

.document-viewer-container {
    width: 100%;
    padding: 1rem;
    background: var(--background-color4, #f0efef);
    border-top: 1px solid var(--border-color2, #3a8a3493);
    border-bottom: 1px solid var(--border-color2, #3a8a3493);
}

.document-viewer-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 0.25rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.document-actions {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    background: white;
}

@media (max-width: 768px) {
    .document-viewer-iframe {
        height: 400px;
    }
}

/* ============================================================
   RELATED PRODUCTS
   ============================================================ */

.related-products-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color2, #3a8a3493);
}

.related-products-section h2 {
    font-family: var(--main-font-family2, 'Science Gothic', 'Roboto', sans-serif);
    font-size: 2.52rem;
    font-weight: bold;
    color: var(--primary-color, #1d6316);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-product-card {
    background: var(--background-color4, #f0efef);
    border: 2px solid var(--border-color2, #3a8a3493);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow-color, rgba(0, 0, 0, 0.8));
}

.related-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-product-card h4 {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.386rem;
    font-weight: 600;
    color: var(--primary-color, #1d6316);
    margin: 0.75rem 1rem 0.5rem;
    text-align: center;
}

.related-product-card h4 a {
    color: inherit;
    text-decoration: none;
}

.related-product-card h4 a:hover {
    text-decoration: underline;
}

.related-product-card .price,
.related-product-card .call-for-pricing {
    font-family: var(--main-font-family, 'Alumni Sans SC', 'Roboto', sans-serif);
    font-size: 1.386rem;
    font-weight: bold;
    color: var(--text-color2, #165510);
    text-align: center;
    margin: 0 1rem 1rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

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

    .product-images-section {
        order: 1;
    }

    .product-info-panel {
        order: 2;
    }

    .product-details-left-section {
        order: 3;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 1.5rem 1rem;
    }

    .product-name {
        font-size: 2.205rem;
    }

    .image-thumbnails {
        gap: 0.5rem;
    }

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

    .main-image-container {
        min-height: 400px;
    }

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

@media (max-width: 480px) {
    .product-detail-container {
        padding: 1rem 0.75rem;
    }

    .product-name {
        font-size: 1.89rem;
    }

    .product-images-section {
        flex-direction: column;
    }

    .image-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }

    .thumbnail-btn {
        flex-shrink: 0;
    }

    .main-image-container {
        min-height: 300px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}
