:root {
  --radius: 10px;
  --blur: blur(10px);
  --blur-color: #021a1936;
  --border-color: #31494880 #31494880;
  --bg-black: #001512;
  --bg-light: #FAFAF6;
}
html, body {
    height: 100%;
    margin: 0;
    font-family: "Geologica", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "CRSV" 0,
        "SHRP" 0;
    font-size: 1rem;
    background: #010b06 !important;
}

.fade-in {
    animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
    from    { opacity: .9; }
    to      { opacity: 1; }
}

/*
    ADDITIONAL RULES
*/
.ps-45 {
    padding-left: 2rem !important;
}
.py-35 {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}
.fs-7 {
    font-size: .75rem !important;
}
.fs-8 {
    font-size: .65rem !important;
}
.text-light {
    color: var(--bg-light) !important;
}
.border-dashed {
    border-style: dashed !important;
    border-color: #314948 !important;
}
.bg-blur {
    background-color: var(--blur-color) !important;
    backdrop-filter: var(--blur) !important;
}
.rmx-border {
    border-color: var(--border-color) !important;
}
.rmx-bg {
    background: var(--bg-light) !important;
}
.rmx-text-black {
    color: #000B08;
}
.cursor-pointer {
    cursor: pointer;
}
.form-control:focus,
.form-control-sm:focus {
    box-shadow: none;
    border-color: inherit;
}
.form-control-sm {
    border: var(--bs-border-width) solid var(--bs-border-color);
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* PAGINATION START */
.pagination {
    gap: 0.5rem;
}

.pagination .page-item .page-link, .page-item.disabled span {
    border-radius: 0.5rem;
    border: 1px solid #4d5d5b;
    background-color: transparent;
    color: #808c8b;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-item.disabled span {
    color: #000B08;
    background-color: #FAFAF6;
}

.pagination .page-item.active .page-link {
    background-color: white;
    color: black;
    font-weight: bold;
    border: 1px solid #ccc;
}

.pagination .page-item.disabled .page-link {
    color: #888;
}
.disabled>.page-link, .page-link.disabled {
    border: none;
    background: transparent;
    color: #808c8b;
    padding-top: 10px;
}
/* PAGINATION END */

/*      CUSTOM CHECKBOX & RADIO START      */

/* Скрываем стандартные radio и checkbox */
.custom-check-radio input[type="radio"],
.custom-check-radio input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Квадратная рамка для чекбокса и радиокнопки */
.custom-check-radio .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 32px;
    border: 1px solid #a0a9a9;
    background-color: #fff;
    border-radius: 8px;
}

.custom-check-radio.sm .checkmark {
    height: 27px !important;
    width: 27px !important;
}

/* Галочка (для checkbox) */
.custom-check-radio .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

/* Галочка — стиль только для checkbox */
.custom-check-radio input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
    left: 11px;
    top: 6px;
    width: 8px;
    height: 14px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-check-radio.transparent input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
    left: 11px;
    top: 6px;
    width: 8px;
    height: 14px;
    border: solid #FAFAF6;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-check-radio input[type="radio"]:checked ~ .checkmark::after {
    display: block;
    left: 11px;
    top: 6px;
    width: 8px;
    height: 14px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-check-radio.sm input[type="radio"]:checked ~ .checkmark::after {
    left: 10px;
    top: 5px;
    width: 7px;
    height: 12px;
}

