.page-company {
    padding-top: 18px;
    padding-bottom: 42px;
    background: #f7f9ff;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #86909c;
    font-size: 13px;
}

.breadcrumb a {
    color: #4e5969;
}

.breadcrumb strong {
    color: #1d2129;
}

.company-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) 340px;
    gap: 24px;
    align-items: start;
}

.company-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.company-page-heading__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.company-page-heading__logo {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.company-page-heading__logo img,
.company-page-heading__fallback {
    width: 100%;
    height: 100%;
}

.company-page-heading__logo img {
    object-fit: contain;
    background: #ffffff;
}

.company-page-heading__fallback {
    display: grid;
    place-items: center;
    color: #2677f5;
    font-size: 30px;
    font-weight: 800;
}

.company-page-heading__content {
    min-width: 0;
}

.company-page-heading__title {
    margin: 0 0 12px;
    color: #1d2129;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

.company-page-heading__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.company-owner-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #2677f5;
    border-radius: 8px;
    background: #ffffff;
    color: #2677f5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.company-management-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.company-management-actions[hidden] {
    display: none;
}

.company-management-actions .company-owner-action {
    min-width: 148px;
}

.company-public-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #2677f5;
    border-radius: 8px;
    background: #2677f5;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.company-public-card-action:hover,
.company-public-card-action:focus-visible {
    border-color: #1d5fcc;
    background: #1d5fcc;
    color: #ffffff;
}

.company-public-card-action__icon {
    display: inline-flex;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
}

.company-public-card-action__icon svg {
    width: 100%;
    height: 100%;
}

.company-card-modal[hidden] {
    display: none;
}

.company-card-modal {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.company-card-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(8, 24, 54, 0.62);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.company-card-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 375px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 24px 72px rgba(4, 17, 44, 0.34);
}

.company-card-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e7eef8;
    color: #45688f;
    cursor: pointer;
}

.company-card-modal__close:hover,
.company-card-modal__close:focus-visible {
    background: #dbe8f7;
    color: #214e82;
}

.company-card-modal__close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.company-card-image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 375px);
    min-height: 220px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f4f8;
}

.company-card-image {
    display: block;
    width: 100%;
    max-width: 375px;
    height: auto;
}

.company-card-image__status {
    padding: 32px 20px;
    color: #71809a;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.company-card-image[hidden],
.company-card-image__status[hidden] {
    display: none;
}

body.company-card-modal-open {
    overflow: hidden;
}

.company-owner-action[hidden],
.company-product-card__actions[hidden] {
    display: none !important;
}

.company-owner-action:hover,
.company-owner-action:focus-visible {
    border-color: #1d5fcc;
    background: #2677f5;
    color: #ffffff;
}

.company-showcase__main,
.company-showcase__side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.card-shell {
    overflow: hidden;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e6eb;
    background: #ffffff;
}

.section-bar--compact {
    padding: 16px 18px;
}

.section-bar__title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.section-bar__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #86909c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.section-bar__heading {
    margin: 0;
    color: #1d2129;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.section-bar__heading--hero {
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #e6f0ff;
    color: #2677f5;
}

.section-icon--small {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
}

.section-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.company-showcase__badges,
.company-copy__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.company-badge,
.company-copy__tag,
.company-product-card__tag {
    display: inline-flex;
    justify-self: start;
    max-width: 100%;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    background: #ffffff;
    color: #4e5969;
    font-size: 12px;
    font-weight: 700;
}

.company-badge--soft,
.company-copy__tag--light {
    background: #f7f9ff;
    color: #86909c;
}

.company-page-heading__fallback,
.recommended-company-card__fallback,
.company-product-card__fallback {
    width: 100%;
    height: 100%;
}

.company-page-heading__fallback[hidden],
.company-product-card__fallback[hidden] {
    display: none;
}

.recommended-company-card__logo img {
    object-fit: contain;
    background: #ffffff;
}

.recommended-company-card__fallback,
.company-product-card__fallback {
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #2677f5;
    font-size: 32px;
    font-weight: 800;
}

.company-subsection-title h2,
.company-subsection-title h3 {
    margin: 0;
    color: #1d2129;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.company-business-summary p,
.company-copy p,
.recommended-company-card__body span {
    margin: 0;
    color: #4e5969;
    font-size: 15px;
    line-height: 1.8;
}

.company-information-card__body {
    display: grid;
    gap: 24px;
    padding: 22px 20px 24px;
}

.company-business-summary {
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e6eb;
}

.company-business-summary p {
    margin-top: 8px;
}

.company-subsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-contact-section {
    display: grid;
    gap: 14px;
}

.company-contact-list {
    display: grid;
    padding: 20px;
}

.company-contact-list__row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 52px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e6eb;
}

