/* N1ceStudio — shop (тёмная тема, в стиле Tilda-макета магазина) */
.shop-custom-wrapper {
  --bg: #050508;
  --bg-2: #0d0f1a;
  --card: #11131f;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --text-dim: #8a8fa8;
  --accent: #2962ff;
  --accent-2: #00b4ff;
  --green: #4ade80;
  --purple: #a855f7;
}
body { scrollbar-width: thin; }

/* Тёмный фон страницы магазина */
body, .t-records { background-color: #050508; }

/* === HERO === */
.shop-hero {
  position: relative;
  padding: 110px 20px 70px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(41, 98, 255, 0.15) 0%, transparent 60%);
}
.shop-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(800px circle at 20% 0%, rgba(41,98,255,.10), transparent 55%),
              radial-gradient(700px circle at 90% 20%, rgba(168,85,247,.10), transparent 55%);
  pointer-events: none;
}
.shop-hero-inner { position: relative; z-index: 2; }
.shop-hero-title {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--text);
}
.shop-hero-title .white { color: #ffffff; }
.shop-hero-title .blue {
  color: #2962ff;
  text-shadow: 0 0 40px rgba(41, 98, 255, 0.4);
}
.shop-hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* === КНОПКИ HERO === */
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.25s ease;
  cursor: pointer; border: none; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #2962ff 0%, #5a85ff 100%);
  color: #ffffff; box-shadow: 0 4px 20px rgba(41, 98, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(41, 98, 255, 0.5); }
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(-3px); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #ffffff; border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

/* === БЕГУЩАЯ СТРОКА === */
.combined-section { position: relative; padding: 20px 0 30px; overflow: hidden; }
.ticker-wrap {
  width: 100%; overflow: hidden; padding: 40px 0 20px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  z-index: 1;
}
.ticker { display: flex; animation: tickerScroll 30s linear infinite; width: max-content; }
.ticker:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  white-space: nowrap; font-size: 18px; font-weight: 600;
  color: rgba(255, 255, 255, 0.35); text-transform: uppercase; letter-spacing: 2px;
  transition: color 0.3s; cursor: default;
}
.ticker-item:hover { color: rgba(255, 255, 255, 0.8); }
.ticker-item .dot-sep { width: 6px; height: 6px; border-radius: 50%; background: #2962ff; flex-shrink: 0; box-shadow: 0 0 8px rgba(41, 98, 255, 0.6); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-divider { width: 100%; max-width: 600px; margin: 10px auto 30px; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(168,85,247,0.5) 30%, rgba(41,98,255,0.8) 50%, rgba(168,85,247,0.5) 70%, transparent 100%); box-shadow: 0 0 12px rgba(41,98,255,0.4); position: relative; z-index: 1; }
.ticker-divider::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 10px 3px rgba(168,85,247,0.8), 0 0 20px 6px rgba(41,98,255,0.4); animation: dividerPulse 3s ease-in-out infinite; }
@keyframes dividerPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; } }

