/* ==========================================================================
   Schome Shop — витрина
   Блоки, специфичные для клиентской части.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Главный экран
   -------------------------------------------------------------------------- */.sc-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 1.2rem + 3vw, 3.6rem);
    background:
        radial-gradient(600px 320px at 88% -10%, rgba(34, 199, 214, 0.22), transparent 70%),
        radial-gradient(520px 300px at 8% 110%, rgba(13, 156, 171, 0.2), transparent 70%),
        linear-gradient(150deg, rgba(17, 22, 38, 0.92), rgba(7, 10, 22, 0.9));
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.35rem);
    box-shadow: var(--sc-shadow);
}

.sc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(13, 156, 171, 0.55), transparent 45%, rgba(127, 227, 234, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.sc-hero-title {
    margin: 0.9rem 0 0.75rem;
    font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
    line-height: 1.08;
    font-weight: 700;
}

.sc-hero-lead {
    max-width: 34rem;
    margin-bottom: 1.8rem;
    color: var(--sc-muted);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
    line-height: 1.6;
}

.sc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sc-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.sc-hero-stat {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-sm);
}

.sc-hero-stat-value {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 650;
}

.sc-hero-stat-label {
    color: var(--sc-muted);
    font-size: 0.78rem;
}

/* Боковая панель категорий на главной */
.sc-side-card .list-group-item {
    padding: 0.8rem 1.25rem;
    color: rgba(232, 237, 247, 0.85);
    font-size: 0.92rem;
    transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.sc-side-card .list-group-item:hover {
    padding-left: 1.5rem;
    color: #fff;
    background: var(--sc-accent-soft);
}

/* --------------------------------------------------------------------------
   Заголовки секций
   -------------------------------------------------------------------------- */

.sc-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sc-section-title h2,
.sc-section-title .h2 {
    margin: 0;
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
}

.sc-section-sub {
    color: var(--sc-muted);
    font-size: 0.88rem;
}

.sc-section-title.is-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Информационный блок на главной
   -------------------------------------------------------------------------- */

.sc-home-info {
    margin-top: 2.5rem;
    padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
    background:
        radial-gradient(600px 240px at 15% 0%, rgba(34, 199, 214, 0.12), transparent 70%),
        var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.15rem);
    box-shadow: var(--sc-shadow-sm);
}

.sc-home-info-inner {
    max-width: 900px;
}

.sc-home-info-inner > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Карточка товара
   -------------------------------------------------------------------------- */

