@font-face {
    font-family: 'montserrat-bold';
    src: url('../fonts/montserrat-bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Angry-Regular';
    src: url('../fonts/Angry.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-position: center;
    background-attachment: fixed;
    background-color: #2b2a29;
    font-family: 'montserrat-bold', sans-serif;
    background-size: 50%;
    background-repeat: no-repeat;
    height: 100vh;
  }
h5 {
    margin-bottom: 0!important;
}
.category-card {
    /*width: fit-content;*/
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0px 16px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}
.maf_link {
    margin-left: 4px;
    margin-bottom: 4px;
    position: relative;
    height: 180px;
    background-color: #fff;
    border-radius: 32px 16px 32px 16px;
}
.maf_link img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* чтобы изображения не искажались */
}
 .card-buttons {
    position: absolute;
    top: 0px;
    right: 0px;
}
.yadisk-btn {
    padding: 4px 8px;
    border-radius: 4px 16px 4px 16px;
    margin: 0;
}
    .modal .form-label {
        color: #6c757d !important; /* Серый цвет Bootstrap */
        font-weight: 500;
    }
.model-page  {
    position: absolute;
    top: 106px;
    right: 0px;
}
.model-price {
    text-align: center;
    font-size: 10px;
    display: block;
    position: absolute;
    bottom: 8px;
    left: 16px;
}
.gallery img {
    width: 92%;
    height: 120px;
    object-fit: contain;
    border-radius: 32px 32px 32px 16px;
    background-color: #fff;
    padding: 16px 32px 0px 8px;
}
.model-name {
    text-align: center;
    font-size: 14px;
    display: block;
    position: absolute;
    bottom: 36px;
    left: 16px;
}
.model-dimensions {
    text-align: center;
    font-size: 10px;
    display: block;
    position: absolute;
    bottom: 20px;
    left: 16px;
}
.bi {
    margin-right: 4px;
}
.edit-item {
    position: absolute;
    top: 34px;
    right: 0px;
    border-radius: 16px 4px 4px 16px;
}
.edit-item-const {
    position: absolute;
    top: 68px;
    right: 0px;
    border-radius: 16px 4px 4px 16px;
    background-color: darkcyan;
    border-color: transparent;
}
.edit-item-const:hover {
    position: absolute;
    top: 65px;
    right: 0px;
    border-radius: 16px 4px 4px 16px;
    background-color: darkcyan;
    
}
.delete-item {
    position: absolute;
    top: 102px;
    right: 0px;
    border-radius: 16px 4px 4px 16px;
}
.admin-panel {
    height: 36px;
    position: absolute;
    right: 0;
}
.addmaf-btn {
    background: #39e167;
    color: #2b2a29;
    border-color: #2b2a29;
    border-radius: 16px 4px 4px 16px
}
.addmaf-btn:hover {
    background: #2b2a29;
    color: #39e167;
    border-color: #39e167;
}
.logout-btn {
    background: #57acc7;
    color: #2b2a29 !important;
    border-radius: 4px 16px 16px 4px;
}
.logout-btn:hover {
    background: #2b2a29;
    color: #57acc7 !important;
    border-color: #57acc7;
}
.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: flex-start;
    margin-top: 20px;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 86px;
}
.search-container label {
    margin-right: 10px;
    font-weight: bold;
}
.search-input {
    position: relative;
    width: 36%;
}
.search-input input {
    width: 100%;
    height: 36px;
    border-radius: 12px;
}
.search-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}
.search-input, label,h1,h5, .model-name {
    font-family: "montserrat-bold", sans-serif;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
}
h1, label {
    color: #fff;
}
p {
    padding-left: 8px;
    margin: 4px;
}
a {
    text-decoration: none;
    color: #2b2a29!important;
}


.pages-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    padding: 8px 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 0px 8px 32px 0px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    background: #2b2a29;
    color: #ffef1f !important;
    border-color: transparent;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    /*.pages-nav {*/
    /*    gap: 5px;*/
    /*}*/
    
    .nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* Адаптивность для мобильных */
