
/* =========================================
   COMMON PRODUCT DETAIL PAGE
   Taj India Machinery
========================================= */

.product-detail-page {
    --detail-text: #152e48;
    --detail-pink: #ae0065;
    --detail-purple: #5222bd;
    --detail-background: #fff8f4;
    --image-background: #f5e3d7;

    background: var(--detail-background);
    color: var(--detail-text);
    width: 100%;
    overflow: clip;
    padding: 170px 70px 70px 70px;
}

.product-detail-page,
.product-detail-page * {
    box-sizing: border-box;
}

.product-detail-container {
    width: calc(100% - 70px);
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   TWO-COLUMN LAYOUT
========================================= */

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    gap: 100px;
    align-items: start;
}

/* =========================================
   LEFT COLUMN CONTENT
========================================= */

.product-detail-content {
    min-width: 0;
}

.product-detail-category {
    margin: 0 0 10px;
    font-family: "Oxanium", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.12;
    text-transform: uppercase;

    background: linear-gradient(
        100deg,
        #c0004d 0%,
        #a00079 48%,
        #5422c5 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.product-detail-title {
    margin: 0 0 10px;
    color: #172f49;

    font-family: "Oxanium", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.product-detail-capacity {
    margin: 0 0 20px;
    color: var(--detail-pink);

    font-family: "Oxanium", sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.product-detail-description {
    margin-bottom: 20px;

    font-family: "Oxanium", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.product-detail-description p {
    margin: 0 0 15px;
}

.product-detail-equipment-title {
    margin: 20px 0 6px;

    color: var(--detail-text);
    font-family: "Oxanium", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.product-detail-equipment {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;

    font-family: "Oxanium", sans-serif;
    font-size: 18px;
    line-height: 1.85;
}

.product-detail-equipment li {
    position: relative;
    padding-left: 0;
    margin-bottom: 2px;
}

.product-detail-equipment li::before {
    content: "* ";
}

/* =========================================
   SPECIFICATIONS TABLE
========================================= */

.product-specifications {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
    table-layout: fixed;

    font-family: "Oxanium", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.product-specifications th,
.product-specifications td {
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.product-specifications th {
    width: 31%;
    color: #37546c;
    font-weight: 600;
}

.product-specifications td {
    color: #3c5870;
    font-weight: 400;
}

/* =========================================
   RIGHT COLUMN MACHINE IMAGE
========================================= */

.product-detail-visual {
    min-width: 0;
    position: sticky;
    top: 100px;
}

.product-detail-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 550px;
    aspect-ratio: 1 / 1.05;

    background: var(--image-background);
}

.product-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 700px;

    object-fit: contain;
    object-position: center;

    filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.18));
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1100px) {
    /* Clear the fixed 110px header */
    .product-detail-page {
        padding-top: 140px;
    }

    .product-detail-container {
        width: calc(100% - 40px);
    }

    .product-detail-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 35px;
    }

    .product-detail-image-box {
        min-height: 380px;
    }

    .product-detail-equipment {
        font-size: 16px;
    }

    .product-specifications {
        font-size: 14px;
    }

    .product-specifications th,
    .product-specifications td {
        padding: 11px 12px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {
    .product-detail-page {
        padding: 125px 0 55px;
    }

    .product-detail-container {
        width: calc(100% - 32px);
    }

    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .product-detail-category {
        margin-bottom: 22px;
        font-size: clamp(30px, 8vw, 43px);
    }

    .product-detail-title {
        font-size: clamp(23px, 5.8vw, 30px);
    }

    .product-detail-capacity {
        font-size: 21px;
    }

    .product-detail-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .product-detail-equipment-title {
        font-size: 19px;
    }

    .product-detail-equipment {
        font-size: 16px;
        line-height: 1.8;
    }

    .product-detail-visual {
        position: static;
        grid-row: 1;
    }

    .product-detail-image-box {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 0.85;
    }

    .product-detail-image {
        max-height: 450px;
    }

    .product-detail-specifications-section {
        overflow-x: auto;
    }

    .product-specifications {
        font-size: 13px;
    }

    .product-specifications th {
        width: 38%;
    }

    .product-specifications th,
    .product-specifications td {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-detail-page *,
    .product-detail-page *::before,
    .product-detail-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Move machine image slightly to the left */
.product-detail-image {
    position: relative;
    left: -75px;
}

/* Keep image centered on mobile */
@media (max-width: 760px) {
    .product-detail-image {
        left: 0;
    }
}




/* =====================================
   PRODUCT COMPARISON TABLE
===================================== */

.product-comparison-table-wrap {
    width: 100%;
    margin: 25px 0;
    overflow-x: auto;
}

.product-comparison-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    table-layout: fixed;

    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #294966;
    text-align: center;
}

.product-comparison-table th {
    background: #203f63;
    color: #ffffff;

    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;

    padding: 15px 10px;
    border: 1px solid #e2e5e8;
}

.product-comparison-table td {
    background: #fff8f4;
    color: #38556f;

    font-size: 17px;
    font-weight: 400;

    padding: 10px 10px;
    border: 1px solid #e2e5e8;
    height: 50px;
}

/* Column widths */

.product-comparison-table th:nth-child(1),
.product-comparison-table td:nth-child(1) {
    width: 20%;
}

.product-comparison-table th:nth-child(2),
.product-comparison-table td:nth-child(2) {
    width: 21.5%;
}

.product-comparison-table th:nth-child(3),
.product-comparison-table td:nth-child(3) {
    width: 16.5%;
}

.product-comparison-table th:nth-child(4),
.product-comparison-table td:nth-child(4) {
    width: 19.5%;
}

.product-comparison-table th:nth-child(5),
.product-comparison-table td:nth-child(5) {
    width: 22.5%;
}

/* Mobile responsive */

@media (max-width: 600px) {
    .product-comparison-table th {
        font-size: 15px;
        padding: 14px 8px;
    }

    .product-comparison-table td {
        font-size: 15px;
        padding: 13px 8px;
        height: 52px;
    }
}

/* Phones: the header image is shorter below 690px */
@media (max-width: 689.98px) {
    .product-detail-page {
        padding-top: 95px;
    }
}
