.ym-catalog-product-view {
    display: grid;
    gap: 12px;
}

.ym-catalog-product-view__hero {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
}

.ym-catalog-product-view__image {
    display: flex;
    min-height: 236px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .045), transparent 60%), #fff;
}

.ym-catalog-product-view__image img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    padding: 10px;
}

.ym-catalog-product-view__image-empty {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #edf2f8;
    color: #66758a;
    font-size: 28px;
}

.ym-catalog-product-view__hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.ym-catalog-product-view__type {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: #fff;
    padding: 4px 9px;
    color: hsl(var(--muted-foreground));
    font-size: 11px;
    font-weight: 800;
}

.ym-catalog-product-view__type img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.ym-catalog-product-view__hero-main h2 {
    margin: 0;
    color: hsl(var(--foreground));
    font-size: 23px;
    font-weight: 900;
    line-height: 1.12;
}

.ym-catalog-product-view__slug {
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    font-weight: 650;
    word-break: break-word;
}

.ym-catalog-product-view__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ym-catalog-product-view__pill {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 999px;
    background: #eef3fa;
    padding: 3px 8px;
    color: #43536a;
    font-size: 10.6px;
    font-weight: 820;
}

.ym-catalog-product-view__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.ym-catalog-product-view__spec {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: rgba(255, 255, 255, .76);
    padding: 8px 10px;
}

.ym-catalog-product-view__spec-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b64f4;
}

.ym-catalog-product-view__spec span:last-child {
    min-width: 0;
}

.ym-catalog-product-view__spec small,
.ym-catalog-product-view__meta-item small,
.ym-catalog-product-view__text-block small {
    display: block;
    color: hsl(var(--muted-foreground));
    font-size: 10.3px;
    font-weight: 780;
    line-height: 1.2;
}

.ym-catalog-product-view__spec strong {
    display: block;
    margin-top: 2px;
    color: hsl(var(--foreground));
    font-size: 12px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ym-catalog-product-view__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 12px;
    align-items: start;
}

.ym-catalog-product-view__main,
.ym-catalog-product-view__side {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.ym-catalog-product-view__card {
    overflow: hidden;
}

.ym-catalog-product-view__count {
    display: inline-flex;
    min-width: 26px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8edf5;
    color: #45556d;
    font-size: 11px;
    font-weight: 850;
}

.ym-catalog-product-view__text {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.ym-catalog-product-view__text-block {
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: #fbfcfe;
    padding: 10px 12px;
}

.ym-catalog-product-view__text-block p {
    margin: 4px 0 0;
    color: hsl(var(--foreground));
    font-size: 12px;
    font-weight: 560;
    line-height: 1.45;
}

.ym-catalog-product-view__characteristics {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.ym-catalog-product-view__characteristic-group {
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: #fff;
}

.ym-catalog-product-view__characteristic-head {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid hsl(var(--border));
    background: #f5f7fb;
    padding: 8px 10px;
}

.ym-catalog-product-view__characteristic-head strong {
    color: hsl(var(--foreground));
    font-size: 12px;
    font-weight: 900;
}

.ym-catalog-product-view__characteristic-head span {
    display: inline-flex;
    min-width: 24px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e5ebf4;
    color: #506077;
    font-size: 10.5px;
    font-weight: 850;
}

.ym-catalog-product-view__characteristic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ym-catalog-product-view__characteristic {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 36px;
    border-top: 1px solid #edf1f6;
    padding: 7px 10px;
}

.ym-catalog-product-view__characteristic:nth-child(1),
.ym-catalog-product-view__characteristic:nth-child(2) {
    border-top: 0;
}

.ym-catalog-product-view__characteristic span {
    color: hsl(var(--muted-foreground));
    font-size: 11px;
    font-weight: 700;
}

.ym-catalog-product-view__characteristic strong {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    color: hsl(var(--foreground));
    font-size: 11.5px;
    font-weight: 850;
}

.ym-catalog-product-view__characteristic strong small {
    color: hsl(var(--muted-foreground));
    font-size: 10.4px;
    font-weight: 700;
}

.ym-catalog-product-view__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    padding: 12px;
}

.ym-catalog-product-view__gallery-item {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: #fff;
}

.ym-catalog-product-view__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.ym-catalog-product-view__meta {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.ym-catalog-product-view__meta-item {
    border: 1px solid hsl(var(--border));
    border-radius: 9px;
    background: #fbfcfe;
    padding: 8px 10px;
}

.ym-catalog-product-view__meta-item strong {
    display: block;
    margin-top: 2px;
    color: hsl(var(--foreground));
    font-size: 11.5px;
    font-weight: 850;
    word-break: break-word;
}

.ym-catalog-product-view__empty {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed #9ec1fa;
    border-radius: 10px;
    background: #f5f9ff;
    padding: 12px;
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    font-weight: 750;
}

.ym-catalog-entity-view__hero .ym-catalog-product-view__image {
    min-height: 210px;
}

.ym-catalog-entity-view__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.ym-catalog-entity-view__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 58px;
    border: 1px solid hsl(var(--border));
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .05), transparent 72%), #fff;
    padding: 9px 11px;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ym-catalog-entity-view__link:hover,
.ym-catalog-entity-view__link:focus {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    color: hsl(var(--foreground));
    text-decoration: none;
    transform: translateY(-1px);
}

.ym-catalog-entity-view__link-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5ff;
    color: #0b64f4;
    font-size: 13px;
}

