/**
 * Manufacturer Pages Styles
 * Стили для страниц производителей
 * 
 * @package MedEquip_Aggregator
 * @version 1.4.1
 */

/* ============================================
   MANUFACTURER LOGO (под page-header)
   ============================================ */

.manufacturer-logo-wrap {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.manufacturer-logo-wrap img {
    max-width: 200px;
    max-height: 120px;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .manufacturer-logo-wrap {
        padding: 32px 0;
    }
}

@media (min-width: 1280px) {
    .manufacturer-logo-wrap {
        padding: 0 0 40px;
        padding-left: 25%;
    }
}

/* ============================================
   MANUFACTURER ITEM (описание + контакты)
   ============================================ */

.manufacturer-item {
    padding-top: 24px;
}

@media (min-width: 768px) {
    .manufacturer-item {
        padding-top: 32px;
    }
}

@media (min-width: 1280px) {
    .manufacturer-item {
        padding-bottom: 20px;
        padding-top: 56px;
    }
}

.manufacturer-item__content {
    align-items: flex-start;
    border-bottom: 1px solid #777;
    margin-bottom: 40px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .manufacturer-item__content {
        display: flex;
        padding-bottom: 56px;
    }
}

@media (min-width: 1280px) {
    .manufacturer-item__content {
        padding-left: 25%;
    }
}

.manufacturer-item__descr {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .manufacturer-item__descr {
        margin-bottom: 0;
        padding-right: 40px;
        flex: 1;
    }
}

@media (min-width: 1280px) {
    .manufacturer-item__descr {
        padding-right: 50px;
    }
}

.manufacturer-item__descr p:not(:last-child) {
    margin-bottom: 24px;
}

.manufacturer-item__contact {
    border-bottom: 1px solid #777;
    border-top: 1px solid #777;
    padding: 24px 0 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .manufacturer-item__contact {
        border: none;
        border-left: 1px solid #777;
        flex: 0 0 35%;
        max-width: 35%;
        padding: 12px 0 0 20px;
        margin-bottom: 0;
    }
}

@media (min-width: 1280px) {
    .manufacturer-item__contact {
        padding-left: 24px;
    }
}

.manufacturer-item__contact-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 40px;
    width: 100%;
}

@media (min-width: 768px) {
    .manufacturer-item__contact-title {
        width: 80%;
    }
}

.manufacturer-item__contact-mail,
.manufacturer-item__contact-phone {
    display: flex;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 16px;
}

.manufacturer-item__contact-mail span,
.manufacturer-item__contact-phone span {
    font-weight: 700;
    margin-right: 23px;
    width: 65px;
    flex-shrink: 0;
}

.manufacturer-item__contact-mail a,
.manufacturer-item__contact-phone a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.manufacturer-item__contact-mail a:hover,
.manufacturer-item__contact-phone a:hover {
    color: #12356a;
}

.manufacturer-item__contact-btn {
    margin-top: 48px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .manufacturer-item__contact-btn {
        margin-bottom: 0;
    }
}

@media (min-width: 1280px) {
    .manufacturer-item__contact-btn {
        max-width: 230px;
    }
}

.manufacturer-item__contact-btn button {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manufacturer-item__contact-btn button:hover {
    background-color: #12356a;
    color: #fff;
    border-color: #12356a;
}

/* ============================================
   MANUFACTURERS PAGE LIST
   ============================================ */

.manufacturers-page {
    padding: 40px 0 60px;
}

/* Алфавитная навигация */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 24px 0;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.alphabet-nav__letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.alphabet-nav__letter:hover {
    background-color: #12356a;
    color: #ffff;
}

/* Группа производителей */
.manufacturers-group {
    margin-bottom: 60px;
    scroll-margin-top: 150px;
}

.manufacturers-group__title {
    font-size: 48px;
    font-weight: 700;
    color: #12356a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #12356a;
}

/* Список карточек */
.manufacturers-list {
    padding-left: 25%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Карточка производителя */
.manufacturer-card {
    background-color: #f7f7f7;
    border: 1px solid #fff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
 
.manufacturer-card:hover {
    border-color: #12356a;
}

.manufacturer-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.manufacturer-card__logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background-color: #f9f9f9;
    border-radius: 0;
}

.manufacturer-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.manufacturer-card__logo--placeholder {
    background: linear-gradient(135deg, #12356a 0%, #6B46C1 100%);
}

.manufacturer-card__logo--placeholder span {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.manufacturer-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manufacturer-card__name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.manufacturer-card__description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: none;
}

.manufacturer-card__count {
    font-size: 13px;
    color: #999999;
    font-style: italic;
}

/* Empty state */
.manufacturers-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

/* Responsive */
@media (max-width: 1024px) {
    .manufacturers-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .alphabet-nav {
        position: static;
        gap: 6px;
        padding: 16px;
    }
    
    .alphabet-nav__letter {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .manufacturers-group__title {
        font-size: 36px;
    }
    
    .manufacturers-list {
        grid-template-columns: 1fr;
    }
    
    .manufacturer-card__link {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .alphabet-nav__letter {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .manufacturers-group__title {
        font-size: 28px;
    }
}