.shop-section {
    padding: 40px 20px;
    position: relative;
}

.shop-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.shop-tabs .tab {
    padding: 10px 18px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: 0.25s;
    white-space: nowrap;
}

.shop-tabs .tab.active {
    background: rgba(0,255,255,0.15);
    border-color: #00faff;
    box-shadow: 0 0 12px #00faff;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.shop-card:hover {
    border-color: #00fff2;
    transform: translateY(-4px);
    box-shadow: 0 0 15px #00fff2;
}

.shop-card img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0,255,255,0.4));
}

.shop-card .title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.shop-card .price {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #00ffc8;
    text-shadow: 0 0 10px #00ffc8;
}


.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.shop-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #00ffbf;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.shop-filter-btn.active {
  background: #00ffbf;
  color: #03050a;
  box-shadow: 0 0 12px rgba(0, 255, 191, 0.7);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.shop-card-category {
  color: #00ffbf;
}



.shop-card-title {
  font-size: 16px;
  margin: 4px 0 6px;
}

.shop-card-desc {
  font-size: 13px;
  opacity: 0.85;
}

.shop-card-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.shop-empty {
  opacity: 0.7;
  font-size: 14px;
}

.ds {
    color: rgb(255, 84, 84);
    cursor: grab;
}


.shop-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px;
  align-items: center;
  text-align: center;
}

/* Контент */
.shop-card-content {
  flex-grow: 1;
  text-align: center;
}

.shop-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Футер карточки */
.shop-card-footer {
  margin-top: 16px;
  text-align: center;
}

.shop-buy-btn {
  width: auto;
  margin-bottom: 6px;
  padding: 10px 22px;
  border-radius: 999px;
}

.shop-buy-note {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.55;
  text-align: center;
}

.shop-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 180, 0.35);
}

.shop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.shop-badge.popular {
  background: rgba(255, 80, 80, 0.15);
  color: #ff6b6b;
}

.shop-badge.top {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}

.shop-badge.new {
  background: rgba(0, 255, 180, 0.15);
  color: #00ffb4;
}

.skeleton-card {
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.1),
    rgba(255,255,255,0.05)
  );
  animation: skeleton 1.2s infinite;
}

@keyframes skeleton {
  0% { background-position: 0% }
  100% { background-position: 200% }
}




/* МОДАЛКА */
.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.shop-modal.hidden {
  display: none;
}

.shop-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.shop-modal-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: #0b0f14;
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,255,200,.25);
}

.shop-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

.shop-card {
  background: radial-gradient(circle at top, rgba(0,255,191,0.14), #05070c 50%);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
  border: 1px solid rgba(0,255,180,.15);
  box-shadow: 0 0 18px rgba(0,255,191,0.12);
  
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,255,180,.15);
}

.shop2-card {
    max-width: 320px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    cursor: grab;
    border-radius: 18px;
    padding: 16px 18px;
    background: radial-gradient(circle at top, rgba(0,255,191,0.14), #05070c 50%);
    border: 1px solid rgba(0,255,191,0.25);
    box-shadow: 0 0 18px rgba(0,255,191,0.12);
    display: flex;
    lex-direction: column;
    justify-content: space-between;
}

.shop-card-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shop-card-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,255,180,.35));
}

.shop-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin: 10px 0 6px;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-price {
  font-size: 18px;
  font-weight: 700;
  color: #ff3c00;
  text-align: center;
  margin-bottom: 12px;
}

.shop-card-btn {
  margin-top: auto;
  padding: 10px 0;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00ffb3, #00c28a);
  color: #001410;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.shop-card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,255,180,.5);
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ffcf00, #ff9900);
  color: #000;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.shop-filters button {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(0,255,180,.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
  margin-top: 30px;
}

.shop-filters button:hover,
.shop-filters button.active {
  background: #00ffb3;
  color: #001410;
}

.shop-sort button {
      background: rgba(255,255,255,.08);
  border: 1px solid rgba(0,255,180,.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;

}

.shop-sort button:hover,
.shop-sort button.active {
      background: #00ffb3;
  color: #001410;
}

.skeleton-card {
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(
    110deg,
    #0b1f1b 25%,
    #10362e 37%,
    #0b1f1b 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border: 1px solid rgba(0,255,180,.12);
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0 }
  100% { background-position: 0 0 }
}

.shop-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  color: #ffffff;
}