@media (max-width: 768px) {
    /*.pages-nav {*/
    /*    gap: 5px;*/
    /*}*/
    
    .nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.goto-page {
    color: #ffc107;
    border: #2b2a29;
    font-size: 12px;
    background-color: #2b2a29;
    width: 36px;
    border-radius: 8px 0px 0px 8px;
}
.goto-page:hover {
    color: #2b2a29;
    background-color: #ffc107;
    border-color: #ffc107;
}

.search-results img {
    border-radius: 8px;
    padding: 16px 0px 0px 8px;
    width: 140px;
    height: 100px;
    object-fit: contain;
}
input {
    border: none; /* Убирает обводку */
    outline: none; /* Убирает обводку при фокусировке */
    background: transparent; /* Убирает фон */
    box-shadow: none; /* Убирает тень при фокусировке */
}
input:hover, input:focus {
    border-color: transparent!important;
    box-shadow: 0 0 16px 0rem rgb(17 61 127 / 46%)!important;
}
.add-to-cart {
    position: absolute;
    right: 0px;
    top: 139px;
    width: 36px;
    border-radius: 16px 4px 32px 4px;
    padding: 8px 4px;
}
/*.flex-none {*/
/*    flex: auto!important;*/
/*}*/
.gallery {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s; /* Плавная анимация */
}
.gallery.open {
    display: flex;
    flex-flow: wrap;
    max-width: 1400px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0s; /* Отменяем задержку */
    margin-bottom: 16px;
}
.card_wrapper {
    width: auto!important;
    padding: 0 4px;
}
.card-body {
    width: max-content;
}
.card-title {
    margin-bottom: 0!important;
}
.logo_1 {
    width: 52px;
    padding-top: 16px;
    padding-left: 8px;
}
.logo_2 {
    width: 64px;
    padding-top: 12px;
    padding-left: 24px;
}
.img-fluid_modal {
    margin-left: auto;
    width: auto;
    overflow: hidden;
    height: 84px;
}
.my_modal_btn {
    position: absolute;
        border-radius: 0 32px;
        bottom: 0px;
        left: 0px;
        width: 58px;
        height: auto;
}
.my_modal_btn:hover {
    background-color: #198754;
}

    .footer {
        height: 24%;
        background-color: #000;
        position: fixed;
        top: 0;
        right: 0;
        width: 58px;
        border-radius: 0 0 0 32px;
    }
.box-title,
.box-title * {
  box-sizing: border-box;
}
.title-bg {
background: #ffef1f;
        border-radius: 0px 0px 48px 4px;
        width: 128px;
        height: 360px;
        position: absolute;
        left: 0px;
        top: 0px;
}
.search-results p {
    color: #ffffff;
}


canvas {
        width: 64%;
    display: block;
    margin: 0 auto;
}

.form-control {
    font-size: 0.8rem!important;
}
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
.btn {
    font-size: 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Полоса загрузки */
.progress-bar {
    width: 80%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: #000;
    transition: width 0.3s ease-in-out;
}

#modalButton {
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

#modalButton.active {
    background-color: green !important;
    height:76px;
}

#cart-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Отключаем взаимодействие */
}

.fly-to-cart {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 1000;
    transition: transform 1s ease-in-out, opacity 1s;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    /*gap: 20px;*/
    justify-content: center;
        margin-top: 30%;
        /*padding: 156px 8px 128px 8px;*/
}



/* Две модели в ряд на десктопе */
@media (min-width: 992px) {
    .model-container {
        width: 480px;
        height: 360px;
    }
}



@media (max-width: 320px) {
.container, .container-sm {
        max-width: 530px;
    }

}

@media (max-width: 576px) {
    
    
.form-control {
    font-size: 1rem!important;
}

    .the-devil-is-in-detail {
        font-size: 48px;
        line-height: 74px;
    }
    .some-description {
      font-size: 30px;
    }
    .text-overlay {
        padding-top: 48px;
        padding-right: 120px;
    }

}


@media (max-width: 992px) {
    .title-bg {
      background: #ffef1f;
    border-radius: 0px 0px 32px 4px;
    width: 96px;
    height: 180px;
    position: absolute;
    left: 0px;
    top: 0px;
    }
h5 {
    font-size: 1rem;
}
    .the-devil-is-in-detail {
      font-size: 64px;
      line-height: 92px;
    }
    .some-description {
      font-size: 40px;
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;
    }
    .content-box-yellow {
        height: 80vh;
        background-position: left;
        background-image: url(../img/card_wrapper_1.png);
        background-size: cover;
        background-repeat: no-repeat;
        margin-top: 120px;
    }
    .footer {
        background-color: #000;
        right: 0;
            height: 64px;
            top: auto;
    bottom: 0;
    width: 100%;
    border-radius: 32px 32px 0 0;
    }
    .my_modal_btn {
        position: absolute;
    border-radius: 32px 32px 0 0;
    bottom: 0px;
    left: auto;
    right: 0;
    width: 100px;
    height: inherit;
    }
    .my_modal_btn:hover {
        background-color: #198754;
    }
    .logo_1 {
        width: 52px;
        padding-top: 16px;
        padding-left: 8px;
    }
        .container, .container-md, .container-sm {
        max-width: 1200px;
    }
    
    }
    @media (max-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1100px;
        .maf_link-container {
    min-width: 272px;
}
    }
}
    @media (max-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 900px;
    }
    .maf_link-container {
            min-width: 296px;
        }
}
    @media (max-width: 1200px) {
        
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 800px;
        .search-input
 {
    width: 26%;
}
    }
}
@media (max-width: 1100px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 700px;
    }
}
@media (max-width: 800px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 500px;
    }
    .maf_link-container {
            min-width: 100%;
        }
    .admin-panel {
    position: relative;
}
h5 {
        font-size: 0.7rem;
    }
    .addmaf-btn, .cabinet-btn, .logout-btn {
        font-size: 11px;
    }
    .pages-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    padding: 8px 0;
    position: fixed;
}
.title-bg {
        background: #ffef1f;
        border-radius: 0px 0px 4px 4px;
        width: 100%;
        height: 48px;
        position: fixed;
        left: 0px;
        top: 0px;
        z-index: 32;
    }
    .container {
        padding-top: 86px;
        padding-bottom: 86px;
    }
    .page-indicator {
    background: #f8f9fa;
    padding: 4px!important;
    border-radius: 48px 48px 48px 48px!important;
    margin-bottom: 20px;
    margin-top: 24px!important;
    text-align: center;
}
}


#searchInput {
    pointer-events: auto !important;
    user-select: auto !important;
    opacity: 1 !important;
}