/* =========================================================
   J.R. MACHINERY INDIA
   Product Page Stylesheet
   ========================================================= */

/* ---------- PRODUCT HERO ---------- */

.product-breadcrumb {
    display: block;
    padding: 14px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

.product-breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.product-breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.product-breadcrumb a:hover {
    color: var(--yellow-dark);
}

.product-breadcrumb strong {
    color: var(--text-primary);
    font-weight: 700;
}

.product-hero {
    padding: 72px 0 82px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}

.product-hero-image {
    min-height: 480px;
    background: linear-gradient(
        135deg,
        #dddddd,
        #888888
    );

    display: grid;
    place-items: center;
    position: relative;
}

.product-hero-image span {
    color: rgba(0, 0, 0, 0.4);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.product-category {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--yellow-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-summary h1,
.product-hero-content h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.product-summary p,
.product-hero-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.product-hero-actions,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 6px;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 20px 0 28px;
}

.product-highlights div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 98px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--yellow);
}

.product-highlights strong {
    font-size: 22px;
    color: var(--yellow-dark);
}

.product-highlights span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.product-gallery {
    margin-top: 0;
}

.product-main-image {
    min-height: 480px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

.product-main-image .product-image-placeholder {
    display: flex;
    min-height: 480px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    background:
        linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
        radial-gradient(ellipse at 78% 20%, rgba(245, 196, 0, 0.16), transparent 38%),
        var(--card-bg);
    background-size: 32px 32px, 32px 32px, auto, auto;
}

.product-main-image .product-image-placeholder span {
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 2px;
}

.product-main-image .product-image-placeholder small {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}


/* ---------- PRODUCT DETAILS ---------- */

.product-details,
.product-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: start;
}

.product-description h2,
.product-specifications h2,
.product-applications h2,
.product-inquiry h2 {
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1.2;
}

.product-description p,
.product-content-grid p {
    margin-bottom: 18px;
    color: var(--text-muted);
    line-height: 1.85;
}

.product-info-box {
    position: sticky;
    top: 110px;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--yellow);
}

.info-box-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 800;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span {
    color: var(--text-muted);
}

.info-row strong {
    color: var(--text-primary);
    text-align: right;
}


/* ---------- SPECIFICATIONS TABLE ---------- */

