/* ============================================================
   КНОПКА — суффикс knopka1
   Скос по диагонали: левый верх + правый низ
   ============================================================ */

.knopka1 {
    /* --- Настройки (можно менять) --- */
    --btn-green:      #00FF41;
    --btn-green-dark: #00AA2A;
    --btn-bg:         rgba(0, 255, 65, 0.06);
    --btn-bg-hover:   #00FF41;
    --btn-text:       #00FF41;
    --btn-text-hover: #000000;
    --btn-chamfer:    12px;   /* размер скоса */
    --btn-border-w:   2px;    /* толщина рамки */
    /* --- Геометрия --- */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Форма со скосом слева-сверху и справа-снизу */
    clip-path: polygon(
        var(--btn-chamfer) 0,
        100% 0,
        100% calc(100% - var(--btn-chamfer)),
        calc(100% - var(--btn-chamfer)) 100%,
        0 100%,
        0 var(--btn-chamfer)
    );

    /* --- Оформление --- */
    background: var(--btn-bg);
    border: none;
    color: var(--btn-text);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;

    /* --- Рамка через inset-тень по контуру --- */
    box-shadow:
        inset 0 0 0 var(--btn-border-w) var(--btn-green),
        0 0 12px rgba(0, 255, 65, 0.25);
}

/* --- Внутренний «теневой» слой, чтобы обводка идеально легла по скосу --- */
.knopka1::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--btn-green);
    clip-path: polygon(
        var(--btn-chamfer) 0,
        100% 0,
        100% calc(100% - var(--btn-chamfer)),
        calc(100% - var(--btn-chamfer)) 100%,
        0 100%,
        0 var(--btn-chamfer)
    );
    /* Прозрачный центр — работает как «рамка» */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: var(--btn-border-w);
    transition: background 0.25s ease;
}

/* --- Hover --- */
.knopka1:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-text-hover);
    box-shadow:
        inset 0 0 0 var(--btn-border-w) var(--btn-green),
        0 0 20px rgba(0, 255, 65, 0.75),
        0 0 40px rgba(0, 255, 65, 0.25);
    transform: translateY(-2px);
}

.knopka1:hover::before {
    background: var(--btn-green);
}

/* --- Активное нажатие --- */
.knopka1:active {
    transform: translateY(0);
}

/* --- Фокус для доступности --- */
.knopka1:focus-visible {
    outline: none;
    box-shadow:
        inset 0 0 0 var(--btn-border-w) var(--btn-green),
        0 0 0 2px rgba(0, 255, 65, 0.4),
        0 0 20px rgba(0, 255, 65, 0.55);
}

/* --- Адаптив --- */
@media (max-width: 480px) {
    .knopka1 {
        font-size: 0.8rem;
        letter-spacing: 1px;
        --btn-chamfer: 10px;
    }
}

/* --- Уважение к системным настройкам --- */
@media (prefers-reduced-motion: reduce) {
    .knopka1 { transition: none; }
    .knopka1:hover { transform: none; }
}

/* ============================================================
   RAMKA — суффикс ramka1
   Обводка по периметру + 2 ярких угла (диагональ)
   ============================================================ */

/* Контейнер */
.ramka1 {
    position: relative !important;
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.35) !important;
    box-shadow: inset 0 0 18px rgba(0, 255, 65, 0.03);
    box-sizing: border-box;
    /* КРИТИЧНО: чтобы углы не обрезались родителем */
    overflow: visible !important;
}

.ramka1 *,
.ramka1 *::before,
.ramka1 *::after { box-sizing: border-box; }

/* Верхний левый угол */
.ramka1::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    width: 16px !important;
    height: 16px !important;
    border-top: 2px solid #00FF41 !important;
    border-left: 2px solid #00FF41 !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: 999 !important;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.7));
}

/* Нижний правый угол */
.ramka1::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 16px !important;
    height: 16px !important;
    border-bottom: 2px solid #00FF41 !important;
    border-right: 2px solid #00FF41 !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: 999 !important;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.7));
}

