/* shop.css — стили магазина */
/* PHP-plugin /fk/: HTML генерируется плагином, переименование классов невозможно */

.shop-top {
  display: flex;
  flex-direction: row;
  gap: 10%;
}

.shop-balance {
  display: inline-flex;
  flex-wrap: wrap;
  background: hsla(240, 7%, 12%, 0.88);
  border-bottom: 7px solid rgba(85, 122, 149, 0.7);
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  width: 50%;
}

.shop-balance-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#real-balance-value,
#vote-balance-value {
  color: #55b2fd;
}

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  -webkit-transform: translate(0, -50px);
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}

.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}

.modal-dialog-scrollable {
  display: -ms-flexbox;
  display: flex;
  max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-footer,
.modal-dialog-scrollable .modal-header {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - 1rem);
  content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
  content: none;
}

.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: hsla(240, 7%, 12%, 0.95);
  background-clip: padding-box;
  border: 1px solid rgba(90, 185, 234, 0.15);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(90, 185, 234, 0.15);
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

.modal-header .close {
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid rgba(90, 185, 234, 0.15);
  border-bottom-right-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.modal-footer> :not(:first-child) {
  margin-left: 0.25rem;
}

.modal-footer> :not(:last-child) {
  margin-right: 0.25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }

  .modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
  }

  .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
  }

  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }

  .modal-dialog-centered::before {
    height: calc(100vh - 3.5rem);
  }

  .modal-sm {
    max-width: 300px;
  }
}

@media (min-width: 992px) {

  .modal-lg,
  .modal-xl {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #d5dfea;
}

.table td,
.table th {
  padding: 0.45rem;
  vertical-align: top;
  border-top: 1px solid rgba(90, 185, 234, 0.15);
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid rgba(90, 185, 234, 0.15);
}

.table tbody+tbody {
  border-top: 2px solid rgba(90, 185, 234, 0.15);
}

.table-sm td,
.table-sm th {
  padding: 0.3rem;
}

.table-bordered {
  border: 1px solid rgba(90, 185, 234, 0.15);
}

.table-bordered td,
.table-bordered th {
  border: 1px solid rgba(90, 185, 234, 0.15);
}

.table-bordered thead td,
.table-bordered thead th {
  border-bottom-width: 2px;
}

.table-borderless tbody+tbody,
.table-borderless td,
.table-borderless th,
.table-borderless thead th {
  border: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(90, 185, 234, 0.05);
}

.table-hover tbody tr:hover {
  color: #fff;
  background-color: rgba(90, 185, 234, 0.08);
}

.table-primary,
.table-primary>td,
.table-primary>th {
  background-color: #b8daff;
}

.table-primary tbody+tbody,
.table-primary td,
.table-primary th,
.table-primary thead th {
  border-color: #7abaff;
}

.table-hover .table-primary:hover {
  background-color: #9fcdff;
}

.table-hover .table-primary:hover>td,
.table-hover .table-primary:hover>th {
  background-color: #9fcdff;
}

.table-secondary,
.table-secondary>td,
.table-secondary>th {
  background-color: #d6d8db;
}

.table-secondary tbody+tbody,
.table-secondary td,
.table-secondary th,
.table-secondary thead th {
  border-color: #b3b7bb;
}

.table-hover .table-secondary:hover {
  background-color: #c8cbcf;
}

.table-hover .table-secondary:hover>td,
.table-hover .table-secondary:hover>th {
  background-color: #c8cbcf;
}

.table-success,
.table-success>td,
.table-success>th {
  background-color: #c3e6cb;
}

.table-success tbody+tbody,
.table-success td,
.table-success th,
.table-success thead th {
  border-color: #8fd19e;
}

.table-hover .table-success:hover {
  background-color: #b1dfbb;
}

.table-hover .table-success:hover>td,
.table-hover .table-success:hover>th {
  background-color: #b1dfbb;
}

.table-info,
.table-info>td,
.table-info>th {
  background-color: #bee5eb;
}

.table-info tbody+tbody,
.table-info td,
.table-info th,
.table-info thead th {
  border-color: #86cfda;
}

.table-hover .table-info:hover {
  background-color: #abdde5;
}

.table-hover .table-info:hover>td,
.table-hover .table-info:hover>th {
  background-color: #abdde5;
}

.table-warning,
.table-warning>td,
.table-warning>th {
  background-color: #ffeeba;
}

.table-warning tbody+tbody,
.table-warning td,
.table-warning th,
.table-warning thead th {
  border-color: #ffdf7e;
}

.table-hover .table-warning:hover {
  background-color: #ffe8a1;
}

.table-hover .table-warning:hover>td,
.table-hover .table-warning:hover>th {
  background-color: #ffe8a1;
}

.table-danger,
.table-danger>td,
.table-danger>th {
  background-color: #f5c6cb;
}

.table-danger tbody+tbody,
.table-danger td,
.table-danger th,
.table-danger thead th {
  border-color: #ed969e;
}

.table-hover .table-danger:hover {
  background-color: #f1b0b7;
}

.table-hover .table-danger:hover>td,
.table-hover .table-danger:hover>th {
  background-color: #f1b0b7;
}

.table-light,
.table-light>td,
.table-light>th {
  background-color: #fdfdfe;
}

.table-light tbody+tbody,
.table-light td,
.table-light th,
.table-light thead th {
  border-color: #fbfcfc;
}

.table-hover .table-light:hover {
  background-color: #ececf6;
}

.table-hover .table-light:hover>td,
.table-hover .table-light:hover>th {
  background-color: #ececf6;
}

.table-dark,
.table-dark>td,
.table-dark>th {
  background-color: #c6c8ca;
}

.table-dark tbody+tbody,
.table-dark td,
.table-dark th,
.table-dark thead th {
  border-color: #95999c;
}

.table-hover .table-dark:hover {
  background-color: #b9bbbe;
}

.table-hover .table-dark:hover>td,
.table-hover .table-dark:hover>th {
  background-color: #b9bbbe;
}

.table-active,
.table-active>td,
.table-active>th {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover>td,
.table-hover .table-active:hover>th {
  background-color: rgba(0, 0, 0, 0.075);
}

.table .thead-dark th {
  color: #fff;
  background-color: hsla(240, 7%, 12%, 0.95);
  border-color: rgba(90, 185, 234, 0.2);
}

.table .thead-light th {
  color: #495057;
  background-color: #e9ecef;
  border-color: rgba(90, 185, 234, 0.15);
}

.table-dark {
  color: #fff;
  background-color: hsla(240, 7%, 12%, 0.95);
}

.table-dark td,
.table-dark th,
.table-dark thead th {
  border-color: rgba(90, 185, 234, 0.2);
}

.table-dark.table-bordered {
  border: 0;
}

.table-dark.table-striped tbody tr:nth-of-type(odd) {
  background-color: #1e1f28;
}

.table-dark.table-hover tbody tr:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.075);
}

