/* ==========================================================================
   Hanuman Hi-Tech Machinery — Single Machine Detail Page Styles
   Colors preserved: Navy #142b45, Orange #e85d04, White #ffffff
   Path: public_html/wp-content/themes/hanuman-machinery/assets/css/single-machine.css
   ========================================================================== */

.hm-mdp-wrap {
    --mdp-navy: #142b45;
    --mdp-navy-dark: #0e1f33;
    --mdp-orange: #e85d04;
    --mdp-orange-dark: #c94e03;
    --mdp-bg-soft: #f5f7fa;
    --mdp-border: #dce3ec;
    --mdp-text: #1e293b;
    --mdp-muted: #475569;
    background: #ffffff;
    color: var(--mdp-text);
}

.hm-mdp-wrap *,
.hm-mdp-wrap *::before,
.hm-mdp-wrap *::after {
    box-sizing: border-box;
}

/* Breadcrumb */
.hm-mdp-breadcrumb {
    background: var(--mdp-bg-soft);
    border-bottom: 1px solid var(--mdp-border);
    padding: 12px 0;
    font-size: 13.5px;
    color: var(--mdp-muted);
}
.hm-mdp-breadcrumb a {
    color: var(--mdp-navy);
    font-weight: 600;
    text-decoration: none;
}
.hm-mdp-breadcrumb a:hover {
    color: var(--mdp-orange);
}
.hm-mdp-sep {
    margin: 0 8px;
    color: #94a3b8;
}

/* Hero Split */
.hm-mdp-hero {
    padding: 36px 0 44px;
    background: #ffffff;
}
.hm-mdp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 36px;
    align-items: start;
}

/* Gallery */
.hm-mdp-stage {
    position: relative;
    border: 1px solid var(--mdp-border);
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 43, 69, 0.06);
}
.hm-mdp-stage img {
    width: 100%;
    height: 410px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
    border-radius: 8px;
}
.hm-mdp-zoom-btn {
    position: absolute;
    right: 22px;
    bottom: 22px;
    background: rgba(20, 43, 69, 0.88);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hm-mdp-zoom-btn:hover {
    background: var(--mdp-orange);
}
.hm-mdp-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.hm-mdp-thumb {
    width: 80px;
    height: 64px;
    padding: 3px;
    border: 2px solid var(--mdp-border);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.hm-mdp-thumb.is-active,
.hm-mdp-thumb:hover {
    border-color: var(--mdp-orange);
}
.hm-mdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.hm-mdp-gallery-empty {
    border: 2px dashed var(--mdp-border);
    border-radius: 12px;
    padding: 48px 20px;
    text-align: center;
    color: var(--mdp-muted);
    background: var(--mdp-bg-soft);
}
.hm-mdp-gallery-empty i {
    font-size: 36px;
    color: var(--mdp-orange);
    margin-bottom: 10px;
}

/* Summary Column */
.hm-mdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.hm-mdp-cat-badge {
    background: #eef2f7;
    color: var(--mdp-navy);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}
.hm-mdp-model-badge {
    background: #fff3eb;
    color: var(--mdp-orange);
    border: 1px solid #ffd5bc;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}
.hm-mdp-title {
    font-size: 30px;
    line-height: 1.24;
    font-weight: 800;
    color: var(--mdp-navy);
    margin: 0 0 14px;
}
.hm-mdp-price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--mdp-bg-soft);
    border-left: 4px solid var(--mdp-orange);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}
.hm-mdp-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--mdp-navy);
}
.hm-mdp-price-note {
    font-size: 13px;
    color: var(--mdp-muted);
    font-weight: 600;
}
.hm-mdp-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--mdp-muted);
    margin: 0 0 18px;
}
.hm-mdp-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.hm-mdp-qspec {
    border: 1px solid var(--mdp-border);
    border-radius: 8px;
    padding: 10px 14px;
    background: #ffffff;
}
.hm-mdp-qspec span {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--mdp-muted);
    font-weight: 600;
}
.hm-mdp-qspec strong {
    display: block;
    font-size: 14px;
    color: var(--mdp-navy);
    margin-top: 2px;
}
.hm-mdp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hm-mdp-actions .hm-btn-outline {
    background: #ffffff;
    color: var(--mdp-navy);
    border: 2px solid var(--mdp-navy);
}
.hm-mdp-actions .hm-btn-outline:hover {
    background: var(--mdp-navy);
    color: #ffffff;
}

