body[data-admin-ui="true"] {
    color-scheme: dark;
}

body[data-admin-ui="true"] .main-content,
body[data-admin-ui="true"] .admin-card,
body[data-admin-ui="true"] .admin-card-body,
body[data-admin-ui="true"] .admin-table,
body[data-admin-ui="true"] .admin-table tbody tr,
body[data-admin-ui="true"] .admin-table tbody td,
body[data-admin-ui="true"] .admin-table tbody td div,
body[data-admin-ui="true"] .admin-table tbody td span,
body[data-admin-ui="true"] .admin-table tbody td small,
body[data-admin-ui="true"] .badge-count,
body[data-admin-ui="true"] .alert,
body[data-admin-ui="true"] .alert strong {
    color: #f0f0f0 !important;
    -webkit-text-fill-color: #f0f0f0 !important;
}

body[data-admin-ui="true"] .admin-table tbody td a:not(.btn-tbl-edit):not(.btn-tbl-delete):not(.btn-admin-primary):not(.btn-cancel):not(.btn-back),
body[data-admin-ui="true"] .admin-table tbody td a:not(.btn-tbl-edit):not(.btn-tbl-delete):not(.btn-admin-primary):not(.btn-cancel):not(.btn-back):visited,
body[data-admin-ui="true"] .main-content a:not(.btn-admin-primary):not(.btn-cancel):not(.btn-back):not(.btn-tbl-edit):not(.btn-tbl-delete),
body[data-admin-ui="true"] .main-content a:not(.btn-admin-primary):not(.btn-cancel):not(.btn-back):not(.btn-tbl-edit):not(.btn-tbl-delete):visited {
    color: #f0f0f0 !important;
    -webkit-text-fill-color: #f0f0f0 !important;
    text-decoration-color: rgba(240, 240, 240, 0.35);
}

body[data-admin-ui="true"] .text-muted,
body[data-admin-ui="true"] .admin-table .text-muted,
body[data-admin-ui="true"] .admin-table td.text-muted,
body[data-admin-ui="true"] .admin-table td .text-muted,
body[data-admin-ui="true"] .admin-table td a.text-muted,
body[data-admin-ui="true"] .admin-table td a.text-muted:visited,
body[data-admin-ui="true"] .page-header .text-muted,
body[data-admin-ui="true"] .empty-state p {
    color: #a1a1aa !important;
    -webkit-text-fill-color: #a1a1aa !important;
}

body[data-admin-ui="true"] .admin-table tbody tr,
body[data-admin-ui="true"] .root-card .table tbody tr,
body[data-admin-ui="true"] .root-card .table tbody td {
    background: #141414 !important;
}

body[data-admin-ui="true"] .admin-table tbody tr:hover,
body[data-admin-ui="true"] .root-card .table-hover > tbody > tr:hover > td,
body[data-admin-ui="true"] .root-card .table-hover > tbody > tr:hover > th {
    background: #1c1c1c !important;
}

