body {
  background: #f5f6fa !important;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;

}

/* =========================
   PREMIUM SEARCH
========================= */

/* центрируем форму */
.navbar-form {
  flex: 1;
  max-width: 500px; /* . уменьшаем */
  margin: 0 auto;
}

/* фикс bootstrap */
.navbar-form .input-group {
  width: 100%;
}

.navbar-form input {
  width: 100%;
  height: 44px;
  border-radius: 25px;
  padding: 0 18px;
}

.navbar-toggle {
  flex: 0 0 auto;
  margin-left: 10px;
}
/* -------------------- */

.search-suggestions {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);

  width: 420px;
  max-height: 400px;
  overflow-y: auto;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);

  border-radius: 14px;
  border: 1px solid rgba(255, 0, 0, 0.25);

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  opacity: 0;
  transition: 0.25s;

  z-index: 9999;
  pointer-events: none;
}

.search-suggestions.show {
  opacity: 1;
  pointer-events: auto;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #111;
}

.suggest-item:hover {
  background: rgba(255, 0, 0, 0.08);
}

.suggest-item img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.highlight {
  color: #801323;
  font-weight: bold;
}

/* =========================
   ULTRA SEARCH UI - END
========================= */

/* =========================
   NAVBAR + INPUT - START
========================= */


#query {
  border-radius: 12px !important;
  border: 1px solid #ddd;
}

#query:focus {
  border-color: #801323;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}

/* =========================
   NAVBAR + INPUT - END
========================= */


/* =========================
   SIDEBAR - START
========================= */

.navigation {
  position: sticky;
  top: 150px; /* 💥 строго равен navbar */
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);

  border-radius: 16px;
  padding: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.navigation li a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #333;
}

.navigation li a:hover {
  background: rgba(229,9,20,0.08);
}

/* =========================
   SIDEBAR - END
========================= */


/* =========================
   FIX CLICK (ВАЖНО)
========================= */

.book::before,
.book::after,
.book .cover::before,
.book .cover::after {
  pointer-events: none !important;
}

/* =========================
   END OF FILE
========================= */


/* =========================
   ULTRA HOVER 3D EFFECT
========================= */

.book {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.row.display-flex .book:hover {
  transform: rotateX(6deg) rotateY(-6deg) scale(1.05);
  box-shadow: 0 30px 80px rgba(75, 55, 55, 0.3);
}

.book::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(45deg, #e4d6d6, transparent, #e2d6d8);
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

.book:hover::before {
  opacity: 1;
  filter: blur(10px);
}

.row.display-flex .book:active {
  transform: scale(0.97);
}

.btn:active {
  transform: scale(0.95);
}

/* =======================
   GLOBAL
======================= */



/* =======================
   HEADER (ШАПКА)
======================= */


/* логотип */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px !important;
  overflow: hidden;
  margin-top: 0;
}

/* поиск */
.navbar input[type="text"] {
  border-radius: 30px !important;
  border: none !important;
  padding: 10px 20px !important;
  background: #f1f2f6 !important;
  transition: 0.3s;
}

.navbar input[type="text"]:focus {
  background: white !important;
  box-shadow: 0 0 0 2px #801323;
}


/* =======================
   SIDEBAR
======================= */
.sidebar {
  background: white !important;
  border-radius: 20px;
  margin: 15px;
  padding: 15px 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* пункты */
.sidebar .nav > li > a {
  border-radius: 12px;
  margin: 5px 0;
  padding: 10px 15px;
  color: #444 !important;
  transition: 0.3s;
}

/* hover */
.sidebar .nav > li > a:hover {
  background: #f5f6fa;
  color: #801323 !important;
  transform: translateX(5px);
}

/* активный */
.sidebar .nav > li.active > a {
  background: #ffe5e7 !important;
  color: #801323 !important;
  font-weight: 600;
  border-left: 4px solid #801323;
}


/* =======================
   BOOK CARDS
======================= */
.book {
  transition: 0.3s;
}



/* карточка */
.book img {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* =======================
   BUTTONS
======================= */
.btn-primary {
  background: #801323 !important;
  border: none !important;
  border-radius: 10px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #c40812 !important;
  transform: translateY(-2px);
}


/* =======================
   SCROLLBAR (.)
======================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #801323;
  border-radius: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
}

.tags span {
  background: #f1f2f6;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}



.user-menu a {
  font-size: 20px;
  color: #555 !important;
  transition: 0.3s;
}

.user-menu a:hover {
  color: #801323 !important;
  transform: scale(1.1);
}

/* dropdown */
.user-menu .dropdown-menu {
  border-radius: 14px;
  padding: 10px;
  border: none;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   NAVBAR BIG (FIXED CLEAN)
========================= */

.navbar {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);

  height: 150px;
  min-height: 150px;

  margin-bottom: 0 !important;
  border: none !important;
}

/* контейнер */
.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

/* header */
.navbar-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* логотип */
.logo-navbar {
  height: 70px; /* . уменьшаем */
}

/* бренд */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 150px;
  padding: 0 15px !important;
  overflow: hidden;
}

/* меню */
.navbar-collapse {
  align-items: center;
  height: 150px;
}

/* ссылки */
.navbar-nav > li > a {
  display: flex;
  align-items: center;
  height: 150px;
}

/* dropdown */
.dropdown-menu {
  margin-top: 0 !important;
}

/* =========================
   TOP BAR
========================= */

.top-bar {
  width: 100%;
  height: 40px;

  background: #801323;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 25px;

  position: relative;
  z-index: 10;
}

/* иконки */
.top-right {
  display: flex;
  gap: 15px;
}

.top-right a {
  color: white;
  font-size: 16px;
  transition: 0.3s;
}

.top-right a:hover {
  color: #ffccd2;
  transform: translateY(-2px);
}

/* Social Icon */
.top-right a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255,255,255,0.1);

  transition: 0.3s;
}