/* Hover — свечение усиливается */
.ramka1:hover {
    border-color: #00FF41 !important;
    box-shadow:
        inset 0 0 20px rgba(0, 255, 65, 0.08),
        0 0 16px rgba(0, 255, 65, 0.25);
}

/* Адаптив */
@media (max-width: 480px) {
    .ramka1 { padding: 14px !important; }
    .ramka1::before,
    .ramka1::after { width: 12px !important; height: 12px !important; }
}


/* ============================================================
   ФОРМА ЗАЯВКИ — Sfera://Kod (адаптивная)
   ============================================================ */

.swd-order {
    --swd-green:  #00FF41;
    --swd-green2: #00AA2A;
    --swd-dim:    #00661A;
    --swd-cyan:   #00D9FF;
    --swd-alert:  #FF3333;
    --swd-card:   #050805;
    --swd-mono:   'Fira Code', 'Courier New', Courier, monospace;

    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: var(--swd-card);
    border: 2px solid var(--swd-green);
    box-shadow:
        0 0 10px rgba(0, 255, 65, 0.4),
        0 0 30px rgba(0, 255, 65, 0.15);
    font-family: var(--swd-mono);
    color: var(--swd-green);
    position: relative;
    overflow: hidden;
}

.swd-order *,
.swd-order *::before,
.swd-order *::after { box-sizing: border-box; }

.swd-order::before {
    content: '';
    position: absolute;
    top: 0; left: -40%;
    width: 40%; height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 255, 65, 0.85),
        transparent);
    animation: swdOrderScan 5s linear infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes swdOrderScan {
    0%   { left: -40%; }
    100% { left: 100%; }
}

.swd-order__head {
    position: relative;
    padding: 16px 20px;
    background: #040d04;
    border-bottom: 1px solid rgba(0, 255, 65, 0.25);
    text-align: center;
}

.swd-order__lead {
    font-size: 0.75rem;
    color: var(--swd-cyan);
    letter-spacing: 0.5px;
    text-align: center;
}

.swd-order__title {
    margin: 4px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--swd-green);
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    text-align: center;
}

.swd-order__body { padding: 22px; }

.swd-order__badge {
    padding: 8px 12px;
    margin-bottom: 18px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--swd-green);
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.swd-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.swd-form__field { margin-bottom: 16px; }

.swd-form__label {
    display: block;
    margin-bottom: 8px;
    color: var(--swd-cyan) !important;
    font-family: var(--swd-mono) !important;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    font-weight: 400;
}
.swd-form__req { color: var(--swd-alert); }

.swd-order .swd-form__input,
.swd-order .swd-form__textarea,
.swd-order input[type="text"],
.swd-order input[type="tel"],
.swd-order textarea {
    display: block !important;
    width: 100% !important;
    padding: 11px 14px !important;
    background: #020402 !important;
    background-color: #020402 !important;
    border: 1px solid rgba(0, 255, 65, 0.3) !important;
    border-radius: 0 !important;
    color: var(--swd-green) !important;
    font-family: var(--swd-mono) !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.swd-order .swd-form__input:focus,
.swd-order .swd-form__textarea:focus,
.swd-order input:focus,
.swd-order textarea:focus {
    border-color: var(--swd-green) !important;
    background: #000 !important;
    background-color: #000 !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4) !important;
}

.swd-order .swd-form__input::placeholder,
.swd-order .swd-form__textarea::placeholder,
.swd-order input::placeholder,
.swd-order textarea::placeholder {
    color: rgba(0, 170, 42, 0.5) !important;
    opacity: 1 !important;
}

.swd-order .swd-form__textarea,
.swd-order textarea {
    min-height: 100px !important;
    resize: vertical;
}

.swd-form__field--check { margin-bottom: 18px; }

.swd-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--swd-green2);
    line-height: 1.5;
    cursor: pointer;
}

.swd-order .swd-form__check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--swd-green);
    flex-shrink: 0;
    width: 14px !important;
    height: 14px !important;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
}

