* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #fff;
}

.product-page {
  width: 100%;
  max-width: 1100px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }
}

.product-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-image-container {
  position: relative;
  background: linear-gradient(145deg, #2a2a3d, #1e1e2e);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.product-image-container:hover .product-image {
  transform: scale(1.08);
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image-container:hover .product-image-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: white;
  color: #1a1a2e;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.product-image-container:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background: #c8ff00;
  transform: scale(1.05) !important;
}

.upload-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.product-image-container:hover .upload-btn {
  opacity: 1;
  transform: translateY(0);
}

.upload-btn:hover {
  background: rgba(200, 255, 0, 0.2);
  border-color: #c8ff00;
  color: #c8ff00;
}

.upload-btn:hover svg {
  stroke: #c8ff00;
}

.upload-btn svg {
  transition: stroke 0.3s ease;
}

.upload-btn span {
  white-space: nowrap;
}

.product-image-container.drag-over {
  outline: 3px dashed #c8ff00;
  outline-offset: -3px;
  background: rgba(200, 255, 0, 0.05);
}

.product-image-container.drag-over::after {
  content: 'Отпустите для загрузки';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #c8ff00;
  font-size: 18px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 5;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  padding: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  border-color: rgba(200, 255, 0, 0.5);
  transform: translateY(-2px);
}

.thumb.active {
  border-color: #c8ff00;
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-brand {
  background: linear-gradient(135deg, #c8ff00, #a0d900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ffd700;
  font-size: 16px;
}

.rating-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.product-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 15px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(200, 255, 0, 0.1);
  border-color: rgba(200, 255, 0, 0.3);
}

.feature-icon {
  font-size: 16px;
}

.product-price-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-price {
  font-size: 40px;
  font-weight: 800;
  color: #c8ff00;
}

.product-price-old {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.promo-timer {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(238, 90, 36, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.timer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.timer-label svg {
  color: #ff6b6b;
  animation: pulse-icon 1s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-digits {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.timer-value {
  font-size: 24px;
  font-weight: 800;
  color: #ff6b6b;
  font-family: 'Inter', monospace;
  line-height: 1;
}

.timer-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-sep {
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  margin-top: -8px;
}

.product-colors {
  display: flex;
  align-items: center;
  gap: 12px;
}

.colors-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.color-options {
  display: flex;
  gap: 10px;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.4);
}

.color-btn.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.selected-color {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 4px;
}

.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
  width: 44px;
  height: 48px;
  border: none;
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover:not(:disabled) {
  background: rgba(200, 255, 0, 0.2);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-input {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  height: 54px;
  background: linear-gradient(135deg, #c8ff00, #a0d900);
  color: #1a1a2e;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 255, 0, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.wishlist-btn {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  transform: scale(1.05);
}

.wishlist-btn.active {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
  animation: heart-pop 0.4s ease;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.05); }
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.meta-item svg {
  color: #c8ff00;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(46, 204, 113, 0.4);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Характеристики */
.product-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.specs-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.specs-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 255, 0, 0.3);
}

.specs-toggle svg {
  transition: transform 0.3s ease;
}

.specs-toggle.active svg {
  transform: rotate(180deg);
}

.specs-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.specs-content.open {
  max-height: 400px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.spec-value {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

/* Отзывы */
.product-reviews {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reviews-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.write-review-btn {
  background: transparent;
  border: 1px solid rgba(200, 255, 0, 0.5);
  color: #c8ff00;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.write-review-btn:hover {
  background: rgba(200, 255, 0, 0.1);
  border-color: #c8ff00;
}

.reviews-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rating-number {
  font-size: 48px;
  font-weight: 800;
  color: #ffd700;
  line-height: 1;
}

.rating-stars {
  font-size: 18px;
  color: #ffd700;
  letter-spacing: 2px;
}

.reviews-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  min-width: 120px;
}

.stat-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8ff00, #a0d900);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.stat-value {
  font-size: 12px;
  font-weight: 700;
  color: #c8ff00;
  min-width: 28px;
  text-align: right;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.reviewer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviewer-name {
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.review-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.review-rating {
  font-size: 14px;
  color: #ffd700;
  letter-spacing: 1px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.review-likes {
  display: flex;
  gap: 12px;
}

.like-btn,
.dislike-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-btn:hover {
  border-color: #2ecc71;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.dislike-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.like-btn.liked,
.dislike-btn.disliked {
  background: rgba(200, 255, 0, 0.1);
  border-color: #c8ff00;
  color: #c8ff00;
}

/* Доставка и оплата */
.delivery-section,
.payment-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
}

.section-title svg {
  color: #c8ff00;
}

.delivery-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-card input[type="radio"] {
  display: none;
}

.option-card input[type="radio"]:checked + .option-content + .option-check {
  background: #c8ff00;
  border-color: #c8ff00;
}

.option-card input[type="radio"]:checked + .option-content + .option-check::after {
  opacity: 1;
}

.option-card:has(input:checked) {
  background: rgba(200, 255, 0, 0.08);
  border-color: rgba(200, 255, 0, 0.4);
}

.option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.option-price {
  font-size: 13px;
  font-weight: 600;
  color: #c8ff00;
}

.option-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.option-check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a2e;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Иконки карт */
.payment-icons {
  display: flex;
  gap: 6px;
}

.card-icon {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.card-icon.visa {
  background: #1a1f71;
  color: white;
}

.card-icon.mc {
  background: #eb001b;
  color: white;
}

/* СБП бейдж */
.sbp-badge {
  background: linear-gradient(135deg, #00b4e6, #0080c6);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* Рассрочка */
.installment-price {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
