/* =======================================================
   1. BASE
   ======================================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

/* =======================================================
   2. BACKGROUND
   ======================================================= */

body {
    background-color: #0f1117 !important;
    background-image: url('/static/cab/hero-background-4k.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    color: rgba(255,255,255,0.95);
}

/* =======================================================
   3. HEADER (SAFE)
   ======================================================= */

#page-header,
#page-header .content-header,
.overlay-header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
    background: transparent !important;
    border: none !important;
}

#page-header .nav-link {
    color: rgba(255,255,255,0.95) !important;
    background: transparent !important;
}

/* =======================================================
   4. GLASS UI — ПРОЗРАЧНОСТЬ 0.4
   ======================================================= */

.block,
.card,
.panel,
.modal-content,
.alert,
.table,
.list-group-item,
.dropdown-menu,
.input-group,
.options-overlay,
.sidebar-content,
.content-side,
.content-header,
.shop-item .block-content,
.shop-item .block-content-full {
    background: rgba(18, 22, 33, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.95) !important;
}

.block .block,
.modal-content .block,
.dropdown-menu .dropdown-item {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* =======================================================
   5. BLOCK HEADER FIX
   ======================================================= */

.block-header,
.block-header-default {
    background: rgba(18, 22, 33, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.block-title {
    color: #ffffff !important;
}

/* =======================================================
   6. REMOVE BOOTSTRAP BLUE SYSTEM
   ======================================================= */

.text-primary,
a.text-primary {
    color: rgba(255,255,255,0.95) !important;
}

/* =======================================================
   7. NAV TABS — КОМПАКТНЫЕ И АДАПТИВНЫЕ
   ======================================================= */

.nav-tabs,
.nav-tabs-block,
.nav-tabs.nav-tabs-block,
.nav.nav-tabs,
.nav.nav-tabs-block,
ul.nav-tabs,
ul.nav-tabs-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: transparent !important;
    flex-wrap: wrap !important;
}

.nav-tabs .nav-link,
.nav-tabs-block .nav-link,
.nav-tabs .nav-item .nav-link,
.nav-tabs-block .nav-item .nav-link,
.nav-tabs > li > a,
.nav-tabs-block > li > a,
.nav-tabs .nav-link:not(.active),
.nav-tabs-block .nav-link:not(.active) {
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    margin-right: 2px !important;
    padding: 6px 10px !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs-block .nav-link:hover,
.nav-tabs .nav-item:hover .nav-link,
.nav-tabs-block .nav-item:hover .nav-link,
.nav-tabs > li > a:hover,
.nav-tabs-block > li > a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.nav-tabs .nav-link.active,
.nav-tabs-block .nav-link.active,
.nav-tabs .nav-item.active .nav-link,
.nav-tabs-block .nav-item.active .nav-link,
.nav-tabs > li.active > a,
.nav-tabs-block > li.active > a {
    background: rgba(59, 130, 246, 0.3) !important;
    background-color: rgba(59, 130, 246, 0.3) !important;
    color: #ffffff !important;
    border-bottom: 2px solid #3b82f6 !important;
}

.nav-tabs .nav-link.active:hover,
.nav-tabs-block .nav-link.active:hover {
    background: rgba(59, 130, 246, 0.4) !important;
    background-color: rgba(59, 130, 246, 0.4) !important;
}

.nav-tabs .nav-link:focus,
.nav-tabs-block .nav-link:focus,
.nav-tabs .nav-link:focus-visible,
.nav-tabs-block .nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.nav-tabs .nav-link.bg-white,
.nav-tabs .nav-link.bg-light,
.nav-tabs-block .nav-link.bg-white,
.nav-tabs-block .nav-link.bg-light,
.nav-tabs .nav-item.bg-white,
.nav-tabs-block .nav-item.bg-white {
    background: transparent !important;
    background-color: transparent !important;
}

/* =======================================================
   8. NAV PILLS
   ======================================================= */

.nav-pills .nav-link {
    background: transparent !important;
    color: rgba(255,255,255,0.85) !important;
}

.nav-pills .nav-link:hover {
    background: rgba(255,255,255,0.1) !important;
}

.nav-pills .nav-link.active {
    background: rgba(59,130,246,0.3) !important;
    color: #ffffff !important;
}

/* =======================================================
   9. BUTTONS — ПОЛНЫЙ ПЕРЕХВАТ ВСЕХ ТИПОВ
   ======================================================= */

.btn,
[class*="btn-"],
[class*="btn-outline-"],
[class*="btn-alt-"],
[class*="btn-dual-"],
.btn-group .btn,
.dropdown-menu .btn,
.toolbar .btn,
.modal-footer .btn,
.input-group .btn,
.page-link {
    background-color: rgba(30, 35, 45, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
}

.btn-primary,
.btn-alt-primary,
.btn-success,
.btn-alt-success,
.btn-info,
.btn-alt-info,
.submit-form,
.btn-create-account {
    background-color: rgba(59, 130, 246, 0.7) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.btn-secondary,
.btn-alt-secondary,
.btn-dual-secondary {
    background-color: rgba(75, 85, 99, 0.7) !important;
}

.btn-danger,
.btn-alt-danger {
    background-color: rgba(239, 68, 68, 0.7) !important;
}

.btn-warning,
.btn-alt-warning {
    background-color: rgba(245, 158, 11, 0.7) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-light {
    background-color: transparent !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.btn-light,
.btn-default,
.btn-white,
.btn-outline-light {
    background-color: rgba(30, 35, 45, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.btn.show,
[class*="btn-"]:hover,
[class*="btn-"]:focus,
[class*="btn-"]:active {
    transform: translateY(-2px) !important;
    filter: brightness(1.15) !important;
    outline: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.btn:disabled,
.btn.disabled,
[class*="btn-"]:disabled {
    opacity: 0.5 !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4) !important;
}

.btn-circle,
.btn-icon {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.btn-create-account {
    background-color: rgba(59, 130, 246, 0.8) !important;
    border-radius: 30px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

td .btn + .btn,
.btn.min-width-125 + .btn.min-width-125 {
    margin-left: 8px !important;
}

/* =======================================================
   10. ПРИНУДИТЕЛЬНОЕ ЗАТЕМНЕНИЕ СВЕТЛЫХ ФОНОВ
   ======================================================= */

.bg-white,
.bg-light,
.bg-body-light,
.bg-body,
.bg-default,
[class*="bg-white"],
[class*="bg-light"],
.shop-item .bg-body-light,
.shop-item .bg-white,
.block-content-full.bg-body-light,
.options-container .bg-white,
.options-overlay.bg-white,
.nav-tabs .nav-link.bg-white,
.nav-pills .nav-link.bg-white {
    background-color: rgba(18, 22, 33, 0.4) !important;
    color: #ffffff !important;
}

/* =======================================================
   11. TEXT SYSTEM — УСИЛЕННЫЕ ТЕНИ ДЛЯ ЧИТАЕМОСТИ
   ======================================================= */

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

p, span, div, li, label {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

a:not(.btn):not(.shop-item) {
    color: #b0c7ff !important;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
a:not(.btn):hover {
    color: #d6e4ff !important;
}

/* =======================================================
   FIX FOR SHOP HEADINGS (text-black / text-muted)
   ======================================================= */
.text-black,
h2.text-black,
.font-w700.text-black {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.text-muted,
h3.text-muted,
.h5.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Жирный текст и заголовки, которые могли остаться тёмными */
strong, b,
.font-w600, .font-w700, .font-w800,
.text-black, .text-dark,
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Логотип и тёмные акцентные тексты */
.text-dual-primary-dark,
.font-size-xl.text-dual-primary-dark,
.content-header-item .text-dual-primary-dark,
.sidebar .text-dual-primary-dark,
a .text-dual-primary-dark {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* =======================================================
   12. TABLES
   ======================================================= */

.table tbody tr {
    background: rgba(18, 22, 33, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
.table-hover tbody tr:hover td,
.table tbody tr:hover td,
.table-hover tbody tr:hover th,
.table tbody tr:hover th {
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

/* =======================================================
   13. BADGES
   ======================================================= */

.badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* =======================================================
   14. INPUTS
   ======================================================= */

input,
select,
textarea,
.form-control {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* =======================================================
   15. FOOTER
   ======================================================= */

#page-footer,
#page-footer a,
#page-footer span,
#page-footer div {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* =======================================================
   16. SIDEBAR NAVIGATION
   ======================================================= */

.sidebar-inverse .nav-main .nav-link,
.sidebar-inverse .nav-main a {
    color: #ddd !important;
    background: transparent !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.sidebar-inverse .nav-main .nav-link:hover,
.sidebar-inverse .nav-main a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

/* =======================================================
   17. DROPDOWN MENU FIX
   ======================================================= */

.dropdown-menu {
    background: rgba(18, 22, 33, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.dropdown-item {
    color: #fff !important;
    background: transparent !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* =======================================================
   18. MISCELLANEOUS
   ======================================================= */

.grid-item {
    transition: none;
}
.block-content-full {
    padding: 1rem !important;
}
.modal-content {
    background: rgba(18, 22, 33, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.options-container .options-overlay {
    background: rgba(18, 22, 33, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.shop-item .block-content {
    background: transparent !important;
}
.shop-name {
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

#main-container,
.content-full {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* =======================================================
   19. CHECKBOXES & RADIOS — ВИДИМЫЕ, ТЁМНЫЕ, КОРРЕКТНОЕ ВЫРАВНИВАНИЕ
   ======================================================= */

/* Восстанавливаем стандартный отступ контейнера Bootstrap */
.custom-control,
.custom-checkbox,
.custom-radio,
.form-check {
    position: relative;
    display: block;
    padding-left: 1.75rem;   /* стандарт Bootstrap */
    min-height: 1.5rem;
    margin-bottom: 0;
}

/* Стилизуем сам input – он остаётся абсолютно спозиционированным,
   но мы делаем его видимым и красивым */
.custom-control-input,
.form-check-input {
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(18, 22, 33, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Радио — круглое */
.custom-radio .custom-control-input {
    border-radius: 50% !important;
}

/* Checked */
.custom-control-input:checked,
.form-check-input:checked {
    background: rgba(59, 130, 246, 0.5) !important;
    border-color: #3b82f6 !important;
}

/* Галочка чекбокса */
.custom-control-input:checked::after,
.form-check-input:checked::after {
    content: '\f00c' !important;
    font-family: 'FontAwesome', 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    color: #fff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Точка радио */
.custom-radio .custom-control-input:checked::after {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    background: #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Метка — убираем стандартные псевдоэлементы Bootstrap и даём правильный отступ */
.custom-control-label,
.form-check-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    display: inline-block;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    padding-left: 0;            /* убираем лишний отступ */
}

/* Скрываем родные псевдоэлементы Bootstrap (они больше не нужны) */
.custom-control-label::before,
.custom-control-label::after,
.form-check-label::before,
.form-check-label::after {
    display: none !important;
    content: none !important;
}

/* Hover и Focus */
.custom-control-input:hover,
.form-check-input:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.custom-control-input:focus,
.form-check-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4) !important;
}

/* =======================================================
   20. INPUT GROUP TEXT (AC)
   ======================================================= */

.input-group-text {
    background: rgba(30, 35, 45, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
}
.input-group .form-control {
    border-right: none;
}
.input-group .input-group-text + .form-control {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.input-group .form-control + .input-group-text {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.input-group-text i,
.input-group-text svg {
    color: inherit;
}

/* =======================================================
   21. ION.RANGESLIDER — ТЁМНАЯ ТЕМА
   ======================================================= */

.irs-line {
    background: rgba(18, 22, 33, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
    height: 8px;
}
.irs-bar {
    background: rgba(59, 130, 246, 0.7) !important;
    border: none !important;
    height: 8px;
    border-radius: 4px;
}
.irs-bar-edge {
    background: rgba(59, 130, 246, 0.7) !important;
    border: none !important;
}
.irs-slider {
    background: #3b82f6 !important;
    border: 2px solid #ffffff !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}
.irs-slider:hover {
    background: #2563eb !important;
}
.irs-slider.state_hover,
.irs-slider:hover {
    transform: scale(1.1);
}
.irs-min,
.irs-max,
.irs-from,
.irs-to,
.irs-single {
    background: rgba(30, 35, 45, 0.8) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
}
.irs-grid-pol {
    background: rgba(255, 255, 255, 0.3) !important;
}
.irs-grid-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.irs-grid-pol.small {
    background: rgba(255, 255, 255, 0.15) !important;
}
.irs-shadow {
    display: none;
}

/* =======================================================
   22. LANGUAGE SELECT AS ROUNDED BUTTON
   ======================================================= */

#change_lang {
    background-color: rgba(30, 35, 45, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    padding: 0 30px 0 16px !important;
    height: 36px !important;
    line-height: 34px !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    transition: all 0.2s ease !important;
}

#change_lang:hover {
    background-color: rgba(59, 130, 246, 0.7) !important;
    border-color: #3b82f6 !important;
}

#change_lang option {
    background: rgba(18, 22, 33, 0.95) !important;
    color: #ffffff !important;
}

/* =======================================================
   23. DISCOUNT MODAL STYLES
   ======================================================= */

.discount-modal .modal-content {
    background: rgba(18, 22, 33, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.discount-table {
    width: 100%;
    color: #fff;
    border-collapse: collapse;
}

.discount-table th,
.discount-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.discount-table th {
    background: rgba(59,130,246,0.3);
    font-weight: 600;
}

.discount-table tr.current-level {
    background: rgba(59,130,246,0.4);
    font-weight: bold;
    border-left: 3px solid #3b82f6;
}

.discount-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.discount-summary {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

/* =======================================================
   24. МАГАЗИН — редизайн карточек товаров
   Прозрачный фон за картинкой, компактная раскладка:
   карточка перестаёт быть «плашкой», арт лежит прямо на фоне,
   подписи — на одной общей полупрозрачной подложке.
   ======================================================= */

/* Карточка: без плашки, рамки и тени; при наведении — лёгкий подъём */
a.shop-item.block,
a.shop-item.block:focus,
a.shop-item.block:active {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-radius: 14px !important;
    padding: 0 !important;
    transition: transform .22s ease, box-shadow .22s ease;
}
a.shop-item.block:hover {
    background: none !important;
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45) !important;
}

/* Зона картинки: прозрачная и фиксированной высоты,
   чтобы карточки не растягивались на всю высоту ряда */
a.shop-item .shop-img-wrp {
    flex: 0 0 auto !important;
    height: 238px !important;
    padding: 6px 6px 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
a.shop-item .shop-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform .25s ease, filter .25s ease;
}
a.shop-item:hover .shop-img {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55));
}

/* Подписи: убираем рамки-«коробки» у блоков */
a.shop-item .block-content,
a.shop-item .block-content-full {
    border: 0 !important;
    border-radius: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Название и цена — одна общая подложка под картинкой */
a.shop-item .shop-name {
    background: rgba(18, 22, 33, .5) !important;
    padding: 12px 15px 8px !important;
    min-height: 0 !important;
}
a.shop-item .shop-name > div {
    font-size: 1.160714286rem !important;   /* было .font-size-sm = 0.928571429rem, +25% */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
a.shop-item .shop-price {
    background: rgba(18, 22, 33, .5) !important;
    padding: 5px 15px 12px !important;
    border-radius: 0 0 12px 12px !important;
}
a.shop-item .shop-price .font-w600,
a.shop-item .shop-price > div {
    font-size: 1.25rem !important;          /* было 1rem, +25% */
    color: #e8d3a0 !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
}

/* =======================================================
   25. МАГАЗИН — плотная сетка товаров
   Вместо 4 широких Bootstrap-колонок (col-xl-3 ≈ 450 px)
  адаптивная сетка: столько колонок, сколько влезает при ширине
   карточки ~200 px. Контейнер .row.items-push на странице
   магазина только один — правим его напрямую.
   ======================================================= */

.row.items-push {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)) !important;
    gap: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: start;
}

.row.items-push > [data-category] {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

/* карточка по контенту, без растягивания на высоту ряда */
.row.items-push > [data-category] > .shop-item {
    height: auto !important;
}

/* на телефонах — две карточки в ряд и арт чуть ниже */
@media (max-width: 479px) {
    .row.items-push {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    a.shop-item .shop-img-wrp {
        height: 185px !important;
    }
    a.shop-item .shop-name {
        padding: 9px 10px 5px !important;
    }
    a.shop-item .shop-price {
        padding: 4px 10px 10px !important;
    }
}
/* =======================================================
   Подписи под иконками методов оплаты (СБП QR, Visa/MC и т.п.)
   ======================================================= */

.payment-method-note {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    opacity: 0.75;
}

/* public pages in this shell: their own picture (rating — the golden king, shop — the armoured knight) */
body.bg-king, body.bg-knight { background-image: linear-gradient(180deg, rgba(15, 17, 23, .55), rgba(15, 17, 23, .82)), var(--page-scene) !important; }
body.bg-king { --page-scene: url('/static/orig/images/scenes/king.webp'); background-position: center 30% !important; }
body.bg-knight { --page-scene: url('/static/orig/images/scenes/knight.webp'); background-position: center 30% !important; }
