/* ==========================================================================
   Artisan Maker Profile Styles
   ========================================================================== */

.bms-maker-profile-container {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: inherit;
    color: #222;
}

/* 1. Header Banner */
.bms-profile-header {
    border-bottom: 0px solid #ebebeb;
    padding-bottom: 48px;
}
.bms-profile-header-grid {
    display: flex;
    gap: 48px;
    align-items: center;
}
.bms-profile-portrait-wrap {
    flex: 0 0 280px;
}
.bms-profile-portrait {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: block;
}
.bms-profile-portrait-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #999;
}
.bms-profile-summary {
    flex: 1;
}
.bms-discipline-pills {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #8c827a;
    display: block;
    margin-bottom: 8px;
}
.bms-discipline-pills a {
    color: inherit;
    text-decoration: none;
}
.bms-profile-title {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 12px 0;
    font-weight: 600;
}
.bms-profile-tagline {
    font-size: 18px;
    color: #555;
    margin: 0 0 16px 0;
}
.bms-profile-meta-bar {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.bms-profile-meta-item .dashicons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 2px;
}
.bms-profile-meta-item a {
    color: inherit;
    text-decoration: underline;
}

/* Badges & Buttons */
.bms-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.bms-profile-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.bms-btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.bms-btn-primary { background: #1a1a1a; color: #fff; }
.bms-btn-primary:hover { background: #333; }
.bms-btn-secondary { background: #f0f0f0; color: #333; }
.bms-btn-secondary:hover { background: #e4e4e4; }
.bms-btn-dark { background: #1a1a1a; color: #fff; }
.bms-btn-craft { background: #264653; color: #fff; }
.bms-btn-craft:hover { background: #1d353f; }

/* 2. Story Section */
.bms-profile-story-section {
    margin-bottom: 0px;
}
.bms-story-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}
.bms-subheading {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    display:none;
}
.bms-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #3a3a3a;
}
.bms-profile-pullquote {
    background: #fdfcf9;
    border-left: 3px solid #bba282;
    padding: 24px;
    border-radius: 0 6px 6px 0;
    margin: 0;
}
.bms-profile-pullquote p {
    font-size: 17px;
    line-height: 1.5;
    font-style: italic;
    color: #444;
    margin: 0 0 12px 0;
}
.bms-profile-pullquote cite {
    font-size: 13px;
    font-weight: 600;
    color: #777;
}

/* 3. Studio Gallery */
.bms-profile-gallery-section {
    margin-bottom: 64px;
}
.bms-studio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.bms-gallery-item {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
    background: #eee;
}
.bms-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. Airbnb "Stay & Craft" Banner */
.bms-experience-banner {
    background: #eef4f6;
    border-left: 4px solid #264653;
    border-radius: 6px;
    padding: 32px;
    margin-bottom: 64px;
}
.bms-experience-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #264653;
    display: block;
    margin-bottom: 6px;
}
.bms-experience-title {
    font-size: 22px;
    margin: 0 0 10px 0;
}
.bms-experience-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #3b525d;
    max-width: 800px;
    margin: 0 0 20px 0;
}

/* 5. Segmented Product Grid */
.bms-catalog-group {
    margin-bottom: 56px;
}
.bms-group-header {
    margin-bottom: 24px;
}
.bms-group-title {
    font-size: 22px;
    margin: 0 0 6px 0;
    font-weight: 600;
}
.bms-group-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.bms-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.bms-card {
    border: 1px solid #ebebeb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.bms-card-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
}
.bms-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bms-card-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 3px;
}
.bms-card-pill-batch { background: #fef3c7; color: #92400e; }
.bms-card-pill-mto { background: #f3e8ff; color: #6b21a8; }
.bms-card-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bms-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.bms-card-title a { color: #1a1a1a; text-decoration: none; }
.bms-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.bms-card-lead-time {
    font-size: 12px;
    color: #777;
}
.bms-card-progress {
    background: #eee;
    border-radius: 3px;
    height: 5px;
    overflow: hidden;
    margin-bottom: 4px;
}
.bms-card-progress-bar {
    background: #0284c7;
    height: 100%;
}
.bms-card-progress-label {
    font-size: 11px;
    color: #666;
}

/* Commission Callout */
.bms-commission-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfbf7;
    border: 1px dashed #d6cbbe;
    border-radius: 6px;
    padding: 24px;
    margin-top: 24px;
}
.bms-callout-body h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
}
.bms-callout-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
.bms-empty-notice {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bms-profile-header-grid { flex-direction: column; text-align: center; }
    .bms-profile-meta-bar, .bms-profile-badges, .bms-profile-cta-row { justify-content: center; }
    .bms-story-layout { grid-template-columns: 1fr; }
    .bms-catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .bms-commission-callout { flex-direction: column; text-align: center; gap: 16px; }
}
@media (max-width: 500px) {
    .bms-catalog-grid { grid-template-columns: 1fr; }
}

/* Post Grid */
.bms-related-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.bms-related-post-card { display: none; /* Hidden by default */ }
.bms-related-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }
.bms-related-post-card h4 { margin: 0 0 8px 0; font-size: 16px; }