@media (max-width: 575.98px) {
  .table-responsive-sm {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive-sm>.table-bordered {
    border: 0;
  }
}

@media (max-width: 767.98px) {
  .table-responsive-md {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive-md>.table-bordered {
    border: 0;
  }
}

@media (max-width: 991.98px) {
  .table-responsive-lg {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive-lg>.table-bordered {
    border: 0;
  }
}

@media (max-width: 1199.98px) {
  .table-responsive-xl {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive-xl>.table-bordered {
    border: 0;
  }
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive>.table-bordered {
  border: 0;
}

.nav-container {
  display: flex;
  align-items: center;
}

/* === ISHOP__ICON (ранее .ecn из ech.css) === */
.ishop__icon {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  margin-right: 8px;
  color: #ffc107;
}

.ishop__icon svg {
  display: block;
}

/* === Б-8б: BEM перенесено из swilly-shop.css (секция 3107-3255) === */

.ishop__nav-btn {
  display: inline-block;
  font-weight: 400;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.ishop__nav-btn--primary {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.75);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(85, 178, 253, 0.30) inset;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__nav-btn--primary:hover {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.90);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(85, 178, 253, 0.40) inset;
  transform: translateY(-2px);
}

.ishop__nav-btn--primary:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.ishop__nav-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ishop__nav-btn--outline-primary {
  color: #5ab9ea;
  border-color: rgba(90, 185, 234, 0.28);
  background-color: rgba(90, 185, 234, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__nav-btn--outline-primary:hover {
  color: #fff;
  background: rgba(90, 185, 234, 0.18);
  border-color: rgba(90, 185, 234, 0.6);
  box-shadow: 0 4px 14px rgba(90, 185, 234, 0.25);
  transform: translateY(-1px);
}

.ishop__nav-btn--outline-primary:active {
  background: rgba(90, 185, 234, 0.25);
  transform: translateY(0);
  box-shadow: none;
}

.ishop__nav-btn--outline-secondary {
  color: #5ab9ea;
  border-color: rgba(90, 185, 234, 0.28);
  background-color: rgba(90, 185, 234, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__nav-btn--outline-secondary:hover {
  color: #fff;
  background: rgba(90, 185, 234, 0.18);
  border-color: rgba(90, 185, 234, 0.6);
  box-shadow: 0 4px 14px rgba(90, 185, 234, 0.25);
  transform: translateY(-1px);
}

.ishop__nav-btn--outline-secondary:active {
  background: rgba(90, 185, 234, 0.25);
  transform: translateY(0);
  box-shadow: none;
}

.ishop__cat-select {
  display: block;
  width: 100%;
  padding: 0.5rem 3rem 0.5rem 1rem;
  -moz-padding-start: calc(1rem - 3px);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #d5dfea;
  background-color: #1e1f28;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='silver' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  border: 1px solid #17a2b8;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ishop__cat-select:focus {
  border-color: #17a2b8;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(85, 155, 231, 0.518);
}

.ishop__cat-select:disabled {
  background-color: #e9ecef;
}

.ishop__search-input {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #d5dfea;
  background-color: #1e1f28;
  background-clip: padding-box;
  border: 1px solid rgba(90, 185, 234, 0.14);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ishop__page .ishop__search-input {
  background: #1e1f28;
  border: 1px solid #17a2b8;
  border-radius: 4px;
  position: relative;
  padding: 0.3rem 0.3rem 0.3rem 2.5rem;
  margin-left: unset;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #AFB3B6;
  width: 67%;
}

.ishop__search-input:focus {
  -webkit-box-shadow: 0 0 0 0.25rem rgba(85, 155, 231, 0.518);
  box-shadow: 0 0 0 0.25rem rgba(85, 155, 231, 0.518);
}

.ishop__search-btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid rgba(85, 178, 253, 0.28);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  color: #55b2fd;
  background: rgba(85, 178, 253, 0.10);
}

.ishop__search-btn:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(85, 178, 253, 0.35), 0 4px 12px rgba(85, 178, 253, 0.20);
  transform: translateY(-2px);
}

.ishop__search-btn:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.ishop__clear-btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid rgba(254, 102, 111, 0.28);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  color: #fe666f;
  background: rgba(254, 102, 111, 0.10);
}

.ishop__clear-btn:hover {
  background: rgba(254, 102, 111, 0.22);
  border-color: rgba(254, 102, 111, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(254, 102, 111, 0.35), 0 4px 12px rgba(254, 102, 111, 0.20);
  transform: translateY(-2px);
}

.ishop__clear-btn:active {
  background: rgba(254, 102, 111, 0.30);
  border-color: rgba(254, 102, 111, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(254, 102, 111, 0.20);
  transform: translateY(0);
}

/* === Б-8б: BEM из swilly-shop.css (новые классы) === */

.ishop__page .form-select,
.ishop__page .ishop__cat-select {
  width: 43%;
  padding: 0.3rem 2.5rem 0.3rem 0.9rem;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #96afc0;
  background-color: #1e1f28;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='silver' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  border: 1px solid #17a2b8;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ishop__page .form-select:focus,
.ishop__page .ishop__cat-select:focus {
  border-color: #17a2b8;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(85, 155, 231, 0.518);
}

.ishop__page .form-select option,
.ishop__page .ishop__cat-select option {
  color: #d5dfea;
  background-color: #1e1f28;
}

.ishop__cat-select option {
  color: #d5dfea;
  background-color: #1e1f28;
}

.ishop__page .form-select:last-child {
  width: 8%;
  padding: 0.3rem 1rem 0.3rem 0.9rem;
  background-position: right 0.3rem center;
}

.ishop__page .form-control {
  background: #1e1f28;
  border: 1px solid #17a2b8;
  border-radius: 4px;
  position: relative;
  padding: 0.3rem 0.3rem 0.3rem 2.5rem;
  margin-left: unset;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #96afc0;
  width: 67%;
}

.ishop__page .ishop__search-btn,
.ishop__page .ishop__clear-btn {
  width: 15%;
  padding: 0.3rem 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #FFFFFF;
}


.shop_main-item {
  background: hsla(240, 7%, 12%, 0.88);
  box-shadow: 0px 4px 15px rgb(166 166 166 / 10%);
  border-radius: 10px;
  border-bottom: 7px solid rgba(85, 122, 149, 0.7);
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
  margin: auto;
  margin-bottom: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px;
  width: 23%;
  position: relative;
  height: 220px;
  justify-content: space-between;
}

.ishop__item-header {
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #6cdaee;
  margin-top: 7px;
  margin-bottom: auto;
}

.shop_main-item img {
  width: 55px;
  height: 65px;
  margin: auto;
  padding-bottom: 10px;
  position: absolute;
  top: 82px;
}

.shop_main-item button {
  width: 90%;
  margin: 0 auto;
  background: rgba(85, 178, 253, 0.10);
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  line-height: 12px;
  color: #55b2fd;
  padding: 8px 8px;
  border: 1px solid rgba(85, 178, 253, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.shop_main-item button:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
  box-shadow: 0 0 14px rgba(85, 178, 253, 0.35), 0 3px 10px rgba(85, 178, 253, 0.20);
  transform: translateY(-1px);
}

.shop_main-item button:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 6px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.shop_main-item button p {
  margin-bottom: unset;
  margin-right: 5px;
}

.shop_main-item button del {
  position: absolute;
  top: -17px;
  left: 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 12px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #FA8658;
  flex-direction: row;
  width: 100%;
  pointer-events: none;
  justify-content: center;
}

.ishop__discount {
  margin-bottom: unset;
  position: absolute;
  top: 7px;
  right: -7px;
  background: linear-gradient(180deg, #FF976F 0%, #F87D4D 100%);
  width: 60px;
  text-align: center;
  border-radius: 5px 0 0 5px;
  padding: 3px 0;
  box-shadow: 0px 1px 2px rgb(212 75 22 / 50%);
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  color: #FFFFFF;
}

.ishop__discount:before {
  content: '';
  display: block;
  position: absolute;
  bottom: -6px;
  right: 0;
  background: #B52C00;
  height: 10px;
  width: 10px;
  border-radius: 0 0 100% 0;
  z-index: -1;
}

.ishop__discount:empty {
  display: none;
}

.ishop__server-version {
  font-weight: 500;
  font-size: 8px;
  line-height: 10px;
  color: #9AD31F;
  position: absolute;
  top: 0;
  pointer-events: none;
  background: #E5F6D2;
  border-radius: 5px;
  padding: 2px;
  margin-left: 2px;
}

.ishop__modal .item_modal_content {
  background: hsla(240, 7%, 12%, 0.90);
  box-shadow: 0px -1px 4px rgba(200, 212, 212, 0.08), 0px 4px 4px rgba(5, 216, 231, 0.25);
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
  border-radius: 7px;
  padding: 1rem 3rem;
}

.ishop__modal .item_modal_name {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #5ab9ea;
  padding-top: 15px;
}

.ishop__modal .item_modal_server {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #d5dfea;
  margin-top: 10px;
  padding-bottom: 5px;
}

.ishop__modal .item_modal_net {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px auto auto auto;
  background: hsla(240, 7%, 12%, 0.80);
  box-shadow: 0px 4px 15px rgb(166 166 166 / 10%);
  border-radius: 7px;
  flex-wrap: wrap;
  padding: 15px 45px;
}

.ishop__modal .item_modal_info {
  width: 65%;
}

.ishop__modal .item_modal .close {
  position: relative;
  right: 20px;
  bottom: 5px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  opacity: .5;
}

.ishop__modal .item_modal .modal-header {
  top: 10px;
  padding: 0;
}

.ishop__modal .item_modal_info_li p {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  color: #d5dfea;
}

.ishop__modal .item_modal_info_li span {
  font-weight: 500;
  font-size: 14px;
  color: #6CDAEE;
}

.ishop__modal .item_modal_img {
  --size: 95px;
}

.ishop__modal .item_modal_info_li input {
  height: unset;
  background: #1e1f28;
  background-size: 16px 12px;
  border: 1px solid #17a2b8;
  border-radius: 0.25rem;
  -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  border: 1px solid #D7DBDE;
  border-radius: 4px;
  font-weight: 400;
  font-size: 14px;
  color: #96afc0;
  text-align: center;
}

.ishop__modal .item_modal_btn {
  width: 50%;
  margin: 25px auto 20px;
  padding: 8px 8px;
  background: rgba(85, 178, 253, 0.12);
  border: 1px solid rgba(85, 178, 253, 0.30);
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  line-height: 12px;
  color: #55b2fd;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__modal .item_modal_btn:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
  box-shadow: 0 0 18px rgba(85, 178, 253, 0.40), 0 4px 14px rgba(85, 178, 253, 0.25);
  transform: translateY(-2px);
}

.ishop__modal .item_modal_btn:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.ishop__modal .item_modal_info_li {
  padding-bottom: 10px;
  padding-top: 10px;
  grid-gap: 70px;
}

@media screen and (max-width: 991px) {
  .ishop__page .form-select:last-child {
    width: 9%;
    padding: 0.3rem 1rem 0.3rem 0.6rem;
  }
}

@media screen and (max-width: 700px) {
  .shop_main-item {
    width: 32%;
  }
}

@media screen and (max-width: 635px) {
  .ishop__page .ishop__cat-select {
    font-size: 0.775rem;
  }

  .ishop__modal.show .modal-dialog {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
  }
}

@media screen and (max-width: 535px) {
  .shop_main-item {
    width: 48%;
  }

  .search_mods,
  .search {
    flex-wrap: wrap;
  }

  .ishop__page .form-select:first-child {
    width: 100%;
    margin-bottom: 2%;
  }

  .ishop__page .ishop__cat-select:nth-child(2) {
    width: 80%;
  }

  .ishop__page .form-select:last-child {
    width: 18%;
  }
}

@media screen and (max-width: 500px) {
  .ishop__modal .item_modal_net {
    padding: 15px 15px;
  }

  .ishop__modal .item_modal_info_li span {
    white-space: nowrap;
  }

  .ishop__modal .item_modal_info_li {
    grid-gap: 50px;
  }
}

@media screen and (max-width: 440px) {
  .shop_main-item {
    width: 100%;
  }

  .ishop__page .form-control,
  .ishop__page .ishop__search-input {
    width: 100%;
    margin-bottom: 2%;
  }

  .ishop__page .ishop__search-btn,
  .ishop__page .ishop__clear-btn {
    width: 48%;
  }

  .ishop__modal .item_modal_img {
    --size: 85px;
  }

  .ishop__modal .item_modal_info {
    width: 71%;
  }

  .ishop__modal .item_modal_name {
    font-size: 22px;
  }

  .ishop__modal .item_modal_server {
    font-size: 15px;
  }

  .ishop__modal .item_modal_btn {
    width: 60%;
    font-size: 14px;
    margin: 20px auto 15px;
  }
}

@media screen and (max-width: 410px) {
  .ishop__modal .item_modal_info {
    width: 100%;
  }

  .ishop__modal .item_modal_info_li {
    grid-gap: 25%;
  }

  .ishop__modal .item_modal_net {
    justify-content: center;
  }

  .ishop__modal .item_modal_btn {
    width: 100%;
  }

  .ishop__modal .item_modal_name {
    width: 80%;
    margin: auto;
  }
}

@media screen and (max-width: 370px) {
  .ishop__modal .item_modal_info_li {
    grid-gap: 10%;
  }
}

/* === Б-8б: BEM из cart_history.css === */

.ishop__cart-header,
.ishop__history-header {
  text-align: center;
  margin: 20px auto;
  padding: 20px 0;
  font-size: 24px;
  font-weight: bold;
  color: #5ab9ea;
  width: 100%;
  display: block;
  background: hsla(240, 7%, 12%, 0.88);
  border-bottom: 7px solid rgba(85, 122, 149, 0.7);
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
  border-radius: 7px;
  margin-bottom: 10px;
}

.ishop__cart-controls {
  text-align: center;
  margin: 20px auto;
  padding: 20px 0;
  width: 100%;
  display: block;
}

.ishop__cart-controls .btn+.btn {
  margin-left: 15px;
}

.ishop__cart-main,
.ishop__history-main {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
  padding: 0px;
}

.ishop__ch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 200px;
  min-width: 196px;
  margin-bottom: 15px;
  padding: 10px;
  background: hsla(240, 7%, 12%, 0.88);
  box-shadow: 0px 4px 15px rgb(166 166 166 / 10%);
  border-radius: 10px;
  border-bottom: 7px solid rgba(85, 122, 149, 0.7);
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
}

.ishop__ch-item-header {
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #6cdaee;
  margin-top: 15px;
  margin-bottom: auto;
}

.ishop__ch-item img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 65px;
  margin: auto;
  margin-top: 20px;
  padding-bottom: 10px;
}

.ishop__ch-item button {
  width: 90%;
  margin: 0 auto;
  background: rgba(85, 178, 253, 0.10);
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  line-height: 12px;
  color: #55b2fd;
  padding: 8px 8px;
  border: 1px solid rgba(85, 178, 253, 0.28);
  margin-top: auto;
  margin-bottom: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__ch-item button:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
  box-shadow: 0 0 14px rgba(85, 178, 253, 0.35), 0 3px 10px rgba(85, 178, 253, 0.20);
  transform: translateY(-1px);
}

.ishop__ch-item button:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 6px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.ishop__ch-item button p {
  margin-bottom: unset;
  margin-right: 5px;
}

.ishop__ch-item .item-checkbox-container {
  position: absolute;
  top: 0px;
  right: -5px;
}

.ishop__ch-item .item-details {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  text-align: center;
  font-size: 11px;
  color: #d5dfea;
}

.ishop__ch-item .item-details p {
  margin: 1px 0;
}

.ishop__ch-item .remove-button {
  margin-top: 5px;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(254, 102, 111, 0.10);
  color: #fe666f;
  border: 1px solid rgba(254, 102, 111, 0.28);
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__ch-item .remove-button:hover {
  background: rgba(254, 102, 111, 0.22);
  border-color: rgba(254, 102, 111, 0.65);
  color: #fff;
  box-shadow: 0 0 12px rgba(254, 102, 111, 0.35), 0 3px 8px rgba(254, 102, 111, 0.20);
  transform: translateY(-1px);
}

.ishop__ch-item .remove-button:active {
  background: rgba(254, 102, 111, 0.30);
  border-color: rgba(254, 102, 111, 0.80);
  color: #fff;
  box-shadow: 0 0 6px rgba(254, 102, 111, 0.20);
  transform: translateY(0);
}

.ishop__ch-page {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding-left: unset;
  margin-bottom: unset;
}

.ishop__ch-page li {
  margin-right: 1%;
}

.ishop__ch-page li:last-child {
  margin-right: unset;
}

.ishop__ch-page-btn-none {
  border: 1px solid rgba(85, 178, 253, 0.28);
  outline: none !important;
  background: rgba(85, 178, 253, 0.10);
  border-radius: 4px;
  min-width: 30px;
  height: 35px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: unset;
  padding: unset;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__ch-page-btn-none:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  box-shadow: 0 0 14px rgba(85, 178, 253, 0.35);
  transform: translateY(-1px);
}

.ishop__ch-page-btn-none:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  box-shadow: 0 0 6px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.ishop__ch-page-btn-none:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ishop__ch-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 5px;
  color: #96afc0;
}

.ishop__ch-page-btn p {
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: unset;
  color: inherit;
}

.ishop__ch-page-btn-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #55b2fd, #6573ea);
}

.ishop__ch-arrow-l {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  top: 7px;
}

.ishop__ch-arrow-l-left {
  position: absolute;
  background-color: transparent;
  top: 11.85px;
  width: 11px;
  display: block;
  transform: rotate(215deg);
  float: right;
  border-radius: 2px;
}

.ishop__ch-arrow-l-left:after {
  content: "";
  background-color: #fff;
  width: 11px;
  height: 3px;
  display: block;
  float: right;
  border-radius: 2px 4px 4px 2px;
  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
  z-index: -1;
}

.ishop__ch-arrow-l-right {
  position: absolute;
  background-color: transparent;
  top: 6px;
  width: 11px;
  display: block;
  transform: rotate(-35deg);
  float: right;
  border-radius: 2px;
}

.ishop__ch-arrow-l-right:after {
  content: "";
  background-color: #fff;
  width: 11px;
  height: 3px;
  display: block;
  float: right;
  border-radius: 4px 2px 2px 4px;
  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
  z-index: -1;
}

.ishop__ch-arrow-r {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  top: 7px;
}

.ishop__ch-arrow-r-left {
  position: absolute;
  background-color: transparent;
  top: 11.85px;
  width: 11px;
  display: block;
  transform: rotate(325deg);
  float: right;
  border-radius: 2px;
}

.ishop__ch-arrow-r-left:after {
  content: "";
  background-color: #fff;
  width: 11px;
  height: 3px;
  display: block;
  float: right;
  border-radius: 2px 4px 4px 2px;
  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
  z-index: -1;
}

.ishop__ch-arrow-r-right {
  position: absolute;
  background-color: transparent;
  top: 6px;
  width: 11px;
  display: block;
  transform: rotate(215deg);
  float: right;
  border-radius: 2px;
}

.ishop__ch-arrow-r-right:after {
  content: "";
  background-color: #fff;
  width: 11px;
  height: 3px;
  display: block;
  float: right;
  border-radius: 4px 2px 2px 4px;
  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
  z-index: -1;
}

.ishop__ch-arrow-rl-off:after {
  background-color: #e1e1e1;
}

.ishop__ch-page-wrapper {
  text-align: center;
  margin: 20px 0;
}

@media screen and (max-width: 1170px) {
  .ishop__ch-item {
    width: 32%;
  }
}

@media screen and (max-width: 635px) {
  .ishop__ch-item {
    width: 48%;
  }
}

@media screen and (max-width: 350px) {
  .ishop__ch-item {
    width: 100%;
  }
}

/* === Кнопки корзины и пагинации (Bootstrap classes из PHP-generated HTML) === */
.ishop__page .btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ishop__page .btn:hover {
  text-decoration: none;
}

.ishop__page .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 6px;
}

/* Удалить (красный) */
.ishop__page .btn-danger {
  color: #fe666f;
  background: rgba(254, 102, 111, 0.10);
  border: 1px solid rgba(254, 102, 111, 0.28);
}

.ishop__page .btn-danger:hover {
  background: rgba(254, 102, 111, 0.22);
  border-color: rgba(254, 102, 111, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(254, 102, 111, 0.35), 0 4px 12px rgba(254, 102, 111, 0.20);
  transform: translateY(-2px);
}

.ishop__page .btn-danger:active {
  background: rgba(254, 102, 111, 0.30);
  border-color: rgba(254, 102, 111, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(254, 102, 111, 0.20);
  transform: translateY(0);
}

/* Предупреждение (оранжевый) */
.ishop__page .btn-warning {
  color: #FF976F;
  background: rgba(255, 151, 111, 0.10);
  border: 1px solid rgba(255, 151, 111, 0.28);
}

.ishop__page .btn-warning:hover {
  background: rgba(255, 151, 111, 0.22);
  border-color: rgba(255, 151, 111, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 151, 111, 0.35), 0 4px 12px rgba(255, 151, 111, 0.20);
  transform: translateY(-2px);
}

.ishop__page .btn-warning:active {
  background: rgba(255, 151, 111, 0.30);
  border-color: rgba(255, 151, 111, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 151, 111, 0.20);
  transform: translateY(0);
}

/* Основной (синий) */
.ishop__page .btn-primary {
  color: #55b2fd;
  background: rgba(85, 178, 253, 0.10);
  border: 1px solid rgba(85, 178, 253, 0.28);
}

.ishop__page .btn-primary:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(85, 178, 253, 0.35), 0 4px 12px rgba(85, 178, 253, 0.20);
  transform: translateY(-2px);
}

.ishop__page .btn-primary:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}

.ishop__page .btn-outline-primary {
  color: #5ab9ea;
  background: rgba(90, 185, 234, 0.06);
  border: 1px solid rgba(90, 185, 234, 0.28);
}

.ishop__page .btn-outline-primary:hover {
  color: #fff;
  background: rgba(90, 185, 234, 0.18);
  border-color: rgba(90, 185, 234, 0.55);
  box-shadow: 0 0 12px rgba(90, 185, 234, 0.25);
  transform: translateY(-1px);
}

/* === Пагинация Bootstrap (class="pagination") === */
.ishop__page .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 0;
  list-style: none;
  border-radius: 8px;
  margin: 10px 0;
}

.ishop__page .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: rgba(85, 178, 253, 0.08);
  border: 1px solid rgba(85, 178, 253, 0.20);
  border-radius: 6px;
  color: #7fb8f0;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ishop__page .page-item .page-link:hover {
  background: rgba(85, 178, 253, 0.20);
  border-color: rgba(85, 178, 253, 0.55);
  color: #fff;
  box-shadow: 0 0 10px rgba(85, 178, 253, 0.25);
}

.ishop__page .page-item.active .page-link {
  background: rgba(85, 178, 253, 0.28);
  border-color: rgba(85, 178, 253, 0.60);
  color: #fff;
  box-shadow: 0 0 12px rgba(85, 178, 253, 0.30);
}

.ishop__page .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #4a5568;
  cursor: not-allowed;
}