.sc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.15rem);
    box-shadow: var(--sc-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sc-product-card:hover {
    transform: translateY(-5px);
    border-color: var(--sc-accent-line);
    box-shadow: var(--sc-shadow), 0 0 0 1px var(--sc-accent-soft);
}

.sc-product-card-head {
    padding: 1.1rem;
    text-align: center;
}

.sc-product-name {
    display: block;
    color: #f2f7ff;
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.sc-product-name:hover { color: var(--sc-accent-3); }

.sc-product-media {
    position: relative;
    display: block;
    margin: 0 0.9rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1.05rem;
}

.sc-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sc-product-card:hover .sc-product-media img {
    transform: scale(1.04);
}

.sc-product-media .sc-img-placeholder {
    height: 100%;
    border: none;
    border-radius: 0;
}

.sc-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.1rem 0;
    text-align: center;
}

.sc-product-short {
    width: 100%;
    margin: 0;
    color: var(--sc-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.sc-product-short > :first-child { margin-top: 0; }
.sc-product-short > :last-child { margin-bottom: 0; }

.sc-product-short p { margin: 0 0 0.4rem; }
.sc-product-short ul,
.sc-product-short ol {
    margin: 0 0 0.4rem;
    padding-left: 1.1rem;
    text-align: left;
}

.sc-product-short h1,
.sc-product-short h2,
.sc-product-short h3,
.sc-product-short h4 {
    margin: 0 0 0.35rem;
    color: var(--sc-text);
    font-size: 0.92rem;
    font-weight: 650;
}

.sc-product-short a { color: var(--sc-accent-3); }

/* --------------------------------------------------------------------------
   Список характеристик в описании товара
   Разметка перенесена с kodacode.ru (блок тарифов): Tailwind-классы заменены
   на собственные sc-feature-*, оформление повторяет карточки тарифов.
   Селекторы «элемент + класс» дают тот же вес, что и правила .prose/.sc-product-short,
   но объявлены ниже — поэтому перекрывают их.
   -------------------------------------------------------------------------- */

ul.sc-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(232, 237, 247, 0.8);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
}

ul.sc-feature-list > li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
}

ul.sc-feature-list .sc-feature-icon {
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.15rem;
    color: #6ee7b7;
}

ul.sc-feature-list .sc-feature-row {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

ul.sc-feature-list .sc-feature-label {
    min-width: 0;
    padding-right: 0.3rem;
}

ul.sc-feature-list .sc-feature-value {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: right;
}

p.sc-feature-note {
    margin: 0.7rem 0 0;
    padding: 0.45rem 0.65rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: left;
}

.sc-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #f5c140;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: auto;
}

.sc-product-rating .mdi.is-empty { color: rgba(255, 255, 255, 0.18); }

.sc-product-stock {
    color: var(--sc-accent-3);
    font-size: 1rem;
    font-weight: 600;
}

.sc-product-stock.is-out { color: #f08a9c; }

.sc-product-meta {
    margin-top: 0.15rem;
    color: var(--sc-muted);
    font-size: 0.78rem;
}

.sc-product-tax {
    margin: -0.5rem 0 0.9rem;
    color: var(--sc-muted);
    font-size: 0.78rem;
}

.sc-product-unavailable {
    margin: 0.6rem 0 0;
    color: #f08a9c;
    font-size: 0.82rem;
}

.sc-product-rating-count {
    margin-left: 0.35rem;
    color: var(--sc-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.sc-product-price {
    /* margin-top: auto; */
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

.sc-product-price small {
    color: var(--sc-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.sc-product-footer {
    padding: 0.95rem 1.1rem 1.15rem;
}

.sc-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.sc-stock-in { color: var(--sc-accent-3); }
.sc-stock-out { color: #f08a9c; }

/* Описание категории */
.sc-category-intro {
    margin-bottom: 2rem;
    padding: 1.4rem 1.6rem;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow-sm);
}

/* --------------------------------------------------------------------------
   Категории — список широких баннеров
   -------------------------------------------------------------------------- */

.sc-cat-list {
    display: grid;
    gap: 1.25rem;
}

.sc-cat-row {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background:
        radial-gradient(600px 260px at 85% 0%, rgba(34, 199, 214, 0.22), transparent 70%),
        linear-gradient(140deg, #0d1424, #070a16);
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.15rem);
    box-shadow: var(--sc-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sc-cat-row:hover {
    color: inherit;
    transform: translateY(-3px);
    border-color: var(--sc-accent-line);
    box-shadow: var(--sc-shadow);
}

.sc-cat-row-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sc-cat-row:hover .sc-cat-row-img { transform: scale(1.04); }

.sc-cat-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 5, 17, 0.18) 0%, rgba(4, 5, 17, 0.5) 55%, rgba(4, 5, 17, 0.94) 100%);
    pointer-events: none;
}

.sc-cat-row-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    min-height: 230px;
    padding: 1.35rem 1.6rem 1.4rem;
    text-align: left;
}

.sc-cat-row-title {
    display: inline-block;
    padding: 0.4rem 1rem;
    color: #fff;
    background: rgba(4, 5, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sc-radius-pill);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.45rem);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.sc-cat-row-desc {
    width: 100%;
    max-width: 640px;
    color: rgba(232, 237, 247, 0.82);
    font-size: 0.88rem;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(4, 5, 17, 0.6);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    border-image: none;
    border-radius: var(--sc-radius);
}

/* Описание категории поддерживает HTML: убираем лишние отступы у абзацев */
.sc-cat-row-desc > :first-child { margin-top: 0; }
.sc-cat-row-desc > :last-child { margin-bottom: 0; }
.sc-cat-row-desc p { margin-bottom: 0.5rem; }
.sc-cat-row-desc ul,
.sc-cat-row-desc ol { margin: 0 0 0.5rem; padding-left: 1.2rem; }

.sc-cat-row-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    color: var(--sc-accent-3);
    font-size: 0.84rem;
    font-weight: 600;
}

.sc-cat-row:hover .sc-cat-row-cta { color: #fff; }

/* Информационные страницы */
.sc-info-page {
    max-width: 820px;
    padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow-sm);
}

@media (max-width: 575.98px) {
    .sc-cat-row-inner {
        min-height: 200px;
        padding: 1.1rem 1.15rem 1.2rem;
    }

    .sc-cat-row { min-height: 200px; }
}

/* --------------------------------------------------------------------------
   Страница товара
   -------------------------------------------------------------------------- */

.sc-product-gallery {
    padding: 0.75rem;
    overflow: hidden;
}

.sc-gallery-main {
    overflow: hidden;
    border-radius: calc(var(--sc-radius) - 0.1rem);
    background: rgba(255, 255, 255, 0.03);
}

.sc-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.sc-gallery-thumb {
    padding: 0;
    width: 62px;
    height: 62px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-sm);
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.sc-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-gallery-thumb:hover {
    border-color: var(--sc-accent-line);
    transform: translateY(-2px);
}

.sc-gallery-thumb.is-active {
    border-color: var(--sc-accent);
    box-shadow: 0 0 0 1px var(--sc-accent-soft);
}

.sc-buy-box {
    text-align: center;
}

.sc-product-title {
    margin-bottom: 0.4rem;
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    line-height: 1.3;
}

.sc-product-sku {
    color: var(--sc-muted);
    font-size: 0.82rem;
}

.sc-price-tag {
    margin: 1rem 0;
    color: #fff;
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.sc-price-tag small {
    color: var(--sc-muted);
    font-size: 0.45em;
    font-weight: 500;
}

.sc-qty-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sc-qty-row .form-control {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Отзывы
   -------------------------------------------------------------------------- */

.sc-review-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.sc-review {
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-sm);
}

.sc-review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.sc-review-author {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}

.sc-review-date {
    color: var(--sc-muted);
    font-size: 0.76rem;
}

.sc-review-text {
    margin: 0;
    color: rgba(232, 237, 247, 0.88);
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-line;
}

.sc-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #f0c05a;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.sc-stars .is-empty { color: rgba(255, 255, 255, 0.18); }

.sc-review-form-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Корзина и оформление заказа
   -------------------------------------------------------------------------- */

.sc-cart-table td,
.sc-cart-table th {
    vertical-align: middle;
}

.sc-cart-name {
    color: #f2f7ff;
    font-weight: 550;
    text-decoration: none;
}

.sc-cart-name:hover { color: var(--sc-accent-3); }

.sc-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1.5rem;
}

.sc-cart-checkout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.sc-cart-checkout-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: #f08a9c;
    font-size: 0.82rem;
}

.sc-cart-row-disabled td {
    background: rgba(240, 138, 156, 0.05);
}

.sc-cart-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    color: #f08a9c;
    font-size: 0.78rem;
    font-weight: 550;
}

.sc-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(232, 237, 247, 0.86);
    font-size: 0.92rem;
}

.sc-summary-row.is-total {
    margin-top: 1rem;
    padding-top: 1rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 650;
    border-top: 1px solid var(--sc-border);
}

.sc-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sc-border);
}

