/* 3D Market — базовый стиль. Можно заменить на свой css/style.css из фронтенд-версии. */
:root {
  --purple: #6f42c1;
  --purple-dark: #59359c;
  --bg: #f6f4fb;
}
body { background: var(--bg); color: #212529; }
a { color: var(--purple); }

.brand-purple { color: var(--purple); }

.btn-purple {
  background: var(--purple);
  color: #fff;
  border: none;
}
.btn-purple:hover, .btn-purple:focus {
  background: var(--purple-dark);
  color: #fff;
}
.btn-outline-purple {
  color: var(--purple);
  border: 1px solid var(--purple);
}
.btn-outline-purple:hover {
  background: var(--purple);
  color: #fff;
}

.btn-cat {
  border: 1px solid #d9cff0;
  border-radius: 20px;
  padding: .35rem 1rem;
  background: #fff;
  color: #333;
}
.btn-cat.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.hero {
  background: linear-gradient(120deg, #efe7fb, #f9f5ff);
  border: 1px solid #e4d9f7;
}

.product-card { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(111,66,193,.12); }

.img-wrap { height: 180px; overflow: hidden; border-radius: .375rem .375rem 0 0; background: #efeaf7; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { color: var(--purple); font-weight: 600; }

.product-title { font-weight: 600; }
.seller { color: #6c757d; font-size: .875rem; }
.price { font-weight: 700; color: var(--purple); }

.cart-row { background: #fff; border: 1px solid #eee; border-radius: .5rem; }
.cart-row img { width: 80px; height: 60px; object-fit: cover; border-radius: .375rem; }

.cart-badge { font-size: .65rem; }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.bump { animation: bump .4s ease; }

.footer { background: #efeaf7; }
.footer a { text-decoration: none; }

.list-group-item { background: transparent; }

.hero {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  margin-bottom: 2rem !important;
}
.hero .row { margin-top: 0 !important; margin-bottom: 0 !important; }
.hero h1, .hero h2, .hero p { margin-bottom: .35rem; }
@media (max-width: 475px) {
  .hero { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
}
.stl-banner { flex-shrink: 0; white-space: nowrap; }
.stl-banner .stl-short { display: none; }
@media (max-width: 991px) {
  .stl-banner { padding: .3rem .6rem; gap: .35rem; border-radius: 18px; }
  .stl-banner small { display: none; }
  .stl-banner .stl-full { display: none; }
  .stl-banner .stl-short { display: inline; }
}

.stl-banner {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: 24px;
  background: linear-gradient(120deg, #6f42c1, #9b6bdd);
  color: #fff; text-decoration: none; line-height: 1.15;
}
.stl-banner:hover { filter: brightness(1.08); color: #fff; }
.stl-banner strong { font-size: .9rem; letter-spacing: .02em; }
.stl-banner small { font-size: .72rem; opacity: .85; }

/* Модалка товара: ограничиваем высоту фото */
#productModal .modal-dialog {
  max-width: 640px;
}
#productModal .carousel-item img {
  max-height: 60vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
#productModal .btn-close {
  z-index: 1100;
}
.dl-count {
  color: #9a8fb5;
  font-size: .78rem;
  line-height: 1.1;
}
.dl-count i { font-size: .7rem; }

@media (max-width: 767px) {
  .navbar .container {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    width: 100%;
  }
  .stl-banner {
    order: 6;
    margin-left: 0 !important;
  }
  .stl-banner small,
  .stl-full {
    display: none;
  }
}