/*      CUSTOM CHECKBOX & RADIO END        */

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.wrapper.main-page {
    background: url('../img/main-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.wrapper.login-page,
.wrapper.page-error {
    background: #000B08;
}
.wrapper.page-error {
    background: url('../img/bg-error.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.content-error {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 0 auto;
    margin-top: -120px;
}
.page-error .h4 {
    font-size: 14rem;
}
main {
    flex: 1;
}
footer {
    color: white;
}
.main-container {
    width: 90% !important;
    max-width: 90% !important;
}
.search-box input, .search-box .btn-select {
    border: 1px solid #31494880;
    color: var(--bg-black);
    /*background-color: var(--blur-color);*/
    backdrop-filter: var(--blur);
}
#searchQuery::placeholder {
    /*color: var(--bg-light);*/
}
#searchQuery:focus::placeholder {
    color: var(--bg-black);
}
#searchQuery:focus,
#searchQuery.active {
    background: var(--bg-light);
    outline: none;
    box-shadow: none;
    border-color: var(--bg-black);
    color: var(--bg-black) !important;
    transition: none;
}
#search {
    background: var(--bg-black);
    border-color: var(--bg-black);
}
#searchForm .dropdown-menu,
#language .dropdown-menu {
    background-color: var(--blur-color);
    backdrop-filter: var(--blur);
    min-width: fit-content;
}
.dropdown-item:hover {
    color: var(--bg-black) !important;
}
.box-transparent {
    border: 1px solid #31494880;
    background-color: var(--blur-color);
    backdrop-filter: var(--blur);
    border-radius: var(--radius);
}
.box-light {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    color: #000;
}
.btn-green {
    color: var(--bg-light);
    background-color: #314948;
    border: none;
}
.btn-green {
    color: var(--bg-light);
    background-color: #314948;
    border: 1px solid #314948;
}
.btn-green:hover {
    background: #1f4d4b;
    color: var(--bg-light);
}
.btn-transparent {
    color: var(--bg-black);
    background-color: transparent;
    border: 1px solid #dee2e6;
}
.btn-transparent:hover {
    background: transparent;
    color: var(--bg-black);
    border: 1px solid #dee2e6;
}

/*
    LOGIN PAGE
*/
.bg-login-left {
    background: url('../img/login-bg.webp') no-repeat center center;
    background-size: cover;
}
.bg-login-right {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050d0c;
    position: relative;
    overflow: hidden;
}
.bg-login-right:before {
    content: '';
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    z-index: 1;
    width: 300px;
    height: 300px;
    bottom: -10%;
    right: 55%;
    transform: translate(-50%, -50%);
}
.bg-login-right:after {
    content: '';
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    z-index: 1;
    width: 300px;
    height: 300px;
    top: 0%;
    left: 50%;
    transform: translate(50%, 50%);
}
.login-box {
    position: relative;
    z-index: 5;
    top: -50px;
    width: 100%;
    max-width: 700px;
    padding: 50px;
}
.login-form .form-control,
.login-form .input-group-text {
    border-color: #31494880 !important;
    color: var(--bg-light);
}
.login-form .form-control:focus {
    color: var(--bg-light);
    background-color: inherit;
    border-color: #31494880;
    outline: 0;
    box-shadow: none;
}

.btn-check:checked + .btn {
    background-color: #314948;
    color: white;
    border-color: #314948;
}
/* Общий стиль для иконки */
.delivery-icon,
.payment-icon {
    display: inline-block;
    width: 65px;
    height: 26px;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}
.payment-icon {
    width: 25px;
    height: 25px;
}

#delivery1 + label .delivery-icon,
#delivery2 + label .delivery-icon {
    background-image: url('../img/nova-post.svg');
}

#delivery1:checked + label .delivery-icon,
#delivery2:checked + label .delivery-icon {
    background-image: url('../img/nova-post-active.svg');
}

#payment1 + label .payment-icon {
    background-image: url('../img/credit-card.svg');
}

#payment1:checked + label .payment-icon {
    background-image: url('../img/credit-card-active.svg');
}

.vin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.vin-modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 700px;
    text-align: center;
    position: relative;
    color: #314948;
}

.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.order-modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 700px;
    text-align: center;
    position: relative;
    color: #314948;
}


.vin-modal-close {
    position: absolute;
    top: 2px;
    right: 21px;
    font-size: 33px;
    cursor: pointer;
}


.ui-autocomplete {
    background: #fff;
    border: 1px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    font-size: .875rem;
    z-index: 1050;
}

.ui-menu-item {
    padding: 0px 10px;
    cursor: pointer;
}

.ui-menu-item-wrapper.ui-state-active,
.ui-state-active, 
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    background: #314948;
    color: #fff;
}

.accordion-button:not(.collapsed),
.accordion-button:focus {
    box-shadow: none !important;
    color: #212529;
}