.ym-catalog-entity-view__link strong {
    display: block;
    overflow: hidden;
    color: hsl(var(--foreground));
    font-size: 12.2px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ym-catalog-entity-view__link small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: hsl(var(--muted-foreground));
    font-size: 10.5px;
    font-weight: 720;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ym-catalog-entity-view__link b {
    display: inline-flex;
    min-width: 34px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8edf5;
    color: #405068;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
}

.ym-entity-view__avatar {
    min-height: 170px;
}

.ym-entity-view__specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ym-entity-view__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-bottom: 1px solid hsl(var(--border));
    padding: 12px;
}

.ym-entity-view__summary-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: #fbfcfe;
    padding: 8px 10px;
}

.ym-entity-view__summary-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b64f4;
    font-size: 12px;
}

.ym-entity-view__summary-item small {
    display: block;
    color: hsl(var(--muted-foreground));
    font-size: 10.3px;
    font-weight: 780;
    line-height: 1.15;
}

.ym-entity-view__summary-item strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: hsl(var(--foreground));
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ym-entity-view__summary-item--success .ym-entity-view__summary-icon {
    background: #dcfce7;
    color: #15803d;
}

.ym-entity-view__summary-item--success strong {
    color: #15803d;
}

.ym-entity-view__summary-item--danger .ym-entity-view__summary-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.ym-entity-view__summary-item--danger strong {
    color: #b91c1c;
}

.ym-entity-view__links {
    border-bottom: 1px solid hsl(var(--border));
}

.ym-entity-view__table-wrap {
    overflow-x: auto;
}

.ym-entity-view__table-wrap--bordered {
    border-top: 0;
}

.ym-entity-view__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
    color: hsl(var(--foreground));
    font-size: 11.5px;
}

.ym-entity-view__table th {
    height: 38px;
    background: #f5f7fb;
    color: #65748b;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.ym-entity-view__table th,
.ym-entity-view__table td {
    border-bottom: 1px solid hsl(var(--border));
    padding: 8px 10px;
    vertical-align: middle;
}

.ym-entity-view__table tbody tr:last-child td {
    border-bottom: 0;
}

.ym-entity-view__table td strong {
    font-weight: 900;
}

.ym-entity-view__empty-inline {
    margin: 12px;
}

.ym-catalog-product-view__characteristics--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ym-catalog-product-view__characteristics--compact .ym-catalog-product-view__characteristic-head {
    min-height: 34px;
    padding: 7px 9px;
}

.ym-catalog-product-view__characteristics--compact .ym-catalog-product-view__characteristic-list {
    grid-template-columns: 1fr;
}

.ym-catalog-product-view__characteristics--compact .ym-catalog-product-view__characteristic {
    min-height: 32px;
    padding: 6px 9px;
}

.ym-catalog-product-view__characteristics--compact .ym-catalog-product-view__characteristic:nth-child(2) {
    border-top: 1px solid #edf1f6;
}

@media (max-width: 900px) {
    .ym-catalog-product-view__hero,
    .ym-catalog-product-view__layout {
        grid-template-columns: 1fr;
    }

    .ym-catalog-product-view__image {
        min-height: 220px;
    }

    .ym-entity-view__specs,
    .ym-entity-view__summary,
    .ym-catalog-product-view__characteristics--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ym-catalog-product-view__specs,
    .ym-catalog-product-view__characteristic-list,
    .ym-catalog-entity-view__links,
    .ym-entity-view__summary,
    .ym-catalog-product-view__characteristics--compact {
        grid-template-columns: 1fr;
    }

    .ym-catalog-product-view__characteristic:nth-child(2) {
        border-top: 1px solid #edf1f6;
    }
}