.company-info-card__label,
.company-contact-list__row > span,
.channel-item__label {
    display: block;
    margin-bottom: 0;
    color: #86909c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.company-business-summary .company-info-card__label,
.company-contact-list__row > span {
    margin-bottom: 0;
}

.company-contact-list__row strong,
.company-contact-list__row a,
.channel-item__value,
.company-product-card__meta strong,
.recommended-company-card__body strong {
    color: #4e5969;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.company-contact-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.company-contact-action strong {
    min-width: 0;
    color: var(--color-primary);
}

.company-contact-action:hover strong,
.company-contact-action:focus-visible strong {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.company-contact-action:focus-visible,
.company-contact-sheet__action:focus-visible,
.company-contact-sheet__cancel:focus-visible,
.company-contact-sheet__close:focus-visible {
    outline: 3px solid rgba(47, 111, 174, 0.22);
    outline-offset: 3px;
}

.company-contact-action__icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.company-contact-action__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.company-contact-sheet[hidden],
.company-contact-toast[hidden],
.company-contact-sheet__action[hidden] {
    display: none;
}

.company-contact-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
}

.company-contact-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 31, 49, 0.58);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.company-contact-sheet__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 31, 49, 0.26);
}

.company-contact-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.company-contact-sheet__title {
    margin: 0;
    color: var(--color-text);
    font-size: 19px;
    font-weight: 800;
}

.company-contact-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef5fb;
    color: #476b90;
    cursor: pointer;
}

.company-contact-sheet__close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.company-contact-sheet__value {
    margin: 6px 0 18px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.company-contact-sheet__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.company-contact-sheet__action {
    display: flex;
    min-width: 0;
    min-height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e6eb;
    border-radius: 10px;
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.company-contact-sheet__action:hover {
    border-color: #bfd5e9;
    background: #f7fbff;
    transform: translateY(-1px);
}

.company-contact-sheet__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
}

.company-contact-sheet__action-icon--call,
.company-contact-sheet__action-icon--map {
    background: #c98546;
}

.company-contact-sheet__action-icon--copy {
    background: #72d982;
}

.company-contact-sheet__action-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.company-contact-sheet__cancel {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 1px solid #e5e6eb;
    border-radius: 10px;
    background: #f7f9fc;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.company-contact-toast {
    position: fixed;
    right: 50%;
    bottom: 30px;
    z-index: 130;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(32, 51, 72, 0.92);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    transform: translateX(50%);
}

body.company-contact-sheet-open {
    overflow: hidden;
}

@media (min-width: 721px) {
    .company-contact-sheet {
        align-items: center;
    }
}

.company-gallery-strip,
.company-copy,
.company-product-grid,
.channel-list,
.recommended-company-list {
    padding: 20px;
}

.company-gallery-strip {
    display: grid;
    gap: 12px;
}

.company-gallery-item {
    position: relative;
    min-width: 0;
}

.company-gallery-strip img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #ffffff;
}

.company-gallery-item__fallback,
.company-gallery-empty {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #f7f9ff;
    color: #2677f5;
    font-size: 42px;
    font-weight: 800;
}

.company-gallery-item__fallback[hidden] {
    display: none;
}

.company-gallery-item__fallback img,
.company-gallery-empty img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.company-copy {
    display: block;
}

.company-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.company-product-filter {
    display: grid;
    grid-template-columns: auto minmax(132px, 1fr) auto minmax(132px, 1fr);
    align-items: center;
    gap: 10px;
    padding: 18px 20px 0;
    color: #4e5969;
    font-size: 13px;
}

.company-product-filter label {
    font-weight: 700;
}

.company-product-filter select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid #d7dce5;
    border-radius: 6px;
    background: #ffffff;
    color: #1d2129;
    font: inherit;
}

.company-product-filter select:disabled {
    background: #f7f8fa;
    color: #86909c;
}

.company-product-card,
.recommended-company-card,
.channel-item {
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.company-product-card:hover,
.recommended-company-card:hover,
.channel-item:hover {
    transform: translateY(-2px);
    border-color: #d7dce5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.company-product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.company-product-card[hidden] {
    display: none;
}

.company-product-card__link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.company-product-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    min-height: 0;
    padding: 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e6eb;
}

.company-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
}

.company-product-card__body {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 16px;
}