.top-right a:hover {
  background: white;
  color: #801323;
  transform: scale(1.1);
}


/* display disable */
/* .random-books {
  display: none;
} */

h2 {
  display: none;  
}

.Books {
  display: none;
}


/* end display disable */



/* =========================
   . ULTRA MODAL DESIGN
========================= */

.modal {
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.6);
  z-index: 99999 !important;
}
.modal-backdrop {
  z-index: 99998 !important;
}

.modal.in .modal-dialog,
.modal.show .modal-dialog {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* центр + анимация */
.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;

  transform: scale(0.9);
  opacity: 0;
  transition: 0.25s ease;
}

/* активный */
.modal.in .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

/* сам попап */
.modal-content {
  border-radius: 20px;
  border: none;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);

  box-shadow: 0 30px 80px rgba(0,0,0,0.4);

  overflow: hidden;
}

/* header */
.modal-header {
  border: none;
  padding: 20px;

  background: linear-gradient(135deg, #801323, #801323);
  color: white;
}



/* =========================================
   . TITLE + AUTHOR UI (CLEAN & BEAUTIFUL)
========================================= */

/* контейнер текста */
.book .meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 10px;

  background: linear-gradient(
    to top,
    rgba(221, 212, 212, 0.8),
    rgba(163, 100, 100, 0.2),
    transparent
  );

  opacity: 1; /* . ВСЕГДА ВИДНО */
  transform: none;
}

/* при наведении */
.book:hover .meta {
  transform: translateY(0);
  opacity: 1;
}

/* TITLE */
.book .title {
  font-size: 12px !important; /* . уменьшили */
  font-weight: 600;
  color: #fff;

  margin-bottom: 3px;

  line-height: 1.2;
}

/* AUTHOR */
.book .author {
  font-size: 10px; /* . меньше */
  color: #ccc;

  line-height: 1.2;
}



/* end TITLE + AUTHOR UI (CLEAN & BEAUTIFUL)*/

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

/* кнопка закрытия */
.modal-header .close {
  color: white;
  opacity: 0.8;
  font-size: 24px;
}