/* Sticky Sub-Navigation */
.hm-mdp-subnav {
    background: var(--mdp-navy);
    position: sticky;
    top: 0;
    z-index: 25;
}
.hm-mdp-subnav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.hm-mdp-subnav-inner a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}
.hm-mdp-subnav-inner a:hover {
    color: #ffb48a;
}

/* Overview Prose */
.hm-mdp-prose {
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
    max-width: 960px;
}
.hm-mdp-prose p {
    margin-bottom: 14px;
}

/* Specifications Table */
.hm-mdp-table-wrap {
    border: 1px solid var(--mdp-border);
    border-radius: 10px;
    overflow-x: auto;
    background: #ffffff;
}
.hm-mdp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.hm-mdp-table th,
.hm-mdp-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--mdp-border);
}
.hm-mdp-table tr:last-child th,
.hm-mdp-table tr:last-child td {
    border-bottom: none;
}
.hm-mdp-table tr:nth-child(even) {
    background: #f8fafc;
}
.hm-mdp-table th {
    width: 38%;
    color: var(--mdp-navy);
    font-weight: 700;
}

/* Working Process */
.hm-mdp-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.hm-mdp-step-card {
    background: #ffffff;
    border: 1px solid var(--mdp-border);
    border-top: 4px solid var(--mdp-navy);
    border-radius: 10px;
    padding: 20px;
}
.hm-mdp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mdp-orange);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}
.hm-mdp-step-card h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    color: var(--mdp-navy);
}
.hm-mdp-step-card p {
    margin: 0;
    font-size: 14px;
    color: var(--mdp-muted);
    line-height: 1.6;
}

/* Features & Advantages */
.hm-mdp-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.hm-mdp-panel {
    background: #ffffff;
    border: 1px solid var(--mdp-border);
    border-radius: 12px;
    padding: 26px;
}
.hm-mdp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hm-mdp-checklist li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
}
.hm-mdp-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--mdp-navy);
}
.hm-mdp-checklist-orange li::before {
    color: var(--mdp-orange);
}

/* Applications */
.hm-mdp-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.hm-mdp-app-item {
    background: #ffffff;
    border: 1px solid var(--mdp-border);
    border-left: 4px solid var(--mdp-orange);
    border-radius: 8px;
    padding: 15px 16px;
    font-weight: 700;
    color: var(--mdp-navy);
    font-size: 14.5px;
}

/* Enquiry Section */
.hm-mdp-enq-box {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    background: var(--mdp-navy);
    color: #ffffff;
    border-radius: 14px;
    padding: 34px;
}
.hm-mdp-enq-info h2 {
    margin: 0 0 12px;
    font-size: 24px;
}
.hm-mdp-enq-info p {
    color: #cbd5e1;
    font-size: 14.5px;
    margin-bottom: 18px;
}
.hm-mdp-contact-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 10px;
    font-size: 14px;
}
.hm-mdp-contact-item strong {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    color: #ffb48a;
    margin-bottom: 2px;
}
.hm-mdp-contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}
.hm-mdp-form {
    background: #ffffff;
    color: var(--mdp-text);
    border-radius: 10px;
    padding: 24px;
}
.hm-mdp-form-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Lightbox Modal */
.hm-mdp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(14, 31, 51, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.hm-mdp-lightbox[hidden] {
    display: none;
}
.hm-mdp-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
}
.hm-mdp-lb-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: var(--mdp-orange);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
    .hm-mdp-hero-grid,
    .hm-mdp-enq-box {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .hm-mdp-title {
        font-size: 23px;
    }
    .hm-mdp-stage img {
        height: 280px;
    }
    .hm-mdp-quick-specs {
        grid-template-columns: 1fr;
    }
    .hm-mdp-enq-box {
        padding: 20px 16px;
    }
}