.company-product-card__body .company-product-card__tag {
    flex: 0 1 auto;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-product-card__body h3 {
    flex: 1 1 auto;
    margin: 0;
    width: auto;
    min-width: 0;
    color: #1d2129;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-product-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 9px 12px;
    border-top: 1px solid #e5e6eb;
    background: #fbfcff;
}

.company-product-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #d7dce5;
    border-radius: 6px;
    background: #ffffff;
    color: #2677f5;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.company-product-card__action:hover,
.company-product-card__action:focus-visible {
    border-color: #2677f5;
    background: #eef5ff;
}

.company-product-card__action--danger {
    color: #d84a4a;
}

.company-product-card__action--danger:hover,
.company-product-card__action--danger:focus-visible {
    border-color: #d84a4a;
    background: #fff2f2;
}

.company-products-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 132px;
    padding: 24px;
    color: #86909c;
    font-size: 14px;
}

.company-products-filter-empty {
    margin: 0;
    padding: 26px 20px;
    color: #86909c;
    font-size: 14px;
    text-align: center;
}

.company-products-filter-empty[hidden] {
    display: none;
}

.company-products-empty .company-owner-action {
    min-height: 32px;
}

.product-delete-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.product-delete-modal[hidden] {
    display: none;
}

.product-delete-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(23, 35, 55, 0.52);
    cursor: pointer;
}

.product-delete-modal__dialog {
    position: relative;
    width: min(100%, 420px);
    padding: 30px;
    border: 1px solid #e5e6eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 54px rgba(31, 35, 41, 0.2);
    text-align: center;
}

.product-delete-modal__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff1f0;
    color: #d84a4a;
}

.product-delete-modal__icon svg {
    width: 25px;
    height: 25px;
}

.product-delete-modal__dialog h2 {
    margin: 0;
    color: #1d2129;
    font-size: 20px;
    line-height: 1.4;
}

.product-delete-modal__dialog p {
    margin: 10px 0 24px;
    color: #86909c;
    font-size: 14px;
    line-height: 1.7;
}

.product-delete-modal__dialog p strong {
    color: #1d2129;
    font-weight: 700;
}

.product-delete-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-delete-modal__button {
    min-height: 42px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #ffffff;
    color: #4e5969;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.product-delete-modal__button:hover,
.product-delete-modal__button:focus-visible {
    border-color: #2677f5;
    background: #eef5ff;
}

.product-delete-modal__button--danger {
    border-color: #d84a4a;
    background: #d84a4a;
    color: #ffffff;
}

.product-delete-modal__button--danger:hover,
.product-delete-modal__button--danger:focus-visible {
    border-color: #b93636;
    background: #b93636;
}

body.product-delete-modal-open {
    overflow: hidden;
}

.product-sort-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.product-sort-modal[hidden] {
    display: none;
}

.product-sort-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(23, 35, 55, 0.52);
    cursor: pointer;
}

.product-sort-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    flex-direction: column;
    padding: 24px;
    border: 1px solid #e5e6eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 54px rgba(31, 35, 41, 0.2);
}

.product-sort-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-sort-modal__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #86909c;
    font-size: 12px;
    font-weight: 700;
}

.product-sort-modal__head h2 {
    margin: 0;
    color: #1d2129;
    font-size: 22px;
    line-height: 1.35;
}

.product-sort-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid #d7dce5;
    border-radius: 50%;
    background: #ffffff;
    color: #86909c;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.product-sort-modal__close:hover,
.product-sort-modal__close:focus-visible {
    border-color: #2677f5;
    background: #eef5ff;
    color: #2677f5;
}

.product-sort-modal__list-wrap {
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
}

.product-sort-modal__list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-sort-modal__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e6eb;
}

.product-sort-modal__item:last-child {
    border-bottom: 0;
}

.product-sort-modal__rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef5ff;
    color: #2677f5;
    font-size: 13px;
    font-weight: 800;
}

