/* MTF Portfolio Overview */

.mtf-ov {
    max-width: 1212px !important;
    margin: 0 auto !important;
    padding: 40px 0 80px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.mtf-ov-header {
    margin-bottom: 40px;
}

.mtf-ov-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0 0 12px;
    font-family: 'Playfair Display', Georgia, serif;
}

.mtf-ov-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Filter Bar */
.mtf-ov-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.mtf-ov-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid #d1d5db;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.mtf-ov-filter-label i { color: #888; }

.mtf-ov-filter-select {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.mtf-ov-filter-select:hover { border-color: #999; }
.mtf-ov-filter-select:focus { outline: none; border-color: #1a1a1a; }

.mtf-ov-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.mtf-ov-sort select {
    background: transparent;
    border: none;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
}

/* Category Pills */
.mtf-ov-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mtf-ov-categories::-webkit-scrollbar { display: none; }

.mtf-ov-cat-pill {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.mtf-ov-cat-pill:hover { border-color: #999; }

.mtf-ov-cat-pill.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Grid */
.mtf-ov-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.mtf-ov-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s;
}

.mtf-ov-card:hover {
    border-color: #999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.mtf-ov-card.hidden { display: none; }

/* Card Image */
.mtf-ov-card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

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

.mtf-ov-card:hover .mtf-ov-card-image img {
    transform: scale(1.05);
}

.mtf-ov-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #fff 0%, transparent 50%);
}

/* Swatch Circle */
.mtf-ov-card-swatch {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.mtf-ov-card-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */
.mtf-ov-card-content {
    padding: 20px 24px 24px;
}

.mtf-ov-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.mtf-ov-card-header > div {
    min-width: 0;
    overflow: hidden;
}

.mtf-ov-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
    font-family: 'Playfair Display', Georgia, serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mtf-ov-card-subtitle {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.mtf-ov-card-code {
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    font-family: 'SF Mono', 'Consolas', monospace;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tags */
.mtf-ov-card-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    max-height: 28px;
    gap: 6px;
    margin-bottom: 16px;
}

.mtf-ov-card-tag {
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    background: #f3f4f6;
    font-size: 12px;
    color: #555;
}

/* Stats */
.mtf-ov-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 0 0;
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
}

.mtf-ov-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.mtf-ov-card-stat i {
    font-size: 14px;
    color: #999;
}

.mtf-ov-card-stat span {
    font-size: 9px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.03em;
}

.mtf-ov-stat-border {
    border-left: none;
    border-right: none;
}

/* Empty */
.mtf-ov-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .mtf-ov-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .mtf-ov-grid { grid-template-columns: repeat(2, 1fr); }
    .mtf-ov-card-image { height: 260px; }
}

@media (max-width: 600px) {
    .mtf-ov-grid { grid-template-columns: 1fr; }
    .mtf-ov-filters { flex-direction: column; align-items: stretch; }
    .mtf-ov-filter-label { border-right: none; padding-right: 0; padding-bottom: 8px; border-bottom: 1px solid #d1d5db; }
    .mtf-ov-sort { margin-left: 0; }
}
