/* Страница товара — IT SERVICE (надстройка к pulsar.css) */

.buy-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(1rem + var(--safe-top)) max(clamp(1rem, 4vw, 3rem), var(--safe-right)) 1rem max(clamp(1rem, 4vw, 3rem), var(--safe-left));
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(6, 4, 10, 0.94), rgba(6, 4, 10, 0.75) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.buy-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 4, 10, 0.92);
}

.buy-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.buy-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.buy-brand span {
  color: var(--purple-bright);
}

.buy-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted-light);
  margin: 0;
}

@media (max-width: 600px) {
  .buy-tagline {
    width: 100%;
    order: 3;
    font-size: 0.8rem;
  }
}

.buy-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(7rem + var(--safe-top)) max(clamp(1rem, 4vw, 3rem), var(--safe-right)) max(2.5rem, var(--safe-bottom)) max(clamp(1rem, 4vw, 3rem), var(--safe-left));
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  margin-bottom: 2rem;
  transition: border-color 0.35s, box-shadow 0.35s;
}

.product-detail:hover {
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 48px rgba(168, 85, 247, 0.08);
}

.product-image {
  flex: 1;
  min-width: min(100%, 280px);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}

.product-image img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.12);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-image img:hover {
  transform: scale(1.03);
}

.product-info {
  flex: 1;
  min-width: min(100%, 280px);
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--white);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--purple-bright);
  margin: 0.5rem 0 1.25rem;
  text-shadow: 0 0 28px var(--purple-glow);
}

.old-price {
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 0.6rem;
  font-weight: 600;
}

.product-specs {
  margin: 1rem 0;
}

.product-specs h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--muted-light);
}

.specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.specs-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--white);
  min-width: 180px;
  font-size: 0.9rem;
}

.spec-value {
  color: var(--muted-light);
  font-size: 0.9rem;
}

.product-description {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border-left: 3px solid var(--purple);
}

.order-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.order-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: var(--black) !important;
  border: none;
  padding: 1rem 1.75rem;
  min-height: var(--touch-min);
  border-radius: 999px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 36px var(--purple-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px var(--purple-glow);
}

.order-btn:active {
  transform: translateY(0);
}

.order-btn .btn-icon {
  display: flex;
  align-items: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--purple-bright) !important;
  padding: 0.85rem 1.35rem;
  min-height: var(--touch-min);
  border-radius: 999px;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.back-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--purple-bright);
  color: var(--white) !important;
}

.buy-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem max(clamp(1rem, 4vw, 3rem), var(--safe-left)) max(2.5rem, var(--safe-bottom)) max(clamp(1rem, 4vw, 3rem), var(--safe-right));
  margin-top: 3rem;
  background: var(--black);
}

.buy-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.buy-footer-inner p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--muted-light);
}

.buy-footer-inner a {
  color: var(--purple-bright);
}

.buy-footer-inner a:hover {
  text-decoration: underline;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
}

.review-btn,
.home-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  min-height: var(--touch-min);
  box-sizing: border-box;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 1px solid var(--border);
}

.review-btn {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(109, 40, 217, 0.2));
  color: var(--white) !important;
}

.review-btn:hover {
  transform: translateY(-2px);
  border-color: var(--purple-bright);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.2);
}

.home-btn {
  background: var(--surface);
  color: var(--white) !important;
}

.home-btn:hover {
  transform: translateY(-2px);
  border-color: var(--purple-bright);
}

@media (max-width: 768px) {
  .order-btn {
    width: 100%;
  }

  .product-detail {
    flex-direction: column;
  }

  .product-image,
  .product-info {
    padding: 1.5rem;
  }

  .spec-label {
    min-width: 140px;
  }

  .buy-footer-inner {
    flex-direction: column;
  }

  .footer-actions {
    width: 100%;
  }

  .review-btn,
  .home-btn {
    width: 100%;
  }
}
