/* MTF Stofportal */

.mtf-sp-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.mtf-sp-header { text-align: center; margin-bottom: 40px; }
.mtf-sp-title { font-size: 32px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
.mtf-sp-subtitle { font-size: 16px; color: #666; margin: 0; }

/* Grid */
.mtf-sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card */
.mtf-sp-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.mtf-sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mtf-sp-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}
.mtf-sp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mtf-sp-card:hover .mtf-sp-card-image img {
    transform: scale(1.05);
}
.mtf-sp-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 14px;
}
.mtf-sp-card-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.mtf-sp-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mtf-sp-card-brand { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.mtf-sp-card-serial { font-size: 13px; color: #888; font-weight: 500; }
.mtf-sp-card-material { font-size: 13px; color: #555; }
.mtf-sp-card-series { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.03em; }

/* Back link */
.mtf-sp-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.mtf-sp-back:hover { color: #1a1a1a; }

/* Detail */
.mtf-sp-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.mtf-sp-detail-image {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}
.mtf-sp-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mtf-sp-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mtf-sp-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.mtf-sp-detail-series {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #888;
    margin-top: 4px;
}
.mtf-sp-detail-meta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mtf-sp-meta-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.mtf-sp-meta-label { font-size: 14px; color: #888; }
.mtf-sp-meta-value { font-size: 14px; color: #1a1a1a; font-weight: 500; }

/* Section */
.mtf-sp-section { margin-bottom: 40px; }
.mtf-sp-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Garment Preview */
.mtf-sp-garment-preview {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
}
.mtf-sp-garment-preview img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}
.mtf-sp-garment-info strong { font-size: 16px; display: block; margin-bottom: 8px; }
.mtf-sp-garment-parts { font-size: 13px; color: #666; margin: 0; }

/* Customer Photos */
.mtf-sp-customer-gallery { margin-bottom: 24px; }
.mtf-sp-customer-gallery h3 { font-size: 16px; margin: 0 0 12px; color: #333; }
.mtf-sp-customer-desc { font-size: 14px; color: #666; margin-top: 8px; }

.mtf-sp-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.mtf-sp-photo {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.mtf-sp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mtf-sp-photo:hover img { transform: scale(1.05); }

.mtf-sp-no-photos p { color: #888; font-style: italic; }
.mtf-sp-empty { text-align: center; padding: 60px 20px; color: #888; }
.mtf-sp-error { text-align: center; padding: 40px; color: #dc3232; }

/* Responsive */
@media (max-width: 768px) {
    .mtf-sp-detail-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mtf-sp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mtf-sp-garment-preview {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .mtf-sp-grid { grid-template-columns: 1fr; }
}