.modal-header .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* body */
.modal-body {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

/* footer */
.modal-footer {
  border: none;
  padding: 15px;
}

/* кнопки */
.modal-footer .btn {
  border-radius: 10px;
  padding: 8px 16px;
}

/* =========================
   SCROLL FIX (ВАЖНО)
========================= */

body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* скрыть sidebar на stats странице */
body.my_stats .navigation {
  display: none !important;
}

/* растянуть контент */
body.my_stats .col-sm-10 {
  width: 100% !important;
}

/* EW Uni */
.top-right a:hover {
  background: rgb(128, 19, 35);
  color: #fff !important;
  transform: scale(1.15) rotate(5deg);
}

  /* =========================
     BOOK CARDS MOBILE
  ========================= */
  .book {
    border-radius: 12px;
  }

  .book .cover img {
  height: 100%;
}

  /* =========================
     TOUCH UX
  ========================= */
  .book,
  .btn,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  
/* responsive */




/* =========================================
   . UX LEVEL GOD (FINAL SYSTEM)
========================================= */

/* плавность всего */
* {
  scroll-behavior: smooth;
}

/* =========================
   CARD ANIMATION PRO
========================= */
.book {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.row.display-flex .book:active {
  transform: scale(0.95);
}






/* =========================
   RIPPLE UPGRADE
========================= */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background: rgba(255,255,255,0.4);
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* =========================
   GRID FIX (УБИРАЕМ СКРОЛЛ)
========================= */


.row.display-flex > .book {
  scroll-snap-align: start;
}

/* =========================
   GLASS NAV EFFECT
========================= */
.navbar {
  backdrop-filter: blur(20px) saturate(180%);
}

/* =========================
   BUTTON PRESS EFFECT
========================= */
.btn:active {
  transform: scale(0.92);
}

/* =========================
   IMAGE SMOOTH LOAD
========================= */
.book img {
  transition: opacity 0.4s ease;
}

.book.loading img {
  opacity: 0.5;
}

/* =========================
   MODAL UPGRADE
========================= */
.modal-content {
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* spliter modal */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #801323;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* beautiful mob menu  */

.bottom-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;

  height: 300px;

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);

  border-radius: 20px 20px 0 0;

  box-shadow: 0 -20px 60px rgba(0,0,0,0.3);

  transition: 0.35s ease;
  z-index: 10000;
}

.bottom-menu.open {
  bottom: 0;
}

.menu-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-content a {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px;
  border-radius: 12px;

  background: rgba(255,255,255,0.6);

  color: #333;
  font-size: 16px;
}

.menu-content a:hover {
  background: rgba(128,19,35,0.1);
}
/* newmenu */

/* sidebar в мобильном меню */

#mobile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 100%;
}

#mobile-sidebar li {
  list-style: none;
}

#mobile-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;
  border-radius: 10px;

  background: rgba(255,255,255,0.6);
  color: #333;
}

#mobile-sidebar a:hover {
  background: rgba(128,19,35,0.1);
}

/* button menu mob */

.menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px 15px;
}

#close-menu {
  background: rgba(0,0,0,0.1);
  border: none;

  width: 35px;
  height: 35px;

  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;

  transition: 0.2s;
}

#close-menu:hover {
  background: rgba(128,19,35,0.2);
  transform: rotate(90deg);
}

/* search mob menu */
.mobile-search {
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;

  background: white;
  padding: 15px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.2);

  transition: 0.3s;
  z-index: 10001;
}

.mobile-search.open {
  top: 0;
}

.search-box {
  display: flex;
  gap: 10px;
}

#mobile-search-input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 0 10px;
}

#close-search {
  border: none;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* hid search origin */

@media (max-width: 992px){
  .navbar-form {
    display: none !important;
  }
}

.mobile-search .search-suggestions {
  position: relative;
  top: 10px;
  left: 0;
  transform: none;
  width: 100%;
}

.mobile-search .navbar-form {
  display: block !important;
}

.mobile-search input {
  width: 100%;
  height: 45px;
  font-size: 16px;
}

/* =========================================
   . FINAL ADAPTIVE + SMOOTH UX
========================================= */

/* GLOBAL */
html, body {
  overflow-x: hidden !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
}


* {
  box-sizing: border-box;
}





/* =========================
   . MOBILE NAV
========================= */

.mobile-nav {
  display: none;
}