.sc-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(232, 237, 247, 0.86);
    font-size: 0.88rem;
}

.sc-summary-item-name { flex: 1 1 auto; }
.sc-summary-item-sum { color: var(--sc-muted); white-space: nowrap; }

/* Налоговая строка в списке товаров */
.sc-summary-tax {
    padding-top: 0.55rem;
    border-top: 1px dashed var(--sc-border);
}

.sc-summary-tax .sc-summary-item-name {
    color: var(--sc-muted);
    font-size: 0.84rem;
}

.sc-summary-tax .sc-summary-item-sum {
    color: rgba(232, 237, 247, 0.86);
}

/* Варианты доставки */
.sc-shipping-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-sm);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.sc-shipping-option + .sc-shipping-option { margin-top: 0.5rem; }

.sc-shipping-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--sc-border-strong);
}

.sc-shipping-option:has(input:checked) {
    background: var(--sc-accent-soft);
    border-color: var(--sc-accent-line);
}

.sc-shipping-option .form-check-input { margin: 0; flex: 0 0 auto; }

.sc-shipping-option label {
    flex: 1 1 auto;
    margin: 0;
    cursor: pointer;
    font-size: 0.92rem;
}

.sc-shipping-cost { color: #fff; font-weight: 600; white-space: nowrap; }

/* Варианты оплаты */
.sc-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-sm);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.sc-payment-option + .sc-payment-option { margin-top: 0.5rem; }