.spec-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.spec-table th,
.spec-table td {
    padding: 15px 17px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.spec-table th {
    width: 42%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 800;
}

.spec-table td {
    color: var(--text-secondary);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: 0;
}


/* ---------- PRODUCT IMAGE GALLERY ---------- */

.product-gallery {
    display: grid;
    margin-top: 25px;
}

.product-main-image {
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-main-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.gallery-image {
    min-height: 130px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}


/* ---------- APPLICATIONS ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    min-height: 190px;
    padding: 30px 26px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--yellow);
}

.feature-card::before {
    display: block;
    width: 32px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--yellow);
    content: "";
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
    margin: -6px 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--yellow-dark);
    transition: background var(--transition), border-color var(--transition),
                color var(--transition);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card:hover .feature-icon {
    border-color: var(--yellow);
    background: rgba(255, 200, 0, 0.14);
}

.feature-number {
    margin-bottom: 16px;
    color: var(--yellow-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.application-card {
    min-height: 118px;
    padding: 26px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.application-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.application-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
}

.application-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.section-dark .application-card {
    background: var(--dark-2);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.section-dark .application-card h3 {
    color: var(--white);
}

.section-dark .application-card span {
    color: var(--yellow);
}

/* ---------- APPLICATION / FEATURE ICONS ---------- */

.application-card .application-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    color: var(--yellow-dark);
    transition: background var(--transition), border-color var(--transition),
                color var(--transition);
}

.application-card .application-icon svg {
    width: 21px;
    height: 21px;
}

.application-card:hover .application-icon {
    border-color: var(--yellow);
    background: rgba(255, 200, 0, 0.14);
}

.section-dark .application-card .application-icon {
    width: auto;
    height: auto;
    margin-bottom: 6px;
    border: 0;
    color: var(--yellow);
}

.section-dark .application-card .application-icon svg {
    width: 26px;
    height: 26px;
}


/* ---------- PRODUCT SIDEBAR ---------- */

.product-sidebar {
    position: sticky;
    top: 110px;
}

.product-inquiry {
    padding: 30px;
    background: var(--bg-secondary);
    border-top: 5px solid var(--yellow);
}

.product-inquiry h2 {
    font-size: 25px;
}

.product-inquiry p {
    margin-bottom: 20px;
    color: var(--grey-500);
    font-size: 14px;
    line-height: 1.7;
}

.product-inquiry .btn {
    width: 100%;
    margin-bottom: 10px;
}

.product-contact-box {
    margin-top: 18px;
    padding: 25px;
    background: var(--black);
    color: var(--white);
}

.product-contact-box h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.product-contact-box p {
    margin: 0;
    color: #aaaaaa;
    font-size: 13px;
}


/* ---------- BROCHURE ---------- */

.brochure-box {
    margin-top: 20px;
    padding: 25px;
    border: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brochure-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.brochure-info span {
    color: var(--grey-500);
    font-size: 12px;
}


/* ---------- RELATED PRODUCTS ---------- */

.related-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-product {
    display: block;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    overflow: hidden;
    transition: all var(--transition);
}

.related-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(217,170,0,0.6);
}

.related-card {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-image {
    min-height: 200px;
    background: var(--bg-tertiary);

    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

.related-image-photo {
    padding: 0;
    overflow: hidden;
}

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

.product-detail-image {
    object-fit: contain !important;
    background: var(--bg-secondary);
}

.related-content {
    padding: 22px;
    border-top: 3px solid var(--yellow);
}

.related-content h3 {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.3;
}

.related-content a {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.related-content a:hover {
    color: var(--yellow-dark);
}


/* ---------- PRODUCT QUOTE FORM ---------- */

.product-quote {
    max-width: 800px;
    margin: 0 auto;
}

.product-quote-form {
    padding: 40px;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
}

.product-quote-form h2 {
    margin-bottom: 10px;
    font-size: 32px;
}

.product-quote-form > p {
    margin-bottom: 28px;
    color: var(--text-muted);
}


/* ---------- RESPONSIVE PRODUCT ---------- */

@media (max-width: 900px) {

    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .product-details,
    .product-content-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .product-sidebar {
        position: static;
    }

    .feature-grid,
    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-products {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .product-hero {
        padding: 40px 0 56px;
    }

    .product-hero-image {
        min-height: 280px;
    }

    .product-main-image,
    .product-main-image .product-image-placeholder {
        min-height: 280px;
    }

    .product-hero-content h1 {
        font-size: 38px;
    }

    .product-summary h1 {
        font-size: 38px;
    }

    .product-hero-content p {
        font-size: 14px;
    }

    .product-summary p {
        font-size: 15px;
    }

    .product-hero-actions {
        flex-direction: column;
    }

    .product-actions {
        width: 100%;
    }

    .product-hero-actions .btn {
        width: 100%;
    }

    .product-actions .btn {
        width: 100%;
    }

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

    .product-highlights div {
        min-height: 0;
    }

    .product-info-box {
        position: static;
        padding: 24px 20px;
    }

    .product-description h2,
    .product-specifications h2,
    .product-applications h2,
    .product-inquiry h2 {
        font-size: 26px;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-image {
        min-height: 100px;
    }

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

    .brochure-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-quote-form {
        padding: 25px 20px;
    }
}
/* ---------- SUBCATEGORY TITLES ---------- */

.subcategory-title {
    margin: 55px 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--yellow);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    text-transform: none;
}

.subcategory-title:first-of-type {
    margin-top: 0;
}