/* ============================================
   MJ Fashion Gallery — Brands Pages
   ============================================ */

/* --- Brands Collection Grid Page --- */
.mj-brands-page {
    max-width: 1200px;
    margin: 0 auto;
}

.mj-brands-header-section {
    text-align: center;
    margin-bottom: 48px;
}

.mj-brands-header-section h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.mj-brands-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.mj-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mj-brand-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mj-brand-card:hover {
    border-color: #e91e63;
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.1);
    transform: translateY(-4px);
}

.mj-brand-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

.mj-brand-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.mj-brand-card:hover .mj-brand-card-img img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.mj-brand-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.mj-brand-card-placeholder span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e91e63;
    letter-spacing: 1px;
}

.mj-brand-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mj-brand-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.mj-brand-card-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin: 0 0 12px;
}

.mj-brand-card-count {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 12px;
}

.mj-brand-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e91e63;
    margin-top: auto;
    transition: letter-spacing 0.2s ease;
}

.mj-brand-card:hover .mj-brand-card-link {
    letter-spacing: 0.5px;
}

/* --- Brand Archive Page --- */
.mj-brand-archive {
    background: #fafafa;
}

.mj-brand-archive-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.mj-brand-archive-logo {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.mj-brand-archive-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
}

.mj-brand-archive-info {
    flex: 1;
}

.mj-brand-archive-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.mj-brand-archive-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
}

.mj-brand-archive-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mj-brand-product-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e91e63;
    background: #fce4ec;
    padding: 4px 14px;
    border-radius: 20px;
}

.mj-brand-back-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mj-brand-back-link:hover {
    color: #e91e63;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .mj-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mj-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .mj-brands-header-section h1 {
        font-size: 1.6rem;
    }
    .mj-brand-card-img {
        height: 140px;
    }
    .mj-brand-archive-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px;
    }
    .mj-brand-archive-logo {
        width: 120px;
        height: 90px;
    }
    .mj-brand-archive-title {
        font-size: 1.4rem;
    }
    .mj-brand-archive-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mj-brands-grid {
        grid-template-columns: 1fr;
    }
    .mj-brand-card-img {
        height: 160px;
    }
}