@media (max-width: 992px) {

  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 70px;

    display: flex;
    justify-content: space-around;
    align-items: center;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);

    border-top: 1px solid rgba(0,0,0,0.05);

    z-index: 9999;
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: 11px;
    color: #666;
  }

  .mobile-nav i {
    font-size: 20px;
  }

}

/* =========================
   . RESPONSIVE
========================= */

@media (max-width: 992px) {

  .navigation,
  .col-sm-2 {
    display: none !important;
  }

  .col-sm-10 {
    width: 100% !important;
  }

  body {
    padding-bottom: 80px;
  }

}

/* =========================
   ⚡ SMOOTH UX
========================= */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a, button {
  transition: 0.2s;
}

a:active, button:active {
  transform: scale(0.95);
}






/* dropdown */






/* =========================================
   . FIX SAME SIZE CARDS (SAFE)
========================================= */

.row.display-flex > .book {
  display: flex;
  flex-direction: column;
  height: 320px; /* . можешь менять */
}

/* обложка */
.book .cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

/* картинка */
.book .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* текст (чтобы не прыгал)
.book .meta {
  min-height: 50px;
} */



.sort-box {
  display: flex;
  justify-content: start;
  margin: 15px 0;
}

.sort-box select {
  appearance: none;
  -webkit-appearance: none;

  padding: 10px 14px;
  border-radius: 12px;

  border: none;
  outline: none;

  background: #f5f6fa;
  color: #333;

  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 4px 15px rgba(0,0,0,0.08);

  cursor: pointer;

  transition: 0.2s;
}

.sort-box select:hover {
  background: #eee;
}

.sort-box select:focus {
  box-shadow: 0 0 0 2px rgba(128,19,35,0.3);
}

/* =========================================
   . LOGIN LEVEL GOD
========================================= */

.login-wrapper {
  min-height: calc(100vh - 150px);
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 80px 20px 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;

  padding: 35px;

  border-radius: 20px;

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);

  box-shadow: 0 25px 70px rgba(0,0,0,0.25);

  animation: fadeLogin 0.4s ease;
}

@keyframes fadeLogin {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #801323;
}

/* input */
.login-card .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 15px;

  transition: 0.2s;
}

.login-card .form-control:focus {
  border-color: #801323;
  box-shadow: 0 0 0 2px rgba(128,19,35,0.15);
}

/* options */
.login-options {
  margin-bottom: 15px;
  font-size: 14px;
}

/* кнопки */
.login-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;

  background: #801323;
  color: white;
  border: none;

  font-weight: 600;
  margin-bottom: 10px;

  transition: 0.2s;
}

.login-btn:hover {
  background: #c40812;
  transform: translateY(-2px);
}

.login-secondary {
  width: 100%;
  height: 42px;
  border-radius: 10px;

  background: #f1f2f6;
  color: #333;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;

  transition: 0.2s;
}

.login-secondary:hover {
  background: rgba(128,19,35,0.1);
  color: #801323;
}

/* ошибка */
.login-error {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* mobile */
@media (max-width: 576px) {
  .login-card {
    padding: 25px;
  }
}










/* Resp LAST Final */

/* =========================================
   . SIDEBAR COMPACT (≤ 1400px)
========================================= */

@media (max-width: 1400px) {

  /* контейнер меню */
  .navigation {
    transform: scale(0.9);
    transform-origin: top left;
  }

  /* пункты меню */
  .navigation a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .navigation ul {
    gap: 4px;
  }

  /* текст внутри */
  .navigation li {
    font-size: 13px;
    line-height: 1.2;
  }

  /* иконки если есть */
  .navigation i,
  .navigation svg,
  .navigation .glyphicon {
    font-size: 14px;
    margin-right: 6px;
  }

  /* =========================================
   . HIDE SIDEBAR ICONS
========================================= */

.navigation .glyphicon,
.navigation i,
.navigation svg {
  display: none !important;
}
}



/* =========================
   💻 992px (5 колонок)
========================= */
@media (max-width: 992px) {
  
  .row.display-flex > .book {
    flex: 0 0 calc((100% - 80px) / 5);
  }

  /* мобильная шапка */
  .navbar-collapse {
    display: none !important;
  }

  .mobile-nav {
    display: flex !important;
  }

  .navbar {
    height: 90px !important;
  }

  .logo-navbar {
  height: clamp(45px, 6vw, 70px);
}

}


/* =========================
   . 768px (4 колонки)
========================= */
@media (max-width: 768px) {

  .row.display-flex > .book {
    flex: 0 0 calc((100% - 60px) / 4);
  }

}

/* =========================================
   . TOP NAV MOBILE ICON MODE
========================================= */

@media (max-width: 767px) {

  /* показываем меню в шапке */
  #main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
  }

  /* убираем поведение bootstrap */
  .navbar-collapse {
    display: flex !important;
    justify-content: flex-end;
  }

  /* пункты в ряд */
  #main-nav li {
    display: inline-block;
  }

  /* ссылки компактные */
  #main-nav li a {
    padding: 8px 10px;
    font-size: 18px;
  }

  /* скрываем текст */
  #main-nav .hidden-sm {
    display: none !important;
  }

  #main-nav li a:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
  }

}