.product-sort-modal__details {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.product-sort-modal__name,
.product-sort-modal__category {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-sort-modal__name {
    color: #1d2129;
    font-size: 14px;
    font-weight: 700;
}

.product-sort-modal__category {
    color: #86909c;
    font-size: 12px;
}

.product-sort-modal__item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-sort-modal__item-button,
.product-sort-modal__button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d7dce5;
    border-radius: 6px;
    background: #ffffff;
    color: #2677f5;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-sort-modal__item-button:hover,
.product-sort-modal__item-button:focus-visible,
.product-sort-modal__button:hover,
.product-sort-modal__button:focus-visible {
    border-color: #2677f5;
    background: #eef5ff;
}

.product-sort-modal__item-button:disabled,
.product-sort-modal__button:disabled {
    border-color: #e5e6eb;
    background: #f7f8fa;
    color: #c9cdd4;
    cursor: not-allowed;
}

.product-sort-modal__empty {
    margin: 0;
    padding: 36px 16px;
    color: #86909c;
    font-size: 14px;
    text-align: center;
}

.product-sort-modal__empty[hidden] {
    display: none;
}

.product-sort-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.product-sort-modal__button {
    min-height: 42px;
    font-size: 14px;
}

.product-sort-modal__button--primary {
    border-color: #2677f5;
    background: #2677f5;
    color: #ffffff;
}

.product-sort-modal__button--primary:hover,
.product-sort-modal__button--primary:focus-visible {
    border-color: #1d5fcc;
    background: #1d5fcc;
    color: #ffffff;
}

body.product-sort-modal-open {
    overflow: hidden;
}

.company-product-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #86909c;
    font-size: 13px;
}

.channel-list {
    display: grid;
    gap: 12px;
}

.channel-item {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
}

.channel-item__value,
.company-contact-list__row a {
    color: #2677f5;
}

.recommended-company-list {
    display: grid;
    gap: 12px;
}

.recommended-company-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 14px;
}

.recommended-company-card__logo {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.recommended-company-card__body {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    min-height: 72px;
}

@media (max-width: 1180px) {
    .company-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .company-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .company-showcase,
    .company-showcase__main,
    .company-showcase__side {
        gap: 16px;
    }

    .section-bar,
    .section-bar--compact {
        padding: 16px;
    }

    .section-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .company-page-heading__identity {
        align-items: flex-start;
    }

    .company-page-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .company-page-heading__actions {
        padding-top: 2px;
    }

    .company-management-actions {
        flex-direction: column;
        gap: 8px;
    }

    .company-management-actions .company-owner-action {
        width: 100%;
        min-height: 46px;
    }

    .company-public-card-action {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .company-public-card-action__icon {
        flex-basis: 15px;
        width: 15px;
        height: 15px;
    }

    .company-card-modal {
        align-items: flex-start;
        padding: 12px;
    }

    .company-card-modal__dialog {
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .company-card-image-wrap {
        width: 100%;
    }

    .company-page-heading__logo {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .company-page-heading__title {
        margin-bottom: 10px;
        font-size: 30px;
    }

    .company-information-card__body {
        gap: 16px;
        padding: 16px;
    }

    .company-business-summary {
        padding-bottom: 16px;
    }

    .company-gallery-strip,
    .company-copy {
        padding: 16px;
    }

    .company-contact-list {
        padding: 16px;
    }

    .company-contact-list__row {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        min-height: 0;
        padding: 8px 0;
    }

    .company-info-card__label,
    .company-contact-list__row > span {
        font-size: 12px;
    }

    .company-contact-list__row strong,
    .company-contact-list__row a,
    .channel-item__value,
    .company-product-card__meta strong,
    .recommended-company-card__body strong {
        font-size: 13px;
    }

    .company-contact-sheet {
        padding: 0;
    }

    .company-contact-sheet__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
    }

    .company-contact-sheet__value {
        margin-bottom: 14px;
    }

    .company-product-grid,
    .recommended-company-card {
        grid-template-columns: 1fr;
    }

    .company-product-grid {
        gap: 8px;
        padding: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-product-filter {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
        padding: 14px 16px 0;
    }

    .company-product-filter select {
        min-width: 0;
    }

    .company-product-card__media {
        aspect-ratio: 1 / 1;
        padding: 10px;
    }

    .company-product-card__body {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        min-height: 0;
        padding: 8px 6px 10px;
        text-align: center;
    }

    .company-product-card__body .company-product-card__tag {
        display: none;
    }

    .company-product-card__body h3 {
        width: 100%;
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .company-product-card__actions {
        padding: 7px 8px;
    }

    .recommended-company-card__logo {
        width: 64px;
        height: 64px;
    }

    .product-sort-modal {
        align-items: flex-end;
        padding: 12px 12px 0;
    }

    .product-sort-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 12px);
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
    }

    .product-sort-modal__item {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
        gap: 8px 10px;
        padding: 12px 10px;
    }

    .product-sort-modal__item-actions {
        grid-column: 2;
        width: 100%;
    }

    .product-sort-modal__item-button {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 6px;
    }
}
