/* ===== Стили карточки товара ===== */
.product-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 80px 60px;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.product-info {
  flex: 1;
  max-width: 400px;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #000;
}

.price {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000;
}

/* ===== Кнопки цветов и памяти ===== */
.color-options,
.memory-options,
.sim-options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sim-options {
  justify-content: center;
}

.color-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative; right: -2px
}

.color-btn.active {
  border-color: #e10075;
  transform: scale(1.1);
}

.mem-btn,
.sim-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.mem-btn.active,
.sim-btn.active {
  border-color: #e10075;
  color: #e10075;
  background: #fff5fb;
}

.mem-btn:hover,
.sim-btn:hover {
  border-color: #e10075;
}

/* ===== СЕКЦИЯ SIM ===== */
.sim-section {
  margin-bottom: 20px;
}

.sim-section p {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

/* ===== КНОПКИ ДЕЙСТВИЙ: В КОРЗИНУ + ИЗБРАННОЕ ===== */
.product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.buy-btn {
  background: linear-gradient(180deg,#ff2c9c,#d40073);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}

.buy-btn:hover {
  background: linear-gradient(180deg, #ff2c9c, #d40073);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(225,0,117,0.3);
}

.product-fav {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.product-fav svg {
  width: 24px;
  height: 24px;
  stroke: #000;
  fill: none;
  stroke-width: 2;
  transition: all 0.2s ease;
}

.product-fav:hover {
  background: #ffe6f2;
  border-color: #e10075;
}

.product-fav:hover svg {
  stroke: #e10075;
  transform: scale(1.1);
}

.product-fav.active {
  background: #ffe6f2;
  border-color: #e10075;
}

.product-fav.active svg {
  fill: #e10075;
  stroke: #e10075;
}

/* ===== ХАРАКТЕРИСТИКИ ===== */
.specifications {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.specifications h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

.spec-label {
  color: #666;
  font-weight: 400;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.spec-value {
  color: #111;
  font-weight: 500;
  text-align: right;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

/* ===== Галерея изображений ===== */
.product-gallery {
  position: relative;
  text-align: center;
}

.product-gallery img {
  width: 400px;
  border-radius: 10px;
  transition: opacity 0.4s;
}

.thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.thumbs img {
  width: 60px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.thumbs img.active {
  border-color: #e10075;
  transform: scale(1.05);
}

.arrow {
  position: absolute;
  top: 40%;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.arrow.left { left: -50px; }
.arrow.right { right: -50px; }

.arrow:hover {
  background: #e10075;
  color: white;
}

.product-gallery img#mainImg {
  width: 420px;
  height: 420px;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.4s ease;
  background-color: #fff;
}


/* Блюр-оверлей управляется через body::after в styles.css.
   pointer-events:none для .product-container прописан там же. */

/* Стили для кнопок +/- на странице товара */
    .product-actions {
      display: flex;
      gap: 10px;
      align-items: center;
    }
    
    .quantity-controls {
      display: none;
      align-items: center;
      gap: 10px;
    }
    
    .quantity-controls.active {
      display: flex;
    }
    
    .buy-btn.hidden {
      display: none;
    }
    
    .qty-minus-product,
    .qty-plus-product {
      width: 40px;
      height: 40px;
      border: 1px solid #ddd;
      background: white;
      border-radius: 8px;
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .qty-minus-product:hover,
    .qty-plus-product:hover {
      background: #f5f5f5;
    }
    
    .quantity-controls .qty-value {
      min-width: 30px;
      text-align: center;
      font-weight: 600;
    }