.badge-popular {
  background: linear-gradient(135deg, #005e42, #00722f);
}

.badge-hit {
  background: linear-gradient(135deg, #ff3d3d, #ff9900);
}

.badge-sale {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}

.badge-top {
  background: linear-gradient(135deg, #910000, #00740a);
  color: #fff;
}

.badge-new { background: #660000; }

.old-price {
  text-decoration: line-through;
  color: #ff0000;
  font-size: 13px;
  text-align: center;
}

/*.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: radial-gradient(120% 120% at 50% 0%, #275c12 0%, #290e09 60%);
  border-radius: 20px;
  padding: 24px;
  width: 360px;
  text-align: center;
  position: relative;
  animation: modalIn .3s ease;
}
*/
@keyframes modalIn {
  from { transform: scale(.85); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}

.shop-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.shop-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.918);
}

.shop-modal-window {
  position: relative;
  z-index: 2;
  
}

/* overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.hidden {
  display: none;
}

/* card */
.modal-card {
  background: radial-gradient(
    120% 120% at 50% 0%,
    #0ef3b0 0%,
    #061814 35%,
    #050505 100%
  );
  border-radius: 18px;
  width: 420px;
  max-width: 92%;
  padding: 22px;
  color: #fff;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(14,243,176,0.25),
    0 30px 80px rgba(0,0,0,0.8);
}

/* close 
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
}
*/
/* image */
.modal-image {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
/*
.modal-image img {
  max-width: 260px;
  filter: drop-shadow(0 10px 40px rgba(14,243,176,.4));
}
*/
/* content */
.modal-content {
  text-align: center;
}

.modal-badge {
  display: inline-block;
  background: linear-gradient(90deg,#ff9f0f,#ff3d00);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 26px;
  font-weight: 700;
  color: #0ef3b0;
  margin: 10px 0;
}

.modal-description {
  font-size: 14px;
  line-height: 1.5;
  color: #cfdede;
}

.modal-warning {
  font-size: 12px;
  color: #ff1f1f;
  margin: 12px 0;
}

/* buy */
.modal-buy-btn {
  display: block;
  background: linear-gradient(90deg,#f1f1f1,#00d39b);
  color: #000000;
  text-decoration: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 12px;
  transition: transform .2s, box-shadow .2s;
}
.modal-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14,243,176,.45);
}



.modal-overlay {
  padding: 18px;
  box-sizing: border-box;
}

.modal-card{
  max-height: calc(110vh - 36px);
  overflow-y: auto;
}


.modal-image img{
  max-height: 240px;
  height: auto;
  width: auto;
  max-width: 260px;
}


.modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.stat {
  background: rgba(14,243,176,0.08);
  border: 1px solid rgba(14,243,176,0.25);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.stat-label {
  font-size: 11px;
  color: #9adfd0;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #0ef3b0;
}



.weapon-stats {
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

.weapon-stats h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.stat-row.damage {
  flex-direction: column;
  gap: 4px;
}

.stat-row span {
  opacity: 0.7;
}

.stat-row strong {
  font-weight: 600;
}

.stat.damage {
  flex-direction: column;
  gap: 6px;
}

.damage-list {
  font-size: 13px;
  line-height: 1.4;
}




.compare-btn {
  background: transparent;
  border: 1px solid rgba(0,255,170,.4);
  color: #00ffb0;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: .2s;
  margin-top: 10px;
}

.compare-btn.active {
  background: #00ffb0;
  color: #000;
}

.compare-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,255,180,.5);
}

.compare-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(5, 61, 19);
  border-radius: 14px;
  border-color: red;
  border-width: -1px;
  border: solid;
  padding: 10px 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 0 30px rgba(0,255,170,.3);
  z-index: 9999;
}
.compare-bar.hidden {
  display: none;
}

.shop-card {
  transition: 
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 255, 180, 0.25);
  border-color: rgba(0, 255, 180, 0.6);
}

.shop-card:hover .shop-btn-main {
  filter: brightness(1.1);
}

.shop-btn-main {
  background: linear-gradient(135deg, #00ffb3, #00d4a4);
  color: #002b23;
}

.shop-btn-secondary {
  background: transparent;
  border: 1px solid rgba(0,255,180,.4);
  color: #00ffb3;
}

.shop-btn-secondary.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-secondary {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 78px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 255, 180, 0.25);
  border-color: rgba(0, 255, 180, 0.6);
}


.compare-open-modal {
  position: absolute;
  top: 0px;
  right: -122px;
  width: 98px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5, 61, 19, 0.938);
  color: #fff;
  cursor: pointer;

}

.compare-open-modal:hover {
      transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 255, 180, 0.25);
  border-color: rgba(0, 255, 180, 0.6);
}