/* === КАТАЛОГ === */
.shop-section { padding: 40px 0 90px; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.shop-cat {
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: #8a8fa8; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .25s; font-family: 'Inter', sans-serif;
}
.shop-cat:hover, .shop-cat.active { color: #fff; border-color: rgba(41,98,255,.6); background: rgba(41,98,255,.15); }

/* Сетка 4 в ряд (по настройкам Tilda: 4 карточки, отступы 40px, квадрат 1:1) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (max-width: 820px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px)  { .shop-grid { grid-template-columns: 1fr; } }

.shop-card {
  background: linear-gradient(180deg, #141724 0%, #10121d 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  transition: all .35s cubic-bezier(.4,0,.2,1); color: inherit; position: relative; cursor: pointer;
  height: 100%;
}
.shop-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(41,98,255,.5), transparent 40%, transparent 60%, rgba(168,85,247,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 3;
}
.shop-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 24px 60px rgba(41,98,255,.18), 0 4px 16px rgba(0,0,0,.45); }
.shop-card:hover::before { opacity: 1; }
.shop-card-media { position: relative; aspect-ratio: 4/3; background: #0d0f1a; overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.08); }
.shop-card-shine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s ease; mix-blend-mode: overlay;
}
.shop-card:hover .shop-card-shine { transform: translateX(120%); }
.shop-card-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(5,5,8,.72); border: 1px solid rgba(41,98,255,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 5px 11px; border-radius: 100px; max-width: calc(100% - 90px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-card-discount {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  color: #0a0b10; background: linear-gradient(135deg, #4ade80, #22d3ee);
  padding: 5px 11px; border-radius: 100px; box-shadow: 0 6px 18px rgba(74,222,128,.35);
}
.shop-card-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #a855f7, #6366f1);
  padding: 5px 13px; border-radius: 100px; box-shadow: 0 6px 18px rgba(168,85,247,.4);
}
.shop-card-body { padding: 20px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.shop-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 8px; color: #fff; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card p { color: #8a8fa8; font-size: 13.5px; flex: 1; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 10px; }
.shop-card-body .shop-card-foot:last-child { margin-top: auto; padding-top: 18px; }
.shop-card-prices { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.shop-card-price { font-weight: 900; font-size: 22px; color: #fff; white-space: nowrap; }
.shop-card-old { font-size: 14px; color: #7c8199; text-decoration: line-through; }
.shop-card-metrics { display: flex; align-items: center; gap: 12px; }
.scm { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #8a8fa8; white-space: nowrap; }
.scm svg { opacity: .8; }
.scm:hover { color: #c0c5e0; }
.shop-card-btn {
  background: linear-gradient(135deg, #2962ff 0%, #5a85ff 100%);
  border: none; color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 16px; border-radius: 12px; cursor: pointer; transition: all .25s;
  font-family: 'Inter', sans-serif; box-shadow: 0 6px 16px rgba(41,98,255,.28); white-space: nowrap;
}
.shop-card-btn:hover { background: linear-gradient(135deg, #3b72ff 0%, #6b93ff 100%); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(41,98,255,.42); }

/* Карточка-кнопка рознится: вся карточка кликабельна для попапа;
   кнопка «В корзину» работает отдельно (stopPropagation в JS). */

/* === ПОПАП ТОВАРА === */
.shop-modal-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(5,5,8,0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.shop-modal-overlay.active { opacity: 1; visibility: visible; }
.shop-modal {
  background: linear-gradient(180deg, #0f111a 0%, #0a0c14 100%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 24px;
  max-width: 720px; width: 100%; max-height: 90vh;
  position: relative; transform: scale(0.9) translateY(20px); transition: transform .3s ease;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8); overflow: hidden;
}
.shop-modal-overlay.active .shop-modal { transform: scale(1) translateY(0); }
.shop-modal-scroll { max-height: 90vh; overflow-y: auto; }
.shop-modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; z-index: 10;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; color: #8a8fa8; font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.shop-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }
.shop-modal-content { padding: 40px; }
.shop-modal-category {
  display: inline-block; padding: 6px 14px; background: rgba(41,98,255,0.15);
  border: 1px solid rgba(41,98,255,0.3); border-radius: 8px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #00b4ff; margin-bottom: 16px;
}
.shop-modal-title { font-size: 30px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; color: #fff; }
.shop-modal-desc { font-size: 15px; color: #aeb4cc; line-height: 1.75; margin-bottom: 24px; }
.shop-modal-desc p { margin-bottom: 10px; }
.shop-modal-desc ul { padding-left: 20px; margin: 8px 0; }
.shop-modal-desc li { margin: 4px 0; }
.shop-modal-desc strong { color: #fff; }
.shop-modal-img { width: 100%; border-radius: 16px; overflow: hidden; margin-bottom: 24px; aspect-ratio: 16/10; background:#0d0f1a; }
.shop-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-modal-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.shop-modal-price {
  font-size: 42px; font-weight: 900;
  background: linear-gradient(135deg, #4a7cff 0%, #a855f7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.shop-modal-old { font-size: 20px; color: #f50d0d; text-decoration: line-through; }
.shop-modal-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.shop-modal-btn {
  padding: 16px 32px; background: linear-gradient(135deg, #2962ff 0%, #5a85ff 100%);
  color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all .25s;
  box-shadow: 0 10px 40px rgba(41,98,255,0.4);
}
.shop-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 50px rgba(41,98,255,0.6); }
.shop-modal-back {
  padding: 16px 32px; background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s;
}
.shop-modal-back:hover { background: rgba(255,255,255,0.1); }

/* === АНИМАЦИИ === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === АДАПТИВ === */
@media (max-width: 900px) {
  .shop-modal-content { padding: 30px 20px; }
  .shop-hero { padding: 70px 20px 40px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .shop-modal-price { font-size: 36px; }
}