/* MTO Product Gallery — Responsive Grid */
.mto-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Filter Bar */
.mto-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.mto-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 140px;
}

.mto-filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #666;
}

.mto-filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.mto-filter-select:focus {
    outline: none;
    border-color: #2b2b2b;
    box-shadow: 0 0 0 2px rgba(43,43,43,0.1);
}

.mto-filter-clear {
    padding: 0.5rem 1rem;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Active Filters */
.mto-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mto-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: #2b2b2b;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
}

.mto-active-filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.2rem;
}

/* Product Grid */
.mto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .mto-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
}

/* Product Card */
.mto-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.mto-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.mto-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mto-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.mto-card-info {
    padding: 1rem;
}

.mto-card-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mto-card-size {
    display: block;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    margin-top: 0.3rem;
}

.mto-card-spec {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.15rem;
}

.mto-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.1rem;
}