.swd-form__status {
    min-height: 1.2rem;
    margin-bottom: 12px;
    color: var(--swd-cyan);
    font-size: 0.82rem;
}
.swd-form__status.is-error   { color: var(--swd-alert); }
.swd-form__status.is-success { color: var(--swd-green); }

.swd-order .swd-form__submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 14px 24px !important;
    background: rgba(0, 255, 65, 0.12) !important;
    border: 1px solid var(--swd-green) !important;
    border-radius: 0 !important;
    color: var(--swd-green) !important;
    font-family: var(--swd-mono) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.35) !important;
    -webkit-appearance: none;
    appearance: none;
}

.swd-order .swd-form__submit:hover:not(:disabled) {
    background: var(--swd-green) !important;
    color: #000 !important;
    box-shadow:
        0 0 14px rgba(0, 255, 65, 0.7),
        0 0 28px rgba(0, 255, 65, 0.25) !important;
}

.swd-order .swd-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Адаптив ---------- */

@media (max-width: 768px) {
    .swd-order__head { padding: 14px 16px; }
    .swd-order__title { font-size: 1.1rem; }
    .swd-order__body { padding: 18px; }
    .swd-form__field { margin-bottom: 14px; }
    .swd-order .swd-form__input,
    .swd-order .swd-form__textarea {
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
    }
}

@media (max-width: 480px) {
    .swd-order__head { padding: 12px 14px; }
    .swd-order__lead { font-size: 0.7rem; }
    .swd-order__title { font-size: 1rem; }
    .swd-order__body { padding: 14px; }
    .swd-order__badge { font-size: 0.74rem; padding: 6px 10px; }
    .swd-form__label { font-size: 0.76rem; }
    .swd-order .swd-form__input,
    .swd-order .swd-form__textarea {
        padding: 9px 12px !important;
        font-size: 0.85rem !important;
    }
    .swd-order .swd-form__submit {
        padding: 12px 16px !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.5px !important;
    }
}

/* ============================================================
   HERO — видео фоном, контент поверх
   ============================================================ */

/* Родитель, в котором лежат и видео, и контент.
   В Gridbox это либо .ba-section, либо .ba-item-wrapper.
   Мы просто задаём всем обёрткам с этими модулями position: relative. */
.ba-section:has(.swd-hero-bg-video),
.ba-wrapper:has(.swd-hero-bg-video),
body {
    position: relative;
}

/* Секция, где лежит видео — она становится контейнером */
.ba-section:has(.swd-hero-bg-video) {
    position: relative;
    overflow: hidden;
    min-height: 600px;   /* можно менять */
}

/* ---------- ВИДЕО — на заднем плане ---------- */
.swd-hero-bg-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

.swd-hero-bg-video video,
.swd-hero-bg-video .ba-video-wrapper,
.swd-hero-bg-video iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0.45;
    z-index: 0;
}

/* Тёмный слой поверх видео, чтобы текст читался */
.swd-hero-bg-video::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---------- КОНТЕНТ — поверх видео ---------- */
.swd-hero-content {
    position: relative !important;
    z-index: 10 !important;
}

/* ============================================================
   SFERA://KOD — Маркет: рамка карточек + кнопка Купить
   Суффиксы: ramkashop1, ba-blog-post-add-to-cart
   ============================================================ */

