/* =============================================
   Equipment Showcase - Main Styles
   ============================================= */

.eqs-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* ---- Sidebar ---- */
.eqs-sidebar {
    flex: 0 0 260px;
    min-width: 260px;
}

.eqs-search-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #999;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.eqs-search-input:focus {
    border-color: #333;
    color: #333;
}

.eqs-search-input::placeholder {
    color: #bbb;
    font-weight: 600;
    letter-spacing: 1px;
}

.eqs-filter-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 28px 0 16px;
    color: #1a1a1a;
}

.eqs-filter-group {
    margin-bottom: 0;
}

.eqs-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    user-select: none;
    transition: color 0.2s;
}

.eqs-filter-header:hover {
    color: #333;
}

.eqs-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.eqs-filter-header.open .eqs-arrow {
    transform: rotate(180deg);
}

.eqs-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.eqs-filter-list.open {
    max-height: 400px;
    overflow-y: auto;
}

.eqs-filter-list li {
    padding: 6px 0;
}

.eqs-filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.eqs-filter-list label:hover {
    color: #1a1a1a;
}

.eqs-filter-list input[type="checkbox"] {
    accent-color: #c0392b;
    width: 15px;
    height: 15px;
}

.eqs-count {
    color: #aaa;
    font-size: 12px;
}

/* Price filter */
.eqs-price-filter {
    margin-top: 24px;
}

.eqs-price-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.eqs-range-slider {
    position: relative;
    height: 6px;
    margin: 20px 0 12px;
}

.eqs-range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    margin: 0;
    top: 0;
}

.eqs-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #c0392b;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 2;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.eqs-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #c0392b;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.eqs-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.eqs-slider-track::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    background: #c0392b;
    border-radius: 3px;
    left: var(--range-left, 0%);
    width: var(--range-width, 100%);
}

.eqs-price-values {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 8px;
}

/* ---- Main Content ---- */
.eqs-main {
    flex: 1;
    min-width: 0;
}

.eqs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.eqs-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}

.eqs-sort-wrap {
    position: relative;
}

.eqs-sort-select {
    padding: 10px 36px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    outline: none;
}

/* ---- Products Grid ---- */
.eqs-grid {
    display: grid;
    gap: 30px;
}

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

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

.eqs-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---- Product Card ---- */
.eqs-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.eqs-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.eqs-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.eqs-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.eqs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.eqs-card:hover .eqs-card-image img {
    transform: scale(1.03);
}

/* Badges */
.eqs-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1.3;
}

.eqs-badge-condition {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a5d1a;
    color: #fff;
    z-index: 1;
}

.eqs-badge-finance {
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 3px;
}

/* Card Body */
.eqs-card-body {
    padding: 20px 4px 24px;
}

.eqs-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.eqs-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.eqs-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.35;
}

.eqs-card-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.eqs-hours-icon {
    flex-shrink: 0;
}

/* Loading */
.eqs-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.eqs-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #c0392b;
    border-radius: 50%;
    animation: eqs-spin 0.7s linear infinite;
}

@keyframes eqs-spin {
    to { transform: rotate(360deg); }
}

.eqs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

/* ---- Responsive ---- */

/* Tablet landscape */
@media (max-width: 1024px) {
    .eqs-wrapper {
        gap: 24px;
    }

    .eqs-sidebar {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .eqs-cols-3,
    .eqs-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .eqs-grid {
        gap: 20px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .eqs-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 16px;
    }

    .eqs-sidebar {
        flex: none;
        min-width: 100%;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    /* Sidebar collapsible on mobile */
    .eqs-sidebar .eqs-filter-title,
    .eqs-sidebar .eqs-filter-group:not(:first-child) {
        /* Keep all filter groups visible but compact */
    }

    .eqs-cols-3,
    .eqs-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .eqs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .eqs-sort-select {
        width: 100%;
    }

    .eqs-card-price {
        font-size: 17px;
    }

    .eqs-card-title {
        font-size: 14px;
    }

    .eqs-grid {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .eqs-wrapper {
        padding: 12px;
    }

    .eqs-cols-3,
    .eqs-cols-2,
    .eqs-cols-4 {
        grid-template-columns: 1fr;
    }

    .eqs-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .eqs-card-body {
        padding: 14px 2px 18px;
    }

    .eqs-card-price {
        font-size: 18px;
    }

    .eqs-card-title {
        font-size: 15px;
    }

    .eqs-price-values {
        font-size: 16px;
    }
}