.compare-row {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.compare-label {
  opacity: .7;
}

.compare-cell {
  padding: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  text-align: center;
}

.compare-cell.best {
  background: rgba(0,255,180,.15);
  color: #00ffc2;
  font-weight: 700;
}

.compare-btn.disabled,
.compare-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
  display: none;
}


@media (max-width: 720px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .shop-card img {
        height: 100px;
    }

    .shop-card .title {
        font-size: 16px;
    }

    .shop-card .price {
        font-size: 18px;
    }

    .shop-filters {
        gap: 6px;
    }

    .shop-filter-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}




/* ===============================
    СРАВНЕНИЕ ТОВАРОВ 
================================ */

.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-modal.hidden {
  display: none;
}

/* ===============================
   WINDOW
================================ */

.compare-window {
  background: radial-gradient(
    120% 120% at 50% 0%,
    #0ef3a640 0%,
    #071c17 55%,
    #040b09 100%
  );

  border-radius: 18px;
  padding: 28px 32px 24px;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;

  overflow-y: auto;

  box-shadow:
    0 0 0 1px rgba(0, 255, 180, 0.15),
    0 25px 80px rgba(0, 0, 0, 0.8);

  position: relative;
}

/* ===============================
   HEADER
================================ */

.compare-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
  color: #eafff6;
}

/* Close button */
.compare-close {
  position: absolute;
  top: 14px;
  right: 16px;

  background: none;
  border: none;
  color: #ffaa9f;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.8;
}

.compare-close:hover {
  opacity: 1;
}

/* ===============================
   TABLE
================================ */

.compare-table {
  display: grid;
  gap: 10px;
}

/* header row */
.compare-header {
  display: grid;
  grid-template-columns: 220px repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.compare-col-title {
  background: linear-gradient(180deg, #0df3a630, #0b2b22);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  color: #aaffea;
}

/* rows */
.compare-row {
  display: grid;
  grid-template-columns: 220px repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

/* left labels */
.compare-label {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  color: #9de6d1;
}

/* values */
.compare-cell {
  background: rgba(0, 255, 180, 0.06);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #eafff6;
}

/* BEST VALUE */
.compare-cell.best {
  background: linear-gradient(180deg, #c02222, #a1a1a1);
  color: #042019;
  box-shadow: 0 0 15px rgba(139, 44, 44, 0.6);
}

/* ===============================
   ACTIONS
================================ */

.compare-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.compare-clear {
  background: transparent;
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ff9c9c;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

.compare-clear:hover {
  background: rgba(255, 90, 90, 0.15);
}


/* ===== Compare Modal ===== */
#compare-modal.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
}

#compare-modal.modal.hidden{ display: none; }
#compare-modal.modal:not(.hidden){ display: flex; }

#compare-modal.modal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(10px);
}

#compare-modal .modal-box{
  position: relative;
  width: min(1100px, 100%);
  max-height: min(82vh, 900px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(8,25,22,.95), rgba(10,14,18,.92));
  border: 1px solid rgba(0,255,200,.18);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 80px rgba(0,0,0,.6);
}

#compare-modal .modal-box.wide{
  width: min(1200px, 100%);
}

#compare-modal h2{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #eafff9;
}

#compare-modal .modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
  display: none;
}

#compare-modal .compare-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* таблица сравнения */
#compare-table table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

#compare-table thead th{
  position: sticky;
  top: 0;
  background: rgba(10,14,18,.90);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  z-index: 2;
  text-align: left;
  color: rgba(255,255,255,.80);
}

#compare-table tbody td{
  background: rgba(0,0,0,.20);
  padding: 12px;
  border: 1px solid rgba(0,255,200,.12);
}

#compare-table tbody tr td:first-child{
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
#compare-table tbody tr td:last-child{
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* подсветка лучших значений  */
.compare-best{
  background: rgba(0,255,170,.10) !important;
  border-color: rgba(0,255,170,.35) !important;
  color: #00ffb8;
  font-weight: 800;
}
