/* ===== Manufacturers Index Page ===== */

/* Title */
.manufacturers-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Logo grid – same as homepage */
.manufacturers-section {
    padding: 24px 0 32px;
}

.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.manufacturer-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.manufacturer-tile:hover {
    border-color: #d4d4d4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.manufacturer-tile img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.manufacturer-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.3;
}

/* SEO section */
.manufacturers-seo-section {
    padding: 0 0 40px;
}

.manufacturers-seo-content {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.manufacturers-seo-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.manufacturers-seo-content p {
    margin-bottom: 12px;
}

/* ===== Manufacturer Show Page ===== */

.manufacturer-show-section {
    padding: 24px 0 40px;
}

.manufacturer-show-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Section headers – reused from homepage */
.manufacturer-show-section .home-categories-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 30px;
    padding: 0 0 15px;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #e5e5e5;
}

.manufacturer-show-section .home-categories-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

/* Furniture types grid – tile layout like manufacturers index */
.manufacturer-furniture-types {
    margin-bottom: 48px;
}

.manufacturer-furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.manufacturer-furniture-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.manufacturer-furniture-tile:hover {
    border-color: #d4d4d4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.manufacturer-furniture-tile img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.manufacturer-furniture-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #333;
    line-height: 1.3;
}

/* Products section */
.manufacturer-products-section {
    margin-bottom: 48px;
}

.manufacturer-products-section .product-accessories {
    margin-bottom: 0;
}

.manufacturer-view-all-link {
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.manufacturer-view-all-link:hover {
    color: #000;
    text-decoration: none;
}

/* Categories section */
.manufacturer-categories-section {
    margin-bottom: 48px;
}

.manufacturer-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.manufacturer-category-tile .product-image {
    border-radius: 8px;
    overflow: hidden;
}

.manufacturer-category-tile img {
    width: 100%;
    height: auto;
}

.manufacturer-category-tile a {
    text-decoration: none;
    color: inherit;
}

.manufacturer-category-tile a:hover {
    text-decoration: none;
    color: inherit;
}

.manufacturer-category-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* SEO section on show page */
.manufacturer-seo-section {
    margin-top: 16px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.manufacturer-seo-section .manufacturers-seo-content h2 {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-top: 28px;
    margin-bottom: 14px;
}

.manufacturer-seo-section .manufacturers-seo-content p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.75;
    color: #555;
}

.manufacturer-seo-section .manufacturers-seo-content ul,
.manufacturer-seo-section .manufacturers-seo-content ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.manufacturer-seo-section .manufacturers-seo-content li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    list-style-type: disc;
}

.manufacturer-seo-section .manufacturers-seo-content strong {
    color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .manufacturers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .manufacturers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .manufacturer-tile {
        padding: 14px 8px 10px;
    }

    .manufacturer-tile img {
        max-height: 60px;
    }

    .manufacturer-name {
        font-size: 12px;
    }

    .manufacturers-title,
    .manufacturer-show-title {
        font-size: 18px;
    }

    .manufacturer-show-section .home-categories-header {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .manufacturer-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .manufacturer-furniture-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 479px) {
    .manufacturers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