.sc-payment-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--sc-border-strong);
}

.sc-payment-option:has(input:checked) {
    background: var(--sc-accent-soft);
    border-color: var(--sc-accent-line);
}

.sc-payment-option .form-check-input { margin: 0.2rem 0 0; flex: 0 0 auto; }

.sc-payment-option label {
    flex: 1 1 auto;
    margin: 0;
    cursor: pointer;
    font-size: 0.92rem;
}

.sc-payment-name { display: block; color: #fff; font-weight: 550; }

.sc-payment-note {
    display: inline-block;
    margin-top: 0.15rem;
    color: var(--sc-muted);
    font-size: 0.78rem;
}

.sc-payment-desc {
    display: block;
    margin-top: 0.2rem;
    color: var(--sc-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Подтверждение заказа
   -------------------------------------------------------------------------- */

.sc-success {
    text-align: center;
}

.sc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1.25rem;
    color: #04121a;
    background: var(--sc-gradient);
    border-radius: 50%;
    font-size: 2.4rem;
    box-shadow: 0 16px 40px rgba(34, 199, 214, 0.35);
}

.sc-success-number {
    display: inline-block;
    margin: 0.5rem 0 1.5rem;
    padding: 0.45rem 1.1rem;
    color: var(--sc-accent-3);
    background: var(--sc-accent-soft);
    border: 1px solid var(--sc-accent-line);
    border-radius: var(--sc-radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
}

.sc-success-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Информация об оплате (редактируется в админке) */
.sc-payment-info {
    margin-top: 3rem;
    padding: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
    text-align: left;
    background:
        radial-gradient(600px 220px at 0% 0%, rgba(34, 199, 214, 0.14), transparent 70%),
        var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.15rem);
    box-shadow: var(--sc-shadow-sm);
}

.sc-payment-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    color: var(--sc-accent-3);
}

.sc-payment-head .mdi { font-size: 1.35rem; }

.sc-payment-head h2 {
    margin: 0;
    color: var(--sc-accent-3);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sc-payment-body {
    color: rgba(232, 237, 247, 0.86);
    font-size: 0.94rem;
    line-height: 1.65;
}

.sc-payment-body > :last-child { margin-bottom: 0; }

.sc-info-block {
    position: relative;
    height: 100%;
    padding: 1.4rem 1.5rem;
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(34, 199, 214, 0.1), transparent 70%),
        var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.15rem);
    box-shadow: var(--sc-shadow-sm);
}