/* --- 1. РАМКА КАРТОЧКИ ТОВАРА --- */
.ramkashop1 .ba-store-item,
.ramkashop1 .ba-product-item,
.ramkashop1 .ba-store-product,
.ramkashop1 [class*="store-item"],
.ramkashop1 [class*="product-item"] {
    position: relative !important;
    border: 1px solid rgba(0, 255, 65, 0.35) !important;
    background: #060906 !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

/* Уголки */
.ramkashop1 .ba-store-item::before,
.ramkashop1 .ba-product-item::before,
.ramkashop1 .ba-store-product::before,
.ramkashop1 [class*="store-item"]::before,
.ramkashop1 [class*="product-item"]::before {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    width: 8px !important;
    height: 8px !important;
    border-top: 2px solid #00FF41 !important;
    border-left: 2px solid #00FF41 !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.ramkashop1 .ba-store-item::after,
.ramkashop1 .ba-product-item::after,
.ramkashop1 .ba-store-product::after,
.ramkashop1 [class*="store-item"]::after,
.ramkashop1 [class*="product-item"]::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 8px !important;
    height: 8px !important;
    border-bottom: 2px solid #00FF41 !important;
    border-right: 2px solid #00FF41 !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Hover */
.ramkashop1 .ba-store-item:hover,
.ramkashop1 .ba-product-item:hover,
.ramkashop1 .ba-store-product:hover,
.ramkashop1 [class*="store-item"]:hover,
.ramkashop1 [class*="product-item"]:hover {
    border-color: #00FF41 !important;
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* --- 2. КНОПКА "КУПИТЬ" (HUD-стиль) --- */
.ba-blog-post-add-to-cart,
.ba-blog-post-add-to-cart a,
button.ba-blog-post-add-to-cart,
a.ba-blog-post-add-to-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    background: rgba(0, 255, 65, 0.2) !important;
    border: 1px solid #00FF41 !important;
    color: #FFFFFF !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.45) !important;
    white-space: nowrap !important;
}

.ba-blog-post-add-to-cart:hover,
.ba-blog-post-add-to-cart a:hover,
button.ba-blog-post-add-to-cart:hover,
a.ba-blog-post-add-to-cart:hover {
    background: #00FF41 !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.75) !important;
    transform: translateY(-2px) !important;
}
/* ============================================================
   SFERA://KOD — Рамка для карточек и страниц Маркета
   Класс: .ba-store-app-product
   ============================================================ */

/* --- 1. РАМКА КАРТОЧКИ --- */
.ba-store-app-product {
    border: 1px solid rgba(0, 255, 65, 0.35) !important;
    background: #060906 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

/* Уголки: левый-верхний + правый-нижний */
.ba-store-app-product::before {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    width: 8px !important;
    height: 8px !important;
    border-top: 2px solid #00FF41 !important;
    border-left: 2px solid #00FF41 !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.ba-store-app-product::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 8px !important;
    height: 8px !important;
    border-bottom: 2px solid #00FF41 !important;
    border-right: 2px solid #00FF41 !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* Hover */
.ba-store-app-product:hover {
    border-color: #00FF41 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.35), inset 0 0 20px rgba(0, 255, 65, 0.05) !important;
}



/* --- 4. ЗАГОЛОВОК --- */
.ba-store-app-product .ba-blog-post-title,
.ba-store-app-product .ba-blog-post-title a {
    color: #00FF41 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.35) !important;
    text-decoration: none !important;
}

/* --- 5. КАТЕГОРИЯ --- */
.ba-store-app-product .ba-blog-post-category a {
    color: #00D9FF !important;
    text-decoration: none !important;
}

/* --- 6. ЗВЁЗДЫ РЕЙТИНГА --- */
.ba-store-app-product .ba-blog-post-rating-stars i {
    color: #D4AF37 !important;
}

.ba-store-app-product .ba-blog-post-rating-count {
    color: #00AA2A !important;
    text-decoration: none !important;
}

/* --- 7. ЦЕНА --- */
.ba-store-app-product .ba-blog-post-add-to-cart-price-value,
.ba-store-app-product .ba-blog-post-add-to-cart-price-currency {
    color: #D4AF37 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-weight: 800 !important;
}

/* --- 8. КНОПКА "В КОРЗИНУ" (HUD-стиль) --- */
.ba-store-app-product .ba-blog-post-add-to-cart,
.ba-blog-post-add-to-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    background: rgba(0, 255, 65, 0.2) !important;
    border: 1px solid #00FF41 !important;
    color: #FFFFFF !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.45) !important;
    white-space: nowrap !important;
}

.ba-store-app-product .ba-blog-post-add-to-cart:hover,
.ba-blog-post-add-to-cart:hover {
    background: #00FF41 !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.75) !important;
    transform: translateY(-2px) !important;
}

/* ============================================================
   SFERA://KOD — Корзина Gridbox (только дизайн)
   Позиционирование и анимации — настраиваются в Gridbox
   ============================================================ */

/* ============================================================
   1. КОРНЕВОЙ БЛОК КОРЗИНЫ
   ============================================================ */
body .ba-store-cart.ba-container {
    background: #040804 !important;
    border: 2px solid #00FF41 !important;
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.05) !important;
    padding: 24px !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    color: #00AA2A !important;
    position: relative !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
}

body .ba-store-cart.ba-container::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important; left: -2px !important;
    width: 10px !important; height: 10px !important;
    border-top: 3px solid #00FF41 !important;
    border-left: 3px solid #00FF41 !important;
    pointer-events: none !important;
}

body .ba-store-cart.ba-container::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important; right: -2px !important;
    width: 10px !important; height: 10px !important;
    border-bottom: 3px solid #00FF41 !important;
    border-right: 3px solid #00FF41 !important;
    pointer-events: none !important;
}

