/* CSS блок (добавьте в настройки страницы -> Собственные CSS) */
.custom-product-card {
  font-family: 'Arial', sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 15px;
  background: #fffaf0;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  border: 1px solid #ffe4b5;
}

.chocolate-type, .quantity-selector {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e0c070;
}

.chocolate-type h3, .quantity-selector h3 {
  margin-bottom: 15px;
  color: #5c3d00;
  font-size: 20px;
}

.type-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.type-options button {
  padding: 15px 25px;
  background: #f8f0e0;
  border: 2px solid #e0c070;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  color: #5c3d00;
  flex: 1;
  min-width: 120px;
}

.type-options button:hover {
  background: #f0e0c0;
}

.type-options button.active {
  background: #e0c070;
  color: white;
  border-color: #d4b05f;
  box-shadow: 0 4px 8px rgba(224, 192, 112, 0.3);
}

.qty-controls {
  display: flex;
  align-items: center;
  margin-top: 15px;
  max-width: 300px;
}

.qty-controls button {
  width: 50px;
  height: 50px;
  font-size: 24px;
  background: #f0e0c0;
  border: 2px solid #e0c070;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-controls button:hover {
  background: #e0c070;
  color: white;
}

#product-qty {
  width: 150px;
  height: 50px;
  margin: 0 15px;
  padding: 0 15px;
  text-align: center;
  border: 2px solid #e0c070;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #5c3d00;
  background: #fff9e6;
}

.price-display {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  border: 2px solid #ffd700;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.price-unit, .price-total {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 20px;
  color: #5c3d00;
}

.price-unit strong, .price-total strong {
  font-size: 24px;
  color: #c00;
}

.add-to-cart {
  width: 100%;
  padding: 18px;
  background: #e0c070;
  background: linear-gradient(to bottom, #e0c070, #d4b05f);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(224, 192, 112, 0.4);
}

.add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(224, 192, 112, 0.6);
}

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

.cart-icon {
  transition: transform 0.3s;
}

.add-to-cart:hover .cart-icon {
  transform: scale(1.2);
}

.price-table {
  margin-top: 40px;
  overflow-x: auto;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.price-table th, .price-table td {
  border: 1px solid #e0c070;
  padding: 15px;
  text-align: center;
}

.price-table th {
  background-color: #f8f0e0;
  font-weight: bold;
  color: #5c3d00;
}

.price-table tr:hover {
  background-color: #fff9e6;
}

.price-table tr.highlighted td {
  background-color: #fffacd;
  font-weight: bold;
  border: 2px solid #ffd700;
  position: relative;
}

.price-table tr.highlighted td:first-child::before {
  content: "✓";
  position: absolute;
  left: 5px;
  color: #5c3d00;
}

.cart-notification {
  position: fixed;
  top: 25px;
  right: 25px;
  padding: 20px 30px;
  background: #4CAF50;
  color: white;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  z-index: 10000;
  transform: translateX(150%);
  transition: transform 0.5s ease;
  max-width: 350px;
}

.cart-notification.show {
  transform: translateX(0);
}

/* Адаптивность */
@media (max-width: 768px) {
  .custom-product-card {
    padding: 20px;
  }
  
  .type-options {
    flex-direction: column;
  }
  
  .type-options button {
    width: 100%;
  }
  
  .qty-controls {
    max-width: 100%;
  }
  
  .price-unit, .price-total {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  #product-qty {
    width: 100px;
  }
  
  .qty-controls button {
    width: 40px;
    height: 40px;
  }
  
  .price-display {
    padding: 15px;
  }
  
  .add-to-cart {
    padding: 15px;
    font-size: 18px;
  }
}