/* Equipment Page Styles */

.equipment-main {
    padding-top: 0;
}

/* Hero Section */
.equipment-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.equipment-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.equipment-hero p {
    font-size: 18px;
    color: #ccc;
}

/* Equipment Catalog */
.equipment-catalog {
    padding: 40px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.equipment-catalog:first-of-type {
    padding-top: 60px;
}

.equipment-category-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f5a623;
}

.equipment-coming-soon {
    color: #999;
    font-size: 15px;
    font-style: italic;
    padding: 20px 0;
}

.equipment-carousel {
    position: relative;
}

.equipment-catalog-grid {
    overflow: hidden;
    cursor: grab !important;
}

.equipment-catalog-grid:active {
    cursor: grabbing !important;
}

.equipment-catalog-grid *,
.equipment-catalog-grid *:hover {
    cursor: inherit !important;
}

.equipment-scroll-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-select: none;
}

.equipment-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5a623;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.equipment-arrow:hover {
    background: #d4920a;
}

.equipment-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.equipment-arrow-left {
    left: -15px;
}

.equipment-arrow-right {
    right: -15px;
}

.equipment-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 240px;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.equipment-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    outline: 3px solid #f5a623;
    outline-offset: 3px;
}

.equipment-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.equipment-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.equipment-card[data-product] {
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.modal-image-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-image {
    flex: 1;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.modal-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.modal-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumb:hover {
    opacity: 0.8;
}

.modal-thumb.active {
    opacity: 1;
    border-color: #f5a623;
}

.modal-contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f5a623;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    margin-bottom: 25px;
    transition: background-color 0.3s ease;
}

.modal-contact-btn:hover {
    background-color: #d4920a;
}

.modal-sku {
    font-size: 14px;
    color: #8b6914;
    margin: 12px 0 16px;
    font-weight: 600;
}

.modal-sections strong {
    display: block;
    margin-top: 14px;
    color: #2c3e50;
}

.modal-sections p {
    margin: 6px 0 0;
    color: #444;
    line-height: 1.6;
}

.modal-sections ul {
    margin: 6px 0 0;
    padding-left: 20px;
    color: #444;
    line-height: 1.6;
}

.modal-sections li {
    margin-bottom: 4px;
}

.modal-description h3,
.modal-specs h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    border-bottom: 2px solid #f5a623;
    padding-bottom: 6px;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.modal-features li {
    padding: 6px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.modal-features li::before {
    content: "●";
    color: #f5a623;
    margin-right: 10px;
}

.modal-specs-table-wrapper {
    overflow-x: auto;
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.modal-specs-table th,
.modal-specs-table td {
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.modal-specs-table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
}

.modal-specs-table tr:nth-child(even) {
    background: #f9f9f9;
}

.modal-specs-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .equipment-hero h1 {
        font-size: 32px;
    }

    .equipment-card {
        padding: 12px;
        width: 42vw;
    }

    .equipment-card img {
        height: 100px;
        margin-bottom: 8px;
    }

    .equipment-card h3 {
        font-size: 13px;
    }

    .equipment-scroll-track {
        gap: 15px;
    }

    .equipment-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .equipment-arrow-left {
        left: -5px;
    }

    .equipment-arrow-right {
        right: -5px;
    }

    .modal-content {
        padding: 18px;
        border-radius: 10px;
    }

    .modal-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .modal-overlay {
        padding: 15px 8px;
    }

    .modal-close {
        font-size: 26px;
        top: 10px;
        right: 14px;
    }

    .modal-image-wrapper {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .modal-thumbnails {
        flex-direction: row;
        justify-content: center;
        order: 1;
    }

    .modal-thumb {
        width: 50px;
        height: 50px;
    }

    .modal-image {
        order: 0;
        max-height: 200px;
    }

    .modal-contact-btn {
        padding: 10px 22px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-sku {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .modal-sections p,
    .modal-sections li {
        font-size: 13px;
    }

    .modal-description h3,
    .modal-specs h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .modal-specs-table th,
    .modal-specs-table td {
        padding: 6px 10px;
        font-size: 12px;
    }
}