/* ============================================================
   2. ЗАГОЛОВОК
   ============================================================ */
body .ba-store-cart .ba-cart-headline-wrapper {
    border-bottom: 1px solid rgba(0, 255, 65, 0.25) !important;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
    padding-right: 40px !important;
}

body .ba-store-cart .ba-cart-headline {
    color: #00FF41 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.45) !important;
    letter-spacing: 1px !important;
    display: block !important;
}

body .ba-store-cart .ba-cart-headline::before {
    content: '[ КОРЗИНА ПОКУПАТЕЛЯ ]' !important;
    color: #00D9FF !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    display: block !important;
    margin-bottom: 4px !important;
    text-shadow: none !important;
}

/* ============================================================
   3. КРЕСТИК ЗАКРЫТИЯ
   ============================================================ */
body .ba-store-cart .ba-store-cart-close {
    color: #00FF41 !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.2s !important;
}

body .ba-store-cart .ba-store-cart-close:hover {
    color: #00D9FF !important;
    text-shadow: 0 0 10px #00D9FF !important;
}

/* ============================================================
   4. СПИСОК ТОВАРОВ
   ============================================================ */
body .ba-store-cart .ba-cart-products-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    overflow: visible !important;
    max-width: 100% !important;
}

/* ============================================================
   5. СТРОКА ТОВАРА
   ============================================================ */
body .ba-store-cart .ba-cart-product-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    background: #020502 !important;
    border: 1px solid rgba(0, 255, 65, 0.2) !important;
    padding: 14px !important;
    transition: all 0.2s !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body .ba-store-cart .ba-cart-product-row.row-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
}

body .ba-store-cart .ba-cart-product-row:hover {
    border-color: rgba(0, 255, 65, 0.55) !important;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.2) !important;
}

/* ============================================================
   6. ИЗОБРАЖЕНИЕ ТОВАРА
   ============================================================ */
