/* Single Product Page Styles */

/* Hero Section */
.product-custom-hero {
    position: relative;
}

.product-custom-hero img {
    width: 100%;
    height: auto;
    min-height: 400px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.product-hero-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(18, 70, 114, 0.95);
    padding: 50px 80px 50px 50px;
    text-align: right;
    color: #fff;
    max-width: 650px;
    width: 90%;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    z-index: 2;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
}

.product-hero-overlay h1 {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: from-font;
}

.product-hero-overlay p {
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    margin-top: 20px;
}

/* Intro Section */
.product-intro-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.pi-grid-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.pi-grid-left {
    flex: 1 1 45%;
}

.pi-grid-right {
    flex: 1 1 45%;
}

.custom-pi-subtitle {
    color: var(--primary-dark);
    letter-spacing: 2px;
    font-size: 14px;
    margin-left: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.custom-pi-subtitle span {
    display: inline-block;
    width: 45px;
    height: 1px;
    background-color: var(--primary-dark);
    margin-right: 15px;
}

.custom-pi-heading {
    color: #124672;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.custom-pi-description {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.custom-pi-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.custom-pi-buttons .custom-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s;
}

.custom-pi-buttons .custom-btn:hover {
    background-color: var(--primary-dark);
}

/* Gallery */
.product-gallery-container {
    text-align: center;
}

.gallery-main-view {
    position: relative;
    margin-bottom: 20px;
}

.gallery-main-view img {
    max-height: 380px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 2;
    margin-bottom: -85px;
}

.gallery-main-view .trapezoid-base {
    width: 70%;
    max-width: 400px;
    height: 0;
    border-bottom: 70px solid #d1d5d8;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-thumbnails-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-thumbs-track {
    position: relative;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    max-width: 380px;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.gallery-thumbs-track::-webkit-scrollbar {
    display: none;
}

.gallery-thumb-item {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    padding: 12px;
    background: #e6e9ea;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.gallery-thumb-item img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-slider-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    color: #777;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-slider-btn:hover {
    background-color: #f1f1f1;
}

.gallery-illustration-note {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Key Features */
.product-key-features-section {
    padding: 30px 0;
    background-color: #fff !important;
}

.product-key-features-section h3 {
    color: #124672;
    font-weight: 400;
    margin-bottom: 40px;
    font-size: 24px;
}

.product-key-features-section .row {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 25px;
}

.key-feature-item {
    margin-bottom: 50px;
}

.feature-img-box {
    position: relative;
    background-color: #eee;
}

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

.feature-title-box {
    position: relative;
    margin-top: -40px;
    left: 0;
    background: #ffffff !important;
    padding: 25px;
    z-index: 10;
    text-align: left;
    margin-bottom: 0px;
}

.feature-title-box h5 {
    color: var(--primary-color) !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.feature-title-box p {
    color: #444 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Product Description */
.product-description-section {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.product-description-section h3 {
    color: #124672;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 30px;
}

.product-description-content {
    color: #444;
    font-size: 18px;
    line-height: 1.8;
}

/* Range Image */
.product-range-image-section {
    background-color: #f5f5f5;
    padding: 30px 0;
    text-align: center;
}

.product-range-image-section h3 {
    color: #124672;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 30px;
}

.product-range-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Benefits Section */
.product-benefits-section {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.product-benefits-section .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.benefits-image-wrapper img {
    max-height: 450px;
    width: auto;
}

.benefits-content-wrapper {
    padding-left: 30px;
}

.benefits-content-wrapper h3 {
    color: #124672;
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 30px;
}

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

.benefits-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 25px;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    font-weight: 500;
}

.benefits-list li span {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
}

/* Secondary Features */
.product-secondary-features-section {
    background-color: #ececec;
    padding: 60px 0;
}

.product-secondary-features-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.secondary-feature-column {
    flex: 0 1 45%;
    min-width: 300px;
    margin-bottom: 30px;
}

.secondary-feature-column h3 {
    color: #124672;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.secondary-feature-img {
    margin-bottom: 25px;
}

.secondary-feature-img img {
    width: 75%;
    height: auto;
    display: block;
}

.secondary_feature_desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Key Specifications */
.product-specifications-section {
    padding: 30px 0;
    background-color: #f5f5f5;
}

.product-specifications-section h3 {
    color: #124672;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 30px;
}

.specs-table {
    border-top: 1px solid #eee;
}

.spec-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
}

.spec-label {
    flex: 1;
    font-weight: 700;
    color: #555;
    font-size: 15px;
}

.spec-value {
    flex: 1;
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

/* Advanced Specifications */
.adv-specifications-section {
    padding: 30px 0;
    background-color: #f5f5f5;
}

.adv-spec-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.adv-spec-header h3 {
    color: #124672;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
}

.unit-switcher {
    position: relative;
}

.unit-switcher select {
    background: #124672;
    color: #fff;
    border: none;
    padding: 4px 25px 4px 10px;
    border-radius: 2px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    font-size: 13px;
}

.unit-switcher i {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    font-size: 9px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adv-spec-table-frontend {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.adv-spec-table-frontend thead tr {
    background: #f8f9fa;
}

.adv-spec-table-frontend th {
    padding: 15px 10px;
    text-align: center;
    color: #124672;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.adv-spec-table-frontend tbody tr {
    border-bottom: 1px solid #eee;
}

.adv-spec-table-frontend td {
    padding: 15px 10px;
    text-align: center;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.adv-spec-table-frontend td:first-child,
.adv-spec-table-frontend td:nth-child(2) {
    font-weight: 600;
}

.adv-spec-notes {
    margin-top: 30px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.adv-spec-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

/* Responsiveness */

@media (max-width: 991px) {

    .product-key-features-section .row {
        flex-wrap: wrap;
    }

    .product-hero-overlay {
        padding: 40px;
        max-width: 500px;
    }

    .product-hero-overlay h1 {
        font-size: 28px;
    }

    .product-hero-overlay p {
        font-size: 18px;
    }

    .pi-grid-left,
    .pi-grid-right {
        flex: 1 1 100%;
    }

    .pi-grid-left {
        margin-bottom: 40px;
    }

    .benefits-content-wrapper {
        padding-left: 0 !important;
        margin-top: 40px;
    }

    .product-benefits-section {
        padding: 40px 0;
    }
}

@media (max-width: 767px) {
    .product-custom-hero img {
        min-height: 300px;
    }

    .product-hero-overlay {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 40px 0;
        border-radius: 0;
        margin-top: -5px;
        /* Slight overlap to ensure no gap */
    }

    .product-hero-overlay h1 {
        font-size: 26px;
        text-underline-offset: 8px;
    }

    .product-hero-overlay p {
        font-size: 16px;
        margin-top: 15px;
    }

    .product-intro-section {
        padding: 40px 0;
    }

    .custom-pi-heading {
        font-size: 22px;
    }

    .feature-img-box {
        height: 250px;
    }

    .feature-title-box {
        width: 95%;
        padding: 20px;
        margin-top: -60px;
    }

    .product-key-features-section {
        padding: 40px 0;
    }

    .product-secondary-features-section .row {
        flex-direction: column;
        gap: 30px !important;
    }

    .secondary-feature-column {
        flex: 1 1 100%;
        width: 100%;
    }

    .secondary-feature-img img {
        width: 100%;
    }

    .spec-row {
        flex-direction: column;
        gap: 5px;
    }

    .adv-spec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-hero-overlay h1 {
        font-size: 24px;
    }

    .gallery-thumbnails-wrapper {
        gap: 10px;
    }

    .gallery-thumbs-track {
        max-width: 240px;
    }

    .gallery-thumb-item {
        width: 65px;
        height: 65px;
        padding: 10px;
    }
}

/* Additional Styles */
.adv-spec-table-frontend tr:hover {
    background-color: #f9f9f9;
}

.product-enquiry-section {
    position: relative;
    padding: 50px 0;
    background-size: cover;
    background-position: center;
    margin-top: 50px;
}

.product-enquiry-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.product-enquiry-section h2 {
    font-size: 48px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 30px;
}

.enquiry-btn-cta {
    display: inline-block;
    padding: 12px 35px;
    background-color: #0e4672;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-size: 14px;
}

.enquiry-btn-cta:hover {
    background-color: #082d4a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

@media (max-width: 767px) {
    .product-enquiry-section h2 {
        font-size: 32px;
    }
}

/* Product Simple Title */
.product-title-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.product-main-title {
    font-size: 38px;
    font-weight: 800;
    color: #1a3353;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Product Sizes Section */
.product-sizes-section {
    padding: 30px 0;
    background-color: #fff;
    /* border-top: 1px solid #eee; */
}

.product-sizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.size-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.size-img-wrapper {
    flex: 1;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Relative Scaling */
.size-62x32x31 .size-img-wrapper {
    transform: scale(1.1);
}

.size-50x32x31 .size-img-wrapper {
    transform: scale(1.0);
}

.size-43x26x28 .size-img-wrapper {
    transform: scale(0.9);
}

.size-36x26x25 .size-img-wrapper {
    transform: scale(0.82);
}

.size-31x23x25 .size-img-wrapper {
    transform: scale(0.75);
}

.size-28x23x25 .size-img-wrapper {
    transform: scale(0.68);
}

.size-img-wrapper img {
    width: 2500px;
    height: 250px;
    object-fit: contain;
    object-position: bottom;
}

.size-title-wrapper {
    margin-top: auto;
}

.size-title {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 6px 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .product-sizes-grid {
        gap: 40px 20px;
    }
}

@media (max-width: 767px) {
    .product-sizes-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .size-img-wrapper {
        max-width: 180px;
    }

    .size-img-wrapper img {
        width: 150px;
        height: 200px;
    }
}

/* Product Gallery Modal */
.pg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.pg-modal-container {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    padding: 40px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pg-modal-gallery-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 300px;
}

.pg-modal-gallery-grid img {
    max-width: calc(50% - 20px);
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pg-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pg-close-btn:hover {
    background: #ececec;
    color: #333;
}

.size-img-wrapper {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.size-img-wrapper:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .pg-modal-gallery-grid img {
        max-width: 100%;
        max-height: 40vh;
    }
    
    .pg-modal-container {
        padding: 30px 15px;
    }
}