body[data-admin-ui="true"] .alert-success * ,
body[data-admin-ui="true"] .alert-danger * {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

body[data-admin-ui="true"] input,
body[data-admin-ui="true"] select,
body[data-admin-ui="true"] textarea {
    -webkit-text-fill-color: #f0f0f0;
    caret-color: #f0f0f0;
}

.preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.inline-loading-spinner {
    display: none;
    width: 1em;
    height: 1em;
    margin-left: 0.55rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: inline-loading-spin 0.75s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

button.is-loading,
input.is-loading,
.btn-admin-primary.is-loading,
.btn-cancel.is-loading,
.btn-confirm-delete.is-loading,
.vs-btn.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

button.is-loading .inline-loading-spinner,
.btn-admin-primary.is-loading .inline-loading-spinner,
.btn-cancel.is-loading .inline-loading-spinner,
.btn-confirm-delete.is-loading .inline-loading-spinner,
.vs-btn.is-loading .inline-loading-spinner {
    display: inline-block;
}

.btn-tbl-edit.is-loading,
.btn-tbl-delete.is-loading {
    width: 34px;
    opacity: 1;
}

.btn-tbl-edit.is-loading .inline-loading-spinner,
.btn-tbl-delete.is-loading .inline-loading-spinner {
    display: inline-block;
    margin-left: 0;
}

body[data-site-ui="true"] .form-messages.success,
body[data-site-ui="true"] .alert-success {
    color: #166534;
}

body[data-site-ui="true"] .form-messages.error,
body[data-site-ui="true"] .alert-danger,
body[data-site-ui="true"] .text-danger {
    color: #b91c1c;
}

.form-feedback {
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-feedback[data-form-feedback] {
    will-change: opacity, transform;
}

.form-feedback-progress {
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: currentColor;
    opacity: 0.35;
    transform-origin: left center;
    transform: scaleX(0);
}

.form-feedback.feedback-countdown-active .form-feedback-progress {
    animation: form-feedback-progress var(--feedback-duration, 3000ms) linear forwards;
}

@keyframes inline-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes form-feedback-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.legal-page__summary {
    max-width: 920px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--body-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-page__grid {
    display: grid;
    gap: 24px;
}

.legal-page__card {
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.legal-page__heading {
    margin-bottom: 16px;
    color: var(--title-color);
}

.legal-page__card p:last-of-type,
.legal-page__list:last-child {
    margin-bottom: 0;
}

.legal-page__list {
    margin: 18px 0 0;
    padding-left: 20px;
}

.legal-page__list li {
    margin-bottom: 10px;
    color: var(--body-color);
    line-height: 1.75;
}

@media (max-width: 767px) {
    .legal-page__card {
        padding: 22px;
        border-radius: 18px;
    }
}

.product-brand-grid {
    row-gap: 24px;
}

.product-brand-card {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

.product-brand-card__header {
    min-height: 150px;
    margin-bottom: 0;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, #fbfbfb 0%, #f1f1f1 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-brand-card__header a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.product-brand-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 68px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #151515 0%, #2d2d2d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 24px rgba(15, 23, 42, 0.14);
}

.product-brand-card__header img {
    width: auto !important;
    max-width: 88px !important;
    max-height: 34px !important;
    object-fit: contain;
}

.product-brand-card__header h4 {
    margin: 0;
    color: var(--title-color);
    font-family: var(--title-font);
    font-size: 1rem;
    text-align: center;
}

.products-brand-item--selected .product-brand-card__header,
.product-brand-card:hover .product-brand-card__header {
    border-color: rgba(181, 0, 7, 0.2);
    box-shadow: 0 14px 28px rgba(181, 0, 7, 0.08);
    transform: translateY(-2px);
}

.product-brand-card:hover .product-brand-card__header h4,
.products-brand-item--selected .product-brand-card__header h4 {
    color: var(--secondary-color);
}

.products-brand-tree {
    margin: 0;
    padding: 14px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0 0 22px 22px;
    display: grid;
    gap: 10px;
}

.products-brand-tree--mobile {
    border-radius: 22px;
    margin-top: 18px;
}

.products-category-item {
    list-style: none;
}

.products-category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8f8f8 0%, #f1f1f1 100%);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.products-category-item--has-children > .products-category-row {
    cursor: pointer;
}

.products-category-item--selected > .products-category-row,
.products-category-item:hover > .products-category-row {
    border-color: rgba(181, 0, 7, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f7f2f2 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.products-category-link {
    flex: 1;
    color: var(--title-color);
    font-family: var(--title-font);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    white-space: normal;
}

.products-category-link:hover,
.products-category-link.is-active {
    color: var(--secondary-color);
}

.products-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 12px;
    background: rgba(181, 0, 7, 0.12);
    color: #7f0a0a;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.products-category-toggle::before {
    content: "\203a";
    font-size: 1.25rem;
    line-height: 1;
    transform: rotate(90deg);
}

.products-category-item--open > .products-category-row .products-category-toggle {
    background: rgba(181, 0, 7, 0.18);
    color: var(--secondary-color);
}

.products-category-item--open > .products-category-row .products-category-toggle::before {
    transform: rotate(-90deg);
}

.products-category-children {
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    list-style: none;
    display: grid;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.products-category-item--open > .products-category-children {
    max-height: 1200px;
    opacity: 1;
}

.products-category-children .products-category-row {
    background: #fbfbfb;
    border-color: rgba(15, 23, 42, 0.06);
}

.products-category-children .products-category-link {
    font-size: 0.86rem;
}

@media (min-width: 992px) {
    .product-brand-menu .products-brand-card {
        z-index: 1;
    }

    .product-brand-menu .products-brand-card > .products-brand-tree {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        display: none;
        margin: 0;
        box-shadow: 0 26px 48px rgba(15, 23, 42, 0.14);
    }

    .product-brand-menu .products-brand-card:hover,
    .product-brand-menu .products-brand-card:focus-within {
        z-index: 30;
    }

    .product-brand-menu .products-brand-card:hover > .products-brand-tree,
    .product-brand-menu .products-brand-card:focus-within > .products-brand-tree {
        display: grid;
    }

    .products-brand-tree .products-category-item--has-children:hover > .products-category-children,
    .products-brand-tree .products-category-item--has-children:focus-within > .products-category-children {
        max-height: 1200px;
        opacity: 1;
    }

    .products-brand-tree .products-category-item--has-children:hover > .products-category-row .products-category-toggle,
    .products-brand-tree .products-category-item--has-children:focus-within > .products-category-row .products-category-toggle {
        background: rgba(181, 0, 7, 0.18);
        color: var(--secondary-color);
    }

    .products-brand-tree .products-category-item--has-children:hover > .products-category-row .products-category-toggle::before,
    .products-brand-tree .products-category-item--has-children:focus-within > .products-category-row .products-category-toggle::before {
        transform: rotate(-90deg);
    }
}

.product-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.product-pagination li {
    margin: 0;
}

.product-pagination__more {
    margin-top: 18px;
    padding: 0.9rem 1.6rem;
    border: 1px solid rgba(181, 0, 7, 0.22);
    border-radius: 999px;
    background: #fff;
    color: var(--secondary-color);
    font-family: var(--title-font);
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-pagination__more:hover {
    background: #fff5f5;
    box-shadow: 0 12px 24px rgba(181, 0, 7, 0.08);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .product-brand-card__header {
        min-height: auto;
        border-radius: 18px 18px 0 0;
    }

    .products-brand-tree {
        border-radius: 0 0 18px 18px;
    }
}

body[data-admin-ui="true"] .admin-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.65;
}

body[data-admin-ui="true"] .admin-textarea--rich {
    min-height: 180px;
}

body[data-admin-ui="true"] .admin-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #b0b0b8 50%),
        linear-gradient(135deg, #b0b0b8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

body[data-admin-ui="true"] .admin-inline-hint {
    margin-bottom: 14px;
    color: #a1a1aa;
    font-size: 0.82rem;
    line-height: 1.6;
}

body[data-admin-ui="true"] .admin-inline-hint--soft {
    color: #c7c7ce;
}

body[data-admin-ui="true"] .admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body[data-admin-ui="true"] .admin-checkbox-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

body[data-admin-ui="true"] .admin-checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body[data-admin-ui="true"] .admin-checkbox-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100%;
    padding: 14px 16px;
    border: 1px solid #2f2f35;
    border-radius: 14px;
    background: #18181b;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-admin-ui="true"] .admin-checkbox-card__body strong {
    color: #f5f5f5;
    font-size: 0.92rem;
    line-height: 1.4;
}

body[data-admin-ui="true"] .admin-checkbox-card__body small {
    color: #a1a1aa;
    font-size: 0.78rem;
    line-height: 1.4;
}

body[data-admin-ui="true"] .admin-checkbox-card:hover .admin-checkbox-card__body {
    border-color: rgba(211, 47, 47, 0.45);
    transform: translateY(-1px);
}

body[data-admin-ui="true"] .admin-checkbox-card input:checked + .admin-checkbox-card__body {
    border-color: rgba(211, 47, 47, 0.7);
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.16) 0%, rgba(20, 20, 20, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(211, 47, 47, 0.16);
}

body[data-admin-ui="true"] .admin-sync-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(211, 47, 47, 0.24);
    border-radius: 14px;
    background: rgba(211, 47, 47, 0.08);
    color: #f5f5f5;
}

body[data-admin-ui="true"] .admin-sync-note i {
    color: #ff8b8b;
    margin-top: 2px;
}

body[data-admin-ui="true"] .admin-sync-card {
    position: relative;
}

body[data-admin-ui="true"] .admin-sync-card__title {
    margin-bottom: 10px;
    color: #f5f5f5;
    font-family: "Exo", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

body[data-admin-ui="true"] .admin-sync-card__text {
    margin-bottom: 18px;
    color: #a1a1aa;
    line-height: 1.7;
}

body[data-admin-ui="true"] .admin-sync-form {
    margin-top: auto;
}
.news-detail-content {
    padding: 230px 0 100px 0;
}

.news-detail-breadcumb .breadcumb-menu-wrap {
    z-index: 2;
}

@media (max-width: 991px) {
    .news-detail-content {
        padding: 130px 0 80px 0;
    }
}
.cookie-consent {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 1200;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent.cookie-consent--visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent__panel {
    width: min(960px, calc(100vw - 32px));
    margin-left: auto;
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cookie-consent__content {
    color: #f5f5f5;
    max-width: 640px;
}

.cookie-consent__title {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.cookie-consent__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent__button,
.cookie-consent__link {
    border-radius: 999px;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__button:hover,
.cookie-consent__link:hover {
    transform: translateY(-1px);
}

.cookie-consent__button {
    border: 1px solid transparent;
    cursor: pointer;
}

.cookie-consent__button--primary {
    background: #b91c1c;
    color: #fff;
}

.cookie-consent__button--primary:hover {
    background: #991b1b;
}

.cookie-consent__button--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.cookie-consent__button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.cookie-consent__link {
    color: #facc15;
}

@media (max-width: 767.98px) {
    .cookie-consent__panel {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__button,
    .cookie-consent__link {
        width: 100%;
    }
}