body .ba-store-cart .ba-cart-product-image-cell {
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    background: linear-gradient(135deg, #0a1f0a, #051005) !important;
    border: 1px solid rgba(0, 255, 65, 0.3) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .ba-store-cart .ba-cart-product-image-cell img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

body .ba-store-cart .ba-cart-product-image-cell a {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
}

/* ============================================================
   7. КОНТЕНТ СПРАВА
   ============================================================ */
body .ba-store-cart .ba-cart-product-content-cell {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body .ba-store-cart .ba-cart-product-content-inner-cell {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
        "title   title"
        "price   price"
        "qty     remove" !important;
    gap: 8px 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .ba-store-cart .ba-cart-product-title-cell    { grid-area: title !important; }
body .ba-store-cart .ba-cart-product-price-cell    { grid-area: price !important; }
body .ba-store-cart .ba-cart-product-quantity-cell { grid-area: qty !important; }
body .ba-store-cart .ba-cart-product-remove-cell   { grid-area: remove !important; }

/* ============================================================
   8. НАЗВАНИЕ
   ============================================================ */
body .ba-store-cart .ba-cart-product-title {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body .ba-store-cart .ba-cart-product-title a {
    color: #00FF41 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* ============================================================
   9. ЦЕНА
   ============================================================ */
body .ba-store-cart .ba-cart-product-price-cell {
    position: static !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .ba-store-cart .ba-cart-product-price-cell .ba-cart-price-wrapper,
body .ba-store-cart .ba-cart-product-price-cell .ba-cart-price-currency,
body .ba-store-cart .ba-cart-product-price-cell .ba-cart-price-value {
    color: #D4AF37 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* ============================================================
   10. QUANTITY (− 2 +)
   ============================================================ */
body .ba-store-cart .ba-cart-product-quantity-cell {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(0, 255, 65, 0.04) !important;
    border: 1px solid rgba(0, 255, 65, 0.25) !important;
    padding: 3px 8px !important;
    width: auto !important;
    max-width: fit-content !important;
    margin: 0 !important;
}

body .ba-store-cart .ba-cart-product-quantity-cell i {
    color: #00FF41 !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    padding: 2px 6px !important;
    transition: all 0.2s !important;
    display: inline-block !important;
}

body .ba-store-cart .ba-cart-product-quantity-cell i:hover {
    color: #00D9FF !important;
    text-shadow: 0 0 8px #00D9FF !important;
}

body .ba-store-cart .ba-cart-product-quantity-cell input {
    width: 32px !important;
    background: transparent !important;
    border: none !important;
    color: #00FF41 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================================
   11. УДАЛИТЬ ТОВАР
   ============================================================ */
body .ba-store-cart .ba-cart-product-remove-cell {
    position: static !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
}

body .ba-store-cart .ba-cart-product-remove-cell i {
    color: #FF3333 !important;
    border: 1px solid rgba(255, 51, 51, 0.4) !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    transition: all 0.2s !important;
    display: inline-block !important;
    min-width: 28px !important;
    min-height: 28px !important;
    text-align: center !important;
    line-height: 1 !important;
}

body .ba-store-cart .ba-cart-product-remove-cell i:hover {
    background: #FF3333 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5) !important;
}

/* ============================================================
   12. ПУСТЫЕ ЯЧЕЙКИ
   ============================================================ */
body .ba-store-cart .ba-cart-product-info:empty,
body .ba-store-cart .ba-cart-product-field-row-wrapper:empty {
    display: none !important;
}

/* ============================================================
   13. CHECKOUT (ИТОГО + КНОПКА)
   ============================================================ */
body .ba-store-cart .ba-cart-checkout {
    border-top: 1px solid rgba(0, 255, 65, 0.25) !important;
    padding-top: 20px !important;
    margin-top: 8px !important;
    background: transparent !important;
}

body .ba-store-cart .ba-cart-checkout-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(0, 255, 65, 0.14) !important;
    margin-bottom: 16px !important;
}

body .ba-store-cart .ba-cart-checkout-total .ba-cart-checkout-title {
    color: #00661A !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-wrapper,
body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-currency,
body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-value {
    color: #D4AF37 !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body .ba-store-cart .ba-cart-checkout-includes-tax {
    display: none !important;
}

/* ============================================================
   14. КНОПКА "ОФОРМИТЬ ЗАКАЗ"
   ============================================================ */
body .ba-store-cart .ba-cart-checkout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 24px !important;
    background: rgba(0, 255, 65, 0.2) !important;
    border: 1px solid #00FF41 !important;
    color: #FFFFFF !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.45) !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

body .ba-store-cart .ba-cart-checkout-btn:hover {
    background: #00FF41 !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.75) !important;
    transform: translateY(-2px) !important;
}

/* ============================================================
   15. СКРОЛЛБАР (тонкий, зелёный)
   ============================================================ */
body .ba-store-cart::-webkit-scrollbar {
    width: 6px !important;
}
body .ba-store-cart::-webkit-scrollbar-track {
    background: transparent !important;
}
body .ba-store-cart::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3) !important;
}

/* ============================================================
   16. ПЛАНШЕТ (до 768px)
   ============================================================ */
@media (max-width: 768px) {
    body .ba-store-cart.ba-container {
        padding: 18px !important;
    }

    body .ba-store-cart .ba-cart-headline {
        font-size: 1.05rem !important;
    }
    body .ba-store-cart .ba-cart-headline::before {
        font-size: 0.65rem !important;
    }

    body .ba-store-cart .ba-cart-product-row {
        padding: 12px !important;
        gap: 12px !important;
    }

    body .ba-store-cart .ba-cart-product-image-cell {
        flex: 0 0 60px !important;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }

    body .ba-store-cart .ba-cart-product-title a {
        font-size: 0.84rem !important;
    }

    body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-wrapper,
    body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-currency,
    body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-value {
        font-size: 1.4rem !important;
    }

    body .ba-store-cart .ba-cart-checkout-btn {
        padding: 12px 18px !important;
        font-size: 0.78rem !important;
    }
}

/* ============================================================
   17. ТЕЛЕФОН (до 480px)
   ============================================================ */
@media (max-width: 480px) {
    body .ba-store-cart.ba-container {
        padding: 14px !important;
        border-width: 1px !important;
    }

    body .ba-store-cart.ba-container::before,
    body .ba-store-cart.ba-container::after {
        width: 6px !important;
        height: 6px !important;
        border-width: 2px !important;
    }

    body .ba-store-cart .ba-cart-product-row {
        padding: 10px !important;
        gap: 10px !important;
    }

    body .ba-store-cart .ba-cart-product-image-cell {
        flex: 0 0 55px !important;
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
    }

    body .ba-store-cart .ba-cart-product-title a {
        font-size: 0.82rem !important;
        white-space: normal !important;
    }

    body .ba-store-cart .ba-cart-product-quantity-cell {
        padding: 2px 6px !important;
    }
    body .ba-store-cart .ba-cart-product-quantity-cell input {
        width: 28px !important;
    }

    body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-wrapper,
    body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-currency,
    body .ba-store-cart .ba-cart-checkout-total .ba-cart-price-value {
        font-size: 1.25rem !important;
    }

    body .ba-store-cart .ba-cart-checkout-btn {
        padding: 12px 16px !important;
        font-size: 0.75rem !important;
    }

    body .ba-store-cart .ba-cart-headline {
        font-size: 0.95rem !important;
    }
    body .ba-store-cart .ba-cart-headline::before {
        font-size: 0.6rem !important;
    }
}

/* ============================================================
   SFERA://KOD — Кнопка "Сделать заказ" (HUD)
   ============================================================ */

.ba-checkout-place-order-btn,
.ba-checkout-place-order-btn span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: rgba(0, 255, 65, 0.2) !important;
    border: 1px solid #00FF41 !important;
    color: #FFFFFF !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px) !important;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.45) !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    text-shadow: none !important;
    margin: 0 !important;
    text-decoration: none !important;
}

/* Убираем стили внутреннего span, чтобы не дублировались */
.ba-checkout-place-order-btn > span {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    clip-path: none !important;
    font: inherit !important;
    color: inherit !important;
    letter-spacing: inherit !important;
}

/* Hover */
.ba-checkout-place-order-btn:hover {
    background: #00FF41 !important;
    color: #000000 !important;
    box-shadow: 0 0 24px rgba(0, 255, 65, 0.85) !important;
    transform: translateY(-2px) !important;
}

.ba-checkout-place-order-btn:hover span {
    color: #000000 !important;
}

/* Active (нажатие) */
.ba-checkout-place-order-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.6) !important;
}

/* Фокус (доступность) */
.ba-checkout-place-order-btn:focus,
.ba-checkout-place-order-btn:focus-visible {
    outline: 2px solid #00D9FF !important;
    outline-offset: 2px !important;
}

/* Мобильный адаптив */
@media (max-width: 768px) {
    .ba-checkout-place-order-btn {
        padding: 14px 20px !important;
        font-size: 0.82rem !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 480px) {
    .ba-checkout-place-order-btn {
        padding: 12px 16px !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.5px !important;
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
    }
}