.me2-spec-archive {
    --me2-spec-archive-cols: 4;
    --me2-spec-archive-gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
}

.me2-spec-breadcrumb-widget,
.me2-spec-search-widget,
.me2-spec-directory-list-widget {
    max-width: 1280px;
    margin: 0 auto;
}

.me2-spec-search-widget {
    margin-bottom: 24px;
}

.me2-spec-search-form {
    display: block;
}

.me2-spec-search-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.me2-spec-search-field {
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 1 1 0;
}

.me2-spec-search-field--labeled {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.me2-spec-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #667085;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.me2-spec-search-field-name {
    flex: 1 1 0;
}

.me2-spec-search-field-department,
.me2-spec-search-field-price {
    flex: 1 1 0;
}

.me2-spec-search-field-department {
    flex: 1 1 0;
}

.me2-spec-search-divider {
    width: 1px;
    height: 34px;
    background: #d7dbe4;
    flex: 0 0 auto;
}

.me2-spec-search-input,
.me2-spec-search-select,
.me2-spec-search-price {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    color: #1d2939;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.me2-spec-search-btn,
.me2-spec-search-reset {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
}

.me2-spec-search-btn {
    border: 1px solid #253b84;
    background: #253b84;
    color: #fff;
    cursor: pointer;
}

.me2-spec-search-reset {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

/* Home hero search bar: equal field widths and consistent alignment */
.me2-home-spec-search-widget .me2-spec-search-field-department,
.me2-home-spec-search-widget .me2-spec-search-field-name {
    flex: 1 1 0;
}

.me2-home-spec-search-widget .me2-spec-search-divider {
    display: none;
}

.me2-home-spec-search-widget .me2-spec-search-bar {
    padding: 0;
}

.me2-home-spec-search-widget .me2-spec-search-field {
    min-height: 56px;
    align-items: stretch;
}

.me2-home-spec-search-widget .me2-spec-search-field-department {
    position: relative;
}

.me2-home-spec-search-widget .me2-spec-search-select {
    border: 1px solid #d6dfef;
    border-radius: 12px;
    background-color: #f8fbff;
    padding: 0 44px 0 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: #1f2a44;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23253B84' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
}

.me2-home-spec-search-widget .me2-spec-search-select:hover {
    border-color: #b9c8e4;
    background-color: #f2f7ff;
}

.me2-home-spec-search-widget .me2-spec-search-select:focus {
    outline: none;
    border-color: #4b6ed6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 59, 132, 0.14);
}

.me2-home-spec-search-widget .me2-spec-search-select option {
    color: #1d2939;
    background-color: #ffffff;
    padding: 8px 12px;
    /* Native option padding is ignored on some browsers; indent + line-height is the reliable fallback. */
    text-indent: 10px;
    line-height: 1.9;
    min-height: 34px;
}

.me2-home-spec-search-widget .me2-spec-search-select option:first-child {
    color: #667085;
}

.me2-home-spec-search-widget .me2-spec-search-field--labeled {
    justify-content: center;
}

.me2-home-spec-search-widget .me2-spec-search-input,
.me2-home-spec-search-widget .me2-spec-search-select,
.me2-home-spec-search-widget .me2-spec-search-price,
.me2-home-spec-search-widget .me2-spec-search-btn {
    height: 44px;
}

.me2-spec-archive-header {
    margin-bottom: 24px;
}

/* Legacy plain breadcrumb — kept for backwards compat */
.me2-spec-archive-breadcrumb {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #496db8;
}

/* New breadcrumb nav */
.me2-spec-bc-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: #667085;
    margin-bottom: 12px;
}

.me2-spec-bc-nav a {
    color: #344054;
    text-decoration: none;
}

.me2-spec-bc-nav a:hover {
    text-decoration: underline;
}

.me2-spec-bc-home {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.me2-spec-bc-sep {
    opacity: 0.5;
    font-size: 16px;
    line-height: 1;
}

.me2-spec-bc-current {
    color: #101828;
    font-weight: 500;
}

.me2-spec-archive-title-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.me2-spec-archive-title {
    margin: 0;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 500;
    color: #1d2939;
    white-space: nowrap;
}

.me2-spec-archive-title-line {
    display: block;
    width: 100%;
    height: 1px;
    background: #d7dbe4;
}

.me2-spec-archive-grid {
    display: grid;
    grid-template-columns: repeat(var(--me2-spec-archive-cols), minmax(0, 1fr));
    gap: var(--me2-spec-archive-gap);
}

.me2-spec-archive-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.me2-spec-archive-card a,
.me2-spec-archive-card a:hover,
.me2-spec-archive-card a:focus {
    text-decoration: none;
}

.me2-spec-archive-image-link {
    display: block;
    background: #f2f4f7;
}

.me2-spec-archive-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.me2-spec-archive-image.is-placeholder {
    background: linear-gradient(110deg, #f2f4f7 8%, #e4e7ec 18%, #f2f4f7 33%);
    background-size: 200% 100%;
    animation: me2SpecArchiveShimmer 1.4s linear infinite;
}

.me2-spec-archive-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.me2-spec-archive-name {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    color: #1f2937;
}

.me2-spec-archive-name-link {
    color: inherit;
    text-decoration: none;
}

.me2-spec-archive-name-link:hover,
.me2-spec-archive-name-link:focus {
    text-decoration: underline;
}

.me2-spec-archive-department {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c8aa5;
    font-weight: 700;
}

.me2-spec-archive-department-link {
    color: inherit;
    text-decoration: none;
}

.me2-spec-archive-department-link:hover,
.me2-spec-archive-department-link:focus {
    color: #496db8;
    text-decoration: underline;
}

.me2-spec-archive-languages {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.me2-spec-archive-language-image {
    display: block;
    width: 38px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.me2-spec-lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: #344054;
    line-height: 1.4;
}

.me2-spec-lang-flag {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.me2-spec-lang-flag-globe {
    width: auto;
    height: auto;
    font-size: 12px;
    line-height: 1;
}

.me2-spec-lang-label {
    font-size: inherit;
    line-height: inherit;
}

.me2-spec-archive-footer {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.me2-spec-archive-price {
    font-size: 17px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 600;
}

.me2-spec-archive-price-suffix {
    font-size: 0.95em;
    font-weight: 400;
    color: #475467;
}

.me2-spec-archive-price.is-empty {
    font-size: 17px;
    color: #98a2b3;
    font-weight: 500;
}

.me2-spec-archive-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    color: #74c488;
    text-decoration: none;
    white-space: nowrap;
}

.me2-spec-archive-pagination {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.me2-spec-archive-page {
    display: inline-flex;
}

.me2-spec-archive-page a,
.me2-spec-archive-page span {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    font-size: 13px;
    color: #344054;
    text-decoration: none;
    background: #fff;
    padding: 0 8px;
}

.me2-spec-archive-page.is-active span,
.me2-spec-archive-page .current {
    background: #253b84;
    border-color: #253b84;
    color: #fff;
}

.me2-spec-archive-empty {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    padding: 20px;
    color: #667085;
    font-size: 16px;
}

.me2-spec-archive-card.is-placeholder {
    opacity: 0.7;
}

@keyframes me2SpecArchiveShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1200px) {
    .me2-spec-archive-title {
        font-size: 40px;
    }

    .me2-spec-archive-breadcrumb {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .me2-spec-archive-grid {
        --me2-spec-archive-cols: 3;
    }

    .me2-spec-archive-image {
        height: 146px;
    }
}

@media (max-width: 767px) {
    .me2-spec-archive-grid {
        --me2-spec-archive-cols: 1;
    }

    .me2-spec-archive-title {
        font-size: 34px;
    }

    .me2-spec-archive-breadcrumb {
        font-size: 16px;
    }

    .me2-spec-archive-title-row {
        gap: 14px;
    }

    .me2-spec-search-bar {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 12px !important;
        padding: 12px;
    }

    .me2-spec-search-field {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .me2-spec-search-field-name,
    .me2-spec-search-field-department,
    .me2-spec-search-field-price {
        flex: 1 1 100%;
        width: 100%;
    }

    .me2-spec-search-btn,
    .me2-spec-search-reset {
        flex: 1 1 100%;
        width: 100%;
    }

    .me2-spec-search-input,
    .me2-spec-search-select,
    .me2-spec-search-price {
        width: 100%;
    }

    .me2-home-spec-search-widget .me2-spec-search-bar {
        gap: 12px !important;
    }

    .me2-spec-search-divider {
        display: none;
    }

    .me2-spec-archive-footer {
        flex-wrap: wrap;
    }
}