.sc-info-block h3,
.sc-info-block h5 {
    margin-bottom: 0.9rem;
    color: var(--sc-accent-3);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Заголовок блока со значением справа (статус, трек-номер) */
.sc-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.sc-info-head h5 {
    margin-bottom: 0;
}

.sc-summary-items.is-flat {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* Разделитель между составом заказа и налогами */
.sc-summary-divider {
    height: 1px;
    margin: 0.85rem 0;
    background: var(--sc-border);
}

/* Пунктирный разделитель между товарами/доставкой и налогами */
.sc-summary-divider.is-dashed {
    height: 0;
    background: none;
    border-top: 1px dashed var(--sc-border);
}

.sc-info-row {
    margin-bottom: 0.45rem;
    color: rgba(232, 237, 247, 0.9);
    font-size: 0.9rem;
}

.sc-info-row span:not(.sc-status-badge):not(.badge) { color: var(--sc-muted); }

/* --------------------------------------------------------------------------
   Аккаунт
   -------------------------------------------------------------------------- */

.sc-auth {
    max-width: 460px;
    margin: 0 auto;
}

.sc-auth-wide { max-width: 660px; }

.sc-auth .card-body { padding: 2rem; }

.sc-auth-title {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.sc-auth-sub {
    margin-bottom: 1.75rem;
    color: var(--sc-muted);
    font-size: 0.9rem;
}

.sc-auth-alt {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    color: var(--sc-muted);
    font-size: 0.88rem;
    text-align: center;
    border-top: 1px solid var(--sc-border);
}

.sc-auth-link {
    color: var(--sc-accent-3);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.sc-auth-link:hover {
    color: var(--sc-accent-2);
    text-decoration: underline;
}

.sc-dash-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-dash-card:hover {
    transform: translateY(-4px);
    color: inherit;
    border-color: var(--sc-accent-line);
    box-shadow: var(--sc-shadow);
}

.sc-dash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    color: var(--sc-accent-3);
    background: var(--sc-accent-soft);
    border: 1px solid var(--sc-accent-line);
    border-radius: 0.9rem;
    font-size: 1.4rem;
}

.sc-dash-title {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.sc-dash-text {
    margin: 0;
    color: var(--sc-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

/* Статусы заказов */
.sc-order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    color: rgba(232, 237, 247, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--sc-radius-pill);
    font-size: 0.78rem;
    font-weight: 550;
}

/* Трек-номер заказа */
.sc-track-number {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    color: var(--sc-accent-3);
    background: var(--sc-accent-soft);
    border: 1px solid var(--sc-accent-line);
    border-radius: var(--sc-radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Пустые состояния
   -------------------------------------------------------------------------- */

.sc-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--sc-border-strong);
    border-radius: var(--sc-radius);
}

.sc-empty-icon {
    margin-bottom: 0.75rem;
    color: rgba(147, 160, 186, 0.7);
    font-size: 2.5rem;
}

.sc-empty-text {
    margin-bottom: 1.25rem;
    color: var(--sc-muted);
}

/* --------------------------------------------------------------------------
   Регистрация: сообщение об успехе
   -------------------------------------------------------------------------- */

.sc-register-success-icon {
    flex: 0 0 auto;
    color: var(--sc-accent-3);
    font-size: 1.4rem;
    line-height: 1;
}

.sc-receipt-link {
    color: var(--sc-accent-3);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Страница 404
   -------------------------------------------------------------------------- */
.sc-error-page {
    display: flex;
    justify-content: center;
    padding: clamp(1.5rem, 1rem + 3vw, 3.5rem) 0;
}

.sc-error-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    overflow: hidden;
    padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
    text-align: center;
    background:
        radial-gradient(520px 260px at 85% -20%, rgba(34, 199, 214, 0.2), transparent 70%),
        linear-gradient(150deg, rgba(17, 22, 38, 0.94), rgba(7, 10, 22, 0.94));
    border: 1px solid var(--sc-border);
    border-radius: calc(var(--sc-radius) + 0.25rem);
    box-shadow: var(--sc-shadow);
}

.sc-error-code {
    color: rgba(127, 227, 234, 0.14);
    font-size: clamp(5rem, 4rem + 8vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.85;
}

.sc-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: -1.1rem auto 1.1rem;
    color: var(--sc-accent-3);
    background: var(--sc-accent-soft);
    border: 1px solid var(--sc-accent-line);
    border-radius: 50%;
    font-size: 2rem;
}

.sc-error-title {
    margin-bottom: 0.6rem;
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
    font-weight: 650;
}

.sc-error-text {
    margin-bottom: 0.4rem;
    color: var(--sc-text);
    font-size: 1rem;
}

.sc-error-hint {
    margin-bottom: 1.6rem;
    color: var(--sc-muted);
    font-size: 0.9rem;
}

.sc-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Адаптивность
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .sc-hero { padding: 1.75rem 1.25rem; }
    .sc-cart-checkout { justify-content: stretch; }
    .sc-cart-checkout .btn { width: 100%; }
    .sc-cart-actions { flex-direction: column; align-items: stretch; }
    .sc-cart-actions .btn { width: 100%; }
    .sc-product-price { font-size: 1.05rem; }
}
