/* ===================================
   MACHINES PAGE - HaneSystem
   Poppins Font | Bootstrap 5.3.3
=================================== */

/* ===================================
   MACHINE PARK INTRO
=================================== */
.mp-intro-section {
    padding: 80px 0 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.mp-intro-text {
    color: #666666;
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}

.mp-intro-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #1a1a2e;
    padding: 40px 48px;
}

.mp-stat {
    text-align: center;
}

.mp-stat-num {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    display: inline;
}

.mp-stat-plus {
    font-size: 28px;
    font-weight: 700;
    color: #c8102e;
}

.mp-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.mp-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
    .mp-intro-section {
        padding: 60px 0 50px;
    }
    .mp-intro-stats {
        margin-top: 40px;
        justify-content: center;
    }
    .mp-intro-text {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .mp-intro-stats {
        flex-direction: column;
        gap: 24px;
        padding: 32px;
    }
    .mp-stat-divider {
        width: 60px;
        height: 1px;
    }
    .mp-stat-num {
        font-size: 40px;
    }
}

/* ===================================
   FILTER BAR
=================================== */
.mp-filter-section {
    padding: 0;
    background: #ffffff;
}

.mp-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mp-filter-bar::-webkit-scrollbar {
    display: none;
}

.mp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #666666;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 22px;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mp-filter-btn i {
    font-size: 15px;
}

.mp-filter-btn:hover {
    border-color: #c8102e;
    color: #c8102e;
    background: rgba(200, 16, 46, 0.04);
}

.mp-filter-btn.active {
    background: #c8102e;
    color: #ffffff;
    border-color: #c8102e;
}

@media (max-width: 767.98px) {
    .mp-filter-bar {
        gap: 8px;
        padding: 16px 0;
    }
    .mp-filter-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* ===================================
   MACHINE CARDS GRID
=================================== */
.mp-grid-section {
    padding: 60px 0 100px;
    background: #ffffff;
}

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

.mp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Machine Card */
.mp-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mp-card.hide {
    display: none;
}

.mp-card:hover {
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

/* Card Image */
.mp-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.mp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mp-card:hover .mp-card-image img {
    transform: scale(1.08);
}

.mp-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mp-card:hover .mp-card-overlay {
    opacity: 1;
}

.mp-card-view-btn {
    width: 56px;
    height: 56px;
    background: #c8102e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.7);
}

.mp-card:hover .mp-card-view-btn {
    transform: scale(1);
}

.mp-card-view-btn:hover {
    background: #ffffff;
    color: #c8102e;
}

.mp-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(200, 16, 46, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

/* Card Body */
.mp-card-body {
    padding: 28px;
}

.mp-card-category {
    display: inline-block;
    color: #c8102e;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.mp-card-title {
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

/* Card Specs */
.mp-card-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mp-spec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-spec i {
    font-size: 14px;
    color: #c8102e;
    width: 18px;
    text-align: center;
}

.mp-spec span {
    color: #666666;
    font-size: 13px;
    font-weight: 400;
}

/* Card Footer */
.mp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-card-brand {
    color: #999999;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mp-card-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mp-card-link:hover {
    color: #c8102e;
}

.mp-card-link:hover i {
    transform: translateX(5px);
}

/* Grid Responsive */
@media (max-width: 991.98px) {
    .mp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .mp-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .mp-grid-section {
        padding: 50px 0 80px;
    }
    .mp-card-image {
        height: 210px;
    }
}

@media (max-width: 767.98px) {
    .mp-grid,
    .mp-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mp-card-image {
        height: 220px;
    }
    .mp-grid-section {
        padding: 40px 0 60px;
    }
}

@media (max-width: 575.98px) {
    .mp-card-body {
        padding: 22px;
    }
    .mp-card-title {
        font-size: 18px;
    }
}

/* ===================================
   MACHINE DETAIL - GALLERY
=================================== */
.md-section {
    padding: 80px 0 60px;
    background: #ffffff;
}

.md-gallery {
    position: sticky;
    top: 100px;
}

.md-main-image {
    position: relative;
    height: 480px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    margin-bottom: 16px;
}

.md-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.md-image-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(26, 26, 46, 0.8);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.md-image-badge i {
    font-size: 14px;
}

.md-thumbnails {
    display: flex;
    gap: 12px;
}

.md-thumb {
    width: 90px;
    height: 70px;
    border: 2px solid #e5e5e5;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: all 0.3s ease;
}

.md-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.md-thumb:hover {
    border-color: #c8102e;
}

.md-thumb.active {
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}

@media (max-width: 991.98px) {
    .md-section {
        padding: 60px 0 40px;
    }
    .md-gallery {
        position: static;
        margin-bottom: 40px;
    }
    .md-main-image {
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    .md-main-image {
        height: 280px;
    }
    .md-thumb {
        width: 70px;
        height: 55px;
    }
    .md-thumbnails {
        gap: 8px;
    }
}

/* ===================================
   MACHINE DETAIL - INFO PANEL
=================================== */
.md-info {
    padding-left: 20px;
}

.md-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.md-category-badge {
    background: rgba(200, 16, 46, 0.1);
    color: #c8102e;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.md-brand-badge {
    background: #1a1a2e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.md-title {
    color: #1a1a2e;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.md-model {
    color: #999999;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.md-description {
    margin-bottom: 28px;
}

.md-description p {
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Quick Specs Grid */
.md-quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.md-qs-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 16px 18px;
    transition: all 0.3s ease;
}

.md-qs-item:hover {
    border-color: rgba(200, 16, 46, 0.2);
    background: rgba(200, 16, 46, 0.02);
}

.md-qs-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #c8102e;
}

.md-qs-info {
    display: flex;
    flex-direction: column;
}

.md-qs-label {
    color: #999999;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.md-qs-value {
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
}

/* Actions */
.md-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .md-info {
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .md-title {
        font-size: 26px;
    }
    .md-quick-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .md-title {
        font-size: 22px;
    }
    .md-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================
   SPECS TABLE
=================================== */
.md-specs-section {
    padding: 0 0 80px;
    background: #ffffff;
}

.md-specs-wrapper {
    border: 1px solid #e5e5e5;
}

.md-specs-header {
    background: #1a1a2e;
    padding: 20px 32px;
}

.md-specs-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.md-specs-title i {
    color: #c8102e;
    font-size: 20px;
}

.md-specs-table-wrap {
    overflow-x: auto;
}

.md-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.md-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

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

.md-specs-table tr:hover {
    background: rgba(200, 16, 46, 0.02);
}

.md-specs-table td {
    padding: 16px 32px;
    font-size: 14px;
    vertical-align: middle;
}

.spec-label {
    color: #999999;
    font-weight: 500;
    width: 40%;
    white-space: nowrap;
}

.spec-value {
    color: #1a1a2e;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .md-specs-section {
        padding: 0 0 60px;
    }
    .md-specs-header {
        padding: 16px 20px;
    }
    .md-specs-table td {
        padding: 14px 20px;
        font-size: 13px;
    }
    .spec-label {
        width: 50%;
    }
}

/* ===================================
   CAPABILITIES
=================================== */
.md-capabilities-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.md-section-title {
    color: #1a1a2e;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-section-title i {
    color: #c8102e;
    font-size: 22px;
}

.md-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.md-cap-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.md-cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c8102e;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.md-cap-card:hover {
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.md-cap-card:hover::before {
    transform: scaleX(1);
}

.md-cap-icon {
    width: 60px;
    height: 60px;
    background: rgba(200, 16, 46, 0.08);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.md-cap-icon i {
    font-size: 26px;
    color: #c8102e;
    transition: color 0.3s ease;
}

.md-cap-card:hover .md-cap-icon {
    background: #c8102e;
}

.md-cap-card:hover .md-cap-icon i {
    color: #ffffff;
}

.md-cap-card h4 {
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.md-cap-card p {
    color: #666666;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991.98px) {
    .md-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .md-capabilities-section {
        padding: 60px 0;
    }
    .md-capabilities-grid {
        grid-template-columns: 1fr;
    }
    .md-section-title {
        font-size: 20px;
    }
}

/* ===================================
   RELATED MACHINES
=================================== */
.md-related-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

@media (max-width: 767.98px) {
    .md-related-section {
        padding: 60px 0 80px;
    }
}

/* ===================================
   PRODUCT / AI MODULE CONTENT BODY
=================================== */
.product-content-body {
    padding: 28px 32px;
    color: #374151;
    font-size: 15px;
    line-height: 1.8;
}

.product-content-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}

.product-content-body h3:first-child {
    margin-top: 0;
}

.product-content-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 8px;
}

.product-content-body p {
    margin-bottom: 14px;
    color: #4b5563;
}

.product-content-body ul,
.product-content-body ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.product-content-body ul li,
.product-content-body ol li {
    margin-bottom: 8px;
    color: #4b5563;
    position: relative;
}

.product-content-body ul li::marker {
    color: var(--color-primary, #e63946);
}

.product-content-body strong {
    color: #0f172a;
    font-weight: 600;
}

.product-content-body a {
    color: var(--color-primary, #e63946);
    text-decoration: underline;
}