/* =========================
   . 576px (3 колонки)
========================= */
@media (max-width: 576px) {

  .row.display-flex > .book {
    flex: 0 0 calc((100% - 40px) / 3);
  }

}

/* =========================================
   . MOBILE FIX FOR scnd-nav (≤ 517px)
========================================= */

@media (max-width: 517px) {

  #scnd-nav {
    display: none !important;
  }

}


/* =========================
   . 400px (2 колонки)
========================= */
@media (max-width: 400px) {

  .row.display-flex > .book {
    flex: 0 0 calc((100% - 20px) / 2);
  }

}


/* =========================
   . 300px (1 колонка)
========================= */
@media (max-width: 300px) {

  .row.display-flex > .book {
    flex: 0 0 100%;
  }

}

/* =========================
   . SORT ADAPTIVE FIX (FINAL)
========================= */

/* до 992 — уменьшаем */
@media (max-width: 1200px) {
  .sort-menu a {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 1100px) {
  .sort-menu a {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* . ГЛАВНЫЙ ФИКС */
@media (max-width: 992px) {
    #toggle-mobile-menu {
    display: none !important;
  }
    .sort-dropdown {
    width: auto; /* ❗ убрали растяжение */
  }

  .sort-btn {
    width: auto; /* ❗ ключевой фикс */
    justify-content: center;

    padding: 6px 14px; /* чуть компактнее */
    font-size: 13px;
  }

  .sort-menu {
    position: absolute !important;

    top: 110%;
    left: 0 !important;     /* . ВАЖНО */
    right: 0;               /* . ВАЖНО */

    flex-wrap: wrap;
    justify-content: center;

    width: 100%;
  }

  .sort-menu a {
    font-size: 12px;
    padding: 6px 10px;
  }

}

/* . маленькие */
@media (max-width: 576px) {

  .sort-menu {
    gap: 6px;
  }

  .sort-menu a {
    font-size: 11px;
    padding: 5px 8px;
  }

}

/* . очень маленькие */
@media (max-width: 400px) {

  .sort-menu a {
    font-size: 10px;
    padding: 4px 6px;
  }

}

/* =========================
   ❌ HIDE MOBILE UI ON DESKTOP
========================= */

@media (min-width: 992px) {
  
  .mobile-nav {
    display: none !important;
  }

  #toggle-mobile-menu {
    display: none !important;
  }

  .bottom-menu {
    display: none !important;
  }

  .mobile-search {
    display: none !important;
  }

}

/* убрать рамки и подчеркивание у всех ссылок */
a {
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
}

/* убрать синюю рамку при клике / фокусе */
a:focus,
a:active {
  outline: none !important;
  box-shadow: none !important;
}






/*  делаем ВСЮ карточку кликабельной */
.book {
  position: relative;
  cursor: pointer;
}


/*  но разрешаем ссылки (если нужны) */
.book a {
  pointer-events: auto;
}

.book {
  cursor: pointer;
}

#flash_success {
  display: none !important;
}


.container-fluid {
	margin-top: 10px;
}