/* Machinery Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.machinery-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.categories-filter {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.categories-filter h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.categories-filter ul {
    list-style: none;
}

.categories-filter ul li {
    margin-bottom: 10px;
}

.categories-filter ul li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.categories-filter ul li a:hover,
.categories-filter ul li a.active {
    background: var(--primary-color);
    color: var(--white);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--text-light);
    opacity: 0.5;
}

/* Machinery Details */
.breadcrumb {
    padding: 20px 0;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-color);
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.details-images {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow-lg);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.thumbnail-images img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.details-content h1 {
    color: var(--text-color);
    font-size: 32px;
    margin: 15px 0;
}

.category-badge,
.featured-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.category-badge {
    background: var(--primary-color);
    color: var(--white);
}

.featured-badge {
    background: var(--accent-color);
    color: var(--white);
}

.price-section {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.price-label {
    color: var(--text-light);
    font-size: 16px;
    margin-left: 10px;
}

.price-value {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.machinery-info-table {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

.machinery-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.machinery-info-table tr {
    border-bottom: 1px solid #eee;
}

.machinery-info-table tr:last-child {
    border-bottom: none;
}

.machinery-info-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.machinery-info-table .info-label {
    font-weight: 700;
    color: var(--primary-color);
    width: 150px;
    font-size: 16px;
}

.machinery-info-table .info-value {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
}

.description-section,
.specifications-section {
    margin: 30px 0;
}

.description-section h3,
.specifications-section h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.description-section p {
    color: var(--text-light);
    line-height: 2;
    font-size: 16px;
}

.specs-content {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    color: var(--text-color);
    line-height: 2;
}

.contact-section {
    background: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-contact {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-contact.whatsapp {
    background: #25D366;
}

.btn-contact.whatsapp:hover {
    background: #20BA5A;
}

.related-machinery {
    background: var(--light-color);
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 968px) {
    .machinery-layout {
        display: flex;
        flex-direction: column;
    }

    .categories-filter {
        position: static;
        order: 2;
        margin-top: 30px;
    }

    .machinery-list {
        order: 1;
    }

    .details-layout {
        grid-template-columns: 1fr;
    }

    .details-images {
        position: static;
    }

    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
    }

    .btn-contact {
        width: 100%;
    }
}