.brand-box {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.brand-box::-webkit-scrollbar {
  display: none;
}


.navbar .nav-link {
    font-size: 1.25rem; /* fs-5 */
}

.navbar a[data-lang] {
    font-size: 1.1rem;
}

.bg-dark {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.badge {
    font-size: 0.75rem;
}

/* Sweetalert style */
.sweet-alert {
    background-color: var(--bg-light);
}
.sweet-alert button.cancel {
    background-color: transparent !important;
    color: var(--bg-black) !important;
    border: 1px solid #dee2e6 !important;
}
.sweet-alert button.confirm {
    color: var(--bg-light) !important;
    background-color: #314948 !important;
    border: 1px solid #314948 !important;
}

@-webkit-keyframes pulseWarning {
  0% {
    border-color: #314948; }
  100% {
    border-color: #314948; } }

@keyframes pulseWarning {
  0% {
    border-color: #314948; }
  100% {
    border-color: #314948; } }
@-webkit-keyframes pulseWarningIns {
  0% {
    background-color: #314948; }
  100% {
    background-color: #314948; } }

@keyframes pulseWarningIns {
  0% {
    background-color: #314948; }
  100% {
    background-color: #314948; } }

.sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
    background-color: #fafaf6 !important;
}
.sweet-alert .sa-icon.sa-success .sa-fix {
    background-color: #fafaf6 !important;
}
.sweet-alert .sa-icon.sa-success .sa-placeholder {
    border: 4px solid #304948 !important;
}
.sweet-alert .sa-icon.sa-success .sa-line {
    background-color: #304948 !important;
}

.cart-block {
    position: fixed;
    top: 35px;
    right: 5rem;
    z-index: 1044;
    padding: 10px;
    background: #021814;
    z-index: 1044;
    border-radius: var(--radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pulse {
    animation: pulse 0.5s;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
.container.main-container {
    justify-content:start !important;
}
/*
    CART / ORDER FORM RESPONSIVE FIXES
    Bootstrap breakpoints (md/xl) are keyed to the *viewport* width, but the
    order form's delivery/payment buttons and the cart table live inside a
    col-xl-5 / col-xl-7 split. That means right around the xl breakpoint
    (~1200-1300px viewport) those columns are actually much narrower than
    the breakpoint assumes, which caused label text to overlap and the
    price/amount columns to overflow the white card. The fixes below make
    those elements react to the space they actually have instead of the
    raw viewport width.
*/

/* Delivery / payment method buttons: wrap based on available width */
.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}
.method-options .btn {
    height: 100%;
    margin: 0;
    white-space: normal;
}

/* Quantity +/- buttons: fixed square size at every breakpoint, no more
   size mismatch between mobile accordion and desktop table rows */
.btn-decrease,
.btn-increase {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
@media (max-width: 767px) {
    .btn-decrease,
    .btn-increase {
        width: 44px;
        /*height: 44px;*/
    }
}

/* Quantity control (-, count, +): plain flexbox instead of grid columns.
   The old col-6/col-xl-7 math assumed a full-width row, but this control
   actually sits inside a narrow col-xl-2 cart column, so the "+" button
   didn't fit and wrapped onto its own line. Flex + a fixed input width
   fits any container width without wrapping. */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}
.qty-control .cart-count {
    width: 50px;
    flex: 0 0 50px;
    min-width: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Consistent control height: plain inputs (.min-h) and select2 boxes
   (.min-h .select2-selection) now match at 44px on every breakpoint.
   Previously this was only enforced under 767px, so on desktop a
   form-control-sm input and a select2 box ended up different heights. */
.min-h.form-control,
.min-h .select2-selection,
.min-h .select2-selection__rendered,
.min-h .select2-selection__arrow {
    min-height: 44px !important;
    line-height: 44px !important;
    height: 44px !important;
}
.med-h {
    min-height: 42px !important;
}
#checkAuth:disabled {
    color: var(--bg-light) !important;
    background-color: #314948 !important;
    border: 1px solid #314948 !important;
}
.min-h.btn {
    min-height: 44px !important;
    line-height: 30px !important;
    min-width: 44px;
}
.min-h.form-control {
    display: flex;
    align-items: center;
}

/* Cart table: let grid/flex children shrink and wrap their text instead of
   forcing the row wider than the box (which pushed price/amount out past
   the white card edge around the xl breakpoint) */
#cart-grid .row {
    min-width: 0;
}
#cart-grid .row > div {
    min-width: 0;
    word-break: break-word;
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control,
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #FFF;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color) !important;
    line-height: 28px;
    font-size: .875rem;
    font-weight: 400;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #66686a;
}
#sendCode, #verifyCode {
    line-height: 44px !important;
}

.btn-green.btn-cta {
    position: relative;
    overflow: hidden;
}
.btn-green.btn-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    animation: ctaShimmer 2.8s ease-in-out infinite;
}
@keyframes ctaShimmer {
    0%   { left